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>,- java.io.Serializable
 
 public class CreateLookupEntryOperation extends LegacyOperation<com.lexmark.saperion.lookup.LookupEntryReferenceType> AnOperationthat creates a lookup entry. Theinvoke()method will return a string containing the SYSROWID of the created entry.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description CreateLookupEntryOperation(com.lexmark.saperion.archive.ArchiveReferenceType definitionReference, java.util.Map<java.lang.String,java.lang.Object> indexData)Constructs a newoperationthat creates an entry in the given lookup-ddc with the given properties.CreateLookupEntryOperation(com.lexmark.saperion.archive.ArchiveReferenceType definitionReference, java.util.Map<java.lang.String,java.lang.Object> indexData, java.util.List<com.lexmark.saperion.administration.AclReferenceType> aclReferences)Constructs a newoperationthat creates an entry in the given lookup-ddc with the given properties.CreateLookupEntryOperation(java.lang.String ddc, java.util.Map<java.lang.String,java.lang.Object> props)Constructs a newoperationthat creates an entry in the given lookup-ddc with the given properties.CreateLookupEntryOperation(java.lang.String ddc, java.util.Properties props)Constructs a newoperationthat creates an entry in the given lookup-ddc with the given properties.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,com.lexmark.saperion.PropertyType>convertObjectProperties(java.util.Map<java.lang.String,java.lang.Object> props)java.util.List<com.lexmark.saperion.administration.AclReferenceType>getAclReferences()java.util.Map<java.lang.String,com.lexmark.saperion.PropertyType>getIndexData()com.lexmark.saperion.lookup.LookupEntryReferenceTypeinvoke()static java.util.Map<java.lang.String,java.lang.Object>naivePropertiesConversion(java.util.Properties props)Used to convert aPropertiesinstance to aMap.java.lang.StringtoString()- 
Methods inherited from class com.saperion.operations.LegacyOperationbeforeInvoke, beforeInvoke, getClientToken, mapEcmException, mapException
 - 
Methods inherited from class com.lexmark.saperion.remote.common.operations.AbstractOperationafterInvoke, getResult, toArrayList, toCaseInsensitiveMap, toHashMap
 
- 
 
- 
- 
- 
Constructor Detail- 
CreateLookupEntryOperationpublic CreateLookupEntryOperation(java.lang.String ddc, java.util.Map<java.lang.String,java.lang.Object> props)Constructs a newoperationthat 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 : CalendarandDate. Keep in mind thatDate,TimeandTimestampare subclasses ofDateand thus are accepted
- boolean-field : boolean and Boolean
- multi value fields: arrays and implementations of Listof 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 : 
 - 
CreateLookupEntryOperationpublic CreateLookupEntryOperation(com.lexmark.saperion.archive.ArchiveReferenceType definitionReference, java.util.Map<java.lang.String,java.lang.Object> indexData)Constructs a newoperationthat 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 : CalendarandDate. Keep in mind thatDate,TimeandTimestampare subclasses ofDateand thus are accepted
- boolean-field : boolean and Boolean
- multi value fields: arrays and implementations of Listof 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 : 
 - 
CreateLookupEntryOperationpublic CreateLookupEntryOperation(com.lexmark.saperion.archive.ArchiveReferenceType definitionReference, java.util.Map<java.lang.String,java.lang.Object> indexData, java.util.List<com.lexmark.saperion.administration.AclReferenceType> aclReferences)Constructs a newoperationthat 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 : CalendarandDate. Keep in mind thatDate,TimeandTimestampare subclasses ofDateand thus are accepted
- boolean-field : boolean and Boolean
- multi value fields: arrays and implementations of Listof 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 : 
 - 
CreateLookupEntryOperationpublic CreateLookupEntryOperation(java.lang.String ddc, java.util.Properties props)Constructs a newoperationthat 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 Detail- 
naivePropertiesConversionpublic static java.util.Map<java.lang.String,java.lang.Object> naivePropertiesConversion(java.util.Properties props) Used to convert aPropertiesinstance to aMap.- Parameters:
- props- properties to convert
- Returns:
- map containing properties
 
 - 
invokepublic com.lexmark.saperion.lookup.LookupEntryReferenceType invoke() throws SaBasicException- Throws:
- SaBasicException
 
 - 
getIndexDatapublic java.util.Map<java.lang.String,com.lexmark.saperion.PropertyType> getIndexData() 
 - 
getAclReferencespublic java.util.List<com.lexmark.saperion.administration.AclReferenceType> getAclReferences() 
 - 
convertObjectPropertiespublic static java.util.Map<java.lang.String,com.lexmark.saperion.PropertyType> convertObjectProperties(java.util.Map<java.lang.String,java.lang.Object> props) 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- com.lexmark.saperion.remote.common.operations.AbstractOperation<com.lexmark.saperion.lookup.LookupEntryReferenceType,SaBasicException,LegacyConnection>
 
 
- 
 
-