public class CreateLookupEntryOperation extends LegacyOperation<com.lexmark.saperion.lookup.LookupEntryReferenceType>
Operation
that creates a lookup entry. The invoke()
method will return a
string containing the SYSROWID of the created entry.Constructor and Description |
---|
CreateLookupEntryOperation(com.lexmark.saperion.archive.ArchiveReferenceType definitionReference,
Map<String,Object> indexData)
Constructs a new
operation 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 new
operation that creates an entry in the given
lookup-ddc with the given properties. |
CreateLookupEntryOperation(String ddc,
Map<String,Object> props)
Constructs a new
operation that creates an entry in the given
lookup-ddc with the given properties. |
CreateLookupEntryOperation(String ddc,
Properties props)
Constructs a new
operation that creates an entry in the given
lookup-ddc with the given properties. |
Modifier and Type | Method and Description |
---|---|
static Map<String,com.lexmark.saperion.PropertyType> |
convertObjectProperties(Map<String,Object> props) |
List<com.lexmark.saperion.administration.AclReferenceType> |
getAclReferences() |
Map<String,com.lexmark.saperion.PropertyType> |
getIndexData() |
com.lexmark.saperion.lookup.LookupEntryReferenceType |
invoke() |
static Map<String,Object> |
naivePropertiesConversion(Properties props)
Used to convert a
Properties instance to a Map . |
String |
toString() |
beforeInvoke, beforeInvoke, getClientToken, mapEcmException, mapException
afterInvoke, getResult, toArrayList, toCaseInsensitiveMap, toHashMap
public CreateLookupEntryOperation(String ddc, Map<String,Object> props)
operation
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:
String
Number
(this includes
the wrapper classes of the given primitive types)Number
(this includes
the wrapper classes of the given primitive types)Calendar
and Date
. Keep in mind that
Date
, Time
and Timestamp
are subclasses of
Date
and thus are acceptedBoolean
List
of the types accepted for the fieldSaPropertyValueImpl
ddc
- the name of the lookup-ddc to add the entry in.props
- properties of the new entry.public CreateLookupEntryOperation(com.lexmark.saperion.archive.ArchiveReferenceType definitionReference, Map<String,Object> indexData)
operation
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:
String
Number
(this includes
the wrapper classes of the given primitive types)Number
(this includes
the wrapper classes of the given primitive types)Calendar
and Date
. Keep in mind that
Date
, Time
and Timestamp
are subclasses of
Date
and thus are acceptedBoolean
List
of the types accepted for the fieldSaPropertyValueImpl
definitionReference
- a reference to the lookup-ddc to add the entry in.indexData
- the index data of the new entry.public CreateLookupEntryOperation(com.lexmark.saperion.archive.ArchiveReferenceType definitionReference, Map<String,Object> indexData, List<com.lexmark.saperion.administration.AclReferenceType> aclReferences)
operation
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:
String
Number
(this includes
the wrapper classes of the given primitive types)Number
(this includes
the wrapper classes of the given primitive types)Calendar
and Date
. Keep in mind that
Date
, Time
and Timestamp
are subclasses of
Date
and thus are acceptedBoolean
List
of the types accepted for the fieldSaPropertyValueImpl
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 entrypublic CreateLookupEntryOperation(String ddc, Properties props)
operation
that creates an entry in the given
lookup-ddc with the given properties. For the types accepted in the properties see
CreateLookupEntryOperation(String, Properties)
CreateLookupEntry(String, java.util.Map)}ddc
- the name of the lookup-ddc to add the entry in.props
- properties of the new entry.public static Map<String,Object> naivePropertiesConversion(Properties props)
Properties
instance to a Map
.props
- properties to convertpublic com.lexmark.saperion.lookup.LookupEntryReferenceType invoke() throws SaBasicException
SaBasicException
public List<com.lexmark.saperion.administration.AclReferenceType> getAclReferences()
public static Map<String,com.lexmark.saperion.PropertyType> convertObjectProperties(Map<String,Object> props)
public String toString()
toString
in class com.lexmark.saperion.remote.common.operations.AbstractOperation<com.lexmark.saperion.lookup.LookupEntryReferenceType,SaBasicException,LegacyConnection>
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.