Package com.saperion.operations.lookup
Class CreateLookupEntryOperation
java.lang.Object
com.lexmark.saperion.remote.common.operations.AbstractOperation<T,SaBasicException,LegacyConnection>
com.saperion.operations.LegacyOperation<com.lexmark.saperion.lookup.LookupEntryReferenceType>
com.saperion.operations.lookup.CreateLookupEntryOperation
- All Implemented Interfaces:
com.lexmark.saperion.remote.common.operations.Operation<com.lexmark.saperion.lookup.LookupEntryReferenceType,
,SaBasicException, LegacyConnection> Serializable
public class CreateLookupEntryOperation
extends LegacyOperation<com.lexmark.saperion.lookup.LookupEntryReferenceType>
An
Operation
that creates a lookup entry. The invoke()
method will return a
string containing the SYSROWID of the created entry.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreateLookupEntryOperation
(com.lexmark.saperion.archive.ArchiveReferenceType definitionReference, Map<String, Object> indexData) Constructs a newoperation
that creates an entry in the given lookup-ddc with the given properties.CreateLookupEntryOperation
(com.lexmark.saperion.archive.ArchiveReferenceType definitionReference, Map<String, Object> indexData, List<com.lexmark.saperion.administration.AclReferenceType> aclReferences) Constructs a newoperation
that creates an entry in the given lookup-ddc with the given properties.CreateLookupEntryOperation
(String ddc, Map<String, Object> props) Constructs a newoperation
that creates an entry in the given lookup-ddc with the given properties.CreateLookupEntryOperation
(String ddc, Properties props) Constructs a newoperation
that creates an entry in the given lookup-ddc with the given properties. -
Method Summary
Modifier and TypeMethodDescriptionconvertObjectProperties
(Map<String, Object> props) List<com.lexmark.saperion.administration.AclReferenceType>
com.lexmark.saperion.lookup.LookupEntryReferenceType
invoke()
Used to convert aProperties
instance to aMap
.toString()
Methods inherited from class com.saperion.operations.LegacyOperation
beforeInvoke, beforeInvoke, getClientToken, mapEcmException, mapException
Methods inherited from class com.lexmark.saperion.remote.common.operations.AbstractOperation
afterInvoke, getResult, toArrayList, toCaseInsensitiveMap, toHashMap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.lexmark.saperion.remote.common.operations.Operation
audit, dispatchEvent, isAuditable, isEventDispatcher
-
Constructor Details
-
CreateLookupEntryOperation
Constructs a newoperation
that creates an entry in the given lookup-ddc with the given properties. For a given ddc-field the accepted java types depend on the type of the field:- text, unicode-text, etc :
String
- integer-field : byte, short, int, long and any implementation of
Number
(this includes the wrapper classes of the given primitive types) - float-field, currency : float, double and any implementation of
Number
(this includes the wrapper classes of the given primitive types) - date, time, date-time :
Calendar
andDate
. Keep in mind thatDate
,Time
andTimestamp
are subclasses ofDate
and thus are accepted - boolean-field : boolean and
Boolean
- multi value fields: arrays and implementations of
List
of the types accepted for the field - any field:
SaPropertyValueImpl
- Parameters:
ddc
- the name of the lookup-ddc to add the entry in.props
- properties of the new entry.
- text, unicode-text, etc :
-
CreateLookupEntryOperation
public CreateLookupEntryOperation(com.lexmark.saperion.archive.ArchiveReferenceType definitionReference, Map<String, Object> indexData) Constructs a newoperation
that creates an entry in the given lookup-ddc with the given properties. For a given ddc-field the accepted java types depend on the type of the field:- text, unicode-text, etc :
String
- integer-field : byte, short, int, long and any implementation of
Number
(this includes the wrapper classes of the given primitive types) - float-field, currency : float, double and any implementation of
Number
(this includes the wrapper classes of the given primitive types) - date, time, date-time :
Calendar
andDate
. Keep in mind thatDate
,Time
andTimestamp
are subclasses ofDate
and thus are accepted - boolean-field : boolean and
Boolean
- multi value fields: arrays and implementations of
List
of the types accepted for the field - any field:
SaPropertyValueImpl
- Parameters:
definitionReference
- a reference to the lookup-ddc to add the entry in.indexData
- the index data of the new entry.
- text, unicode-text, etc :
-
CreateLookupEntryOperation
public CreateLookupEntryOperation(com.lexmark.saperion.archive.ArchiveReferenceType definitionReference, Map<String, Object> indexData, List<com.lexmark.saperion.administration.AclReferenceType> aclReferences) Constructs a newoperation
that creates an entry in the given lookup-ddc with the given properties. For a given ddc-field the accepted java types depend on the type of the field:- text, unicode-text, etc :
String
- integer-field : byte, short, int, long and any implementation of
Number
(this includes the wrapper classes of the given primitive types) - float-field, currency : float, double and any implementation of
Number
(this includes the wrapper classes of the given primitive types) - date, time, date-time :
Calendar
andDate
. Keep in mind thatDate
,Time
andTimestamp
are subclasses ofDate
and thus are accepted - boolean-field : boolean and
Boolean
- multi value fields: arrays and implementations of
List
of the types accepted for the field - any field:
SaPropertyValueImpl
- Parameters:
definitionReference
- a reference to the lookup-ddc to add the entry in.indexData
- the index data of the new entry.aclReferences
- a list of references to access control lists that define the access to the new lookup entry
- text, unicode-text, etc :
-
CreateLookupEntryOperation
Constructs a newoperation
that creates an entry in the given lookup-ddc with the given properties. For the types accepted in the properties seeCreateLookupEntryOperation(String, Properties)
CreateLookupEntry(String, java.util.Map)}- Parameters:
ddc
- the name of the lookup-ddc to add the entry in.props
- properties of the new entry.
-
-
Method Details
-
naivePropertiesConversion
Used to convert aProperties
instance to aMap
.- Parameters:
props
- properties to convert- Returns:
- map containing properties
-
invoke
- Throws:
SaBasicException
-
getIndexData
-
getAclReferences
-
convertObjectProperties
-
toString
- Overrides:
toString
in classcom.lexmark.saperion.remote.common.operations.AbstractOperation<com.lexmark.saperion.lookup.LookupEntryReferenceType,
SaBasicException, LegacyConnection>
-