public class RmiClientLookupEntryService extends AbstractRmiClientService implements LookupEntryService
LookupEntryService
provides lookup entry functionality by delegating to a remote saperion system via RMI.connection
Constructor and Description |
---|
RmiClientLookupEntryService(Connection connection) |
Modifier and Type | Method and Description |
---|---|
com.lexmark.saperion.LookupEntryReferenceType |
createLookupEntry(com.lexmark.saperion.document.DocumentDefinitionReferenceType definitionReference,
Map<String,Object> indexData)
Creates a new lookup entry with the given index data in the given definition.
|
com.lexmark.saperion.LookupEntryReferenceType |
createLookupEntry(com.lexmark.saperion.document.DocumentDefinitionReferenceType definitionReference,
Map<String,Object> indexData,
List<com.lexmark.saperion.administration.AclReferenceType> aclReferences)
Creates a new lookup entry with the given index data in the given definition with the given access control lists.
|
void |
deleteLookupEntry(com.lexmark.saperion.LookupEntryReferenceType id)
Deletes the lookup entry give by its id.
|
List<com.lexmark.saperion.administration.AclReferenceType> |
getAccessControlLists(com.lexmark.saperion.LookupEntryReferenceType reference)
This method returns the list of access control lists set on a given lookup entry.
|
Set<com.lexmark.saperion.administration.AccessRight> |
getAccessOnEntry(com.lexmark.saperion.LookupEntryReferenceType reference)
This method returns the current users rights on the given lookup entry.
|
com.lexmark.saperion.LookupEntryType |
getLookupEntry(com.lexmark.saperion.LookupEntryReferenceType reference)
This method returns the lookup entry the given reference references.
|
List<com.lexmark.saperion.LookupEntryType> |
searchLookupEntries(com.lexmark.saperion.document.DocumentDefinitionReferenceType documentDefinitionReference,
QueryExpression<Boolean> filter)
This method lists the lookup entries that meet a given filtering condition.
|
com.lexmark.saperion.LookupEntryType |
searchUniqueLookupEntry(com.lexmark.saperion.document.DocumentDefinitionReferenceType documentDefinitionReference,
QueryExpression<Boolean> filter)
This method returns the single lookup entry from a given ddc that meets the given filtering condition.
|
void |
updateLookEntry(com.lexmark.saperion.LookupEntryReferenceType id,
Map<String,Object> indexDataChanges)
Updates the lookup entry given by the id in the given ddc with the given properties.
|
void |
updateLookEntry(com.lexmark.saperion.LookupEntryReferenceType id,
Map<String,Object> indexDataChanges,
List<com.lexmark.saperion.administration.AclReferenceType> aclReferences)
Updates the lookup entry given by the id in the given ddc with the given properties and the given access control
lists.
|
mapSystemException
public RmiClientLookupEntryService(Connection connection)
public com.lexmark.saperion.LookupEntryReferenceType createLookupEntry(com.lexmark.saperion.document.DocumentDefinitionReferenceType definitionReference, Map<String,Object> indexData, List<com.lexmark.saperion.administration.AclReferenceType> aclReferences) throws SaBasicException
LookupEntryService
createLookupEntry
in interface LookupEntryService
definitionReference
- the definition to create the entry inindexData
- the index data of the new lookup entryaclReferences
- the access control lists securing the new lookup entrySaBasicException
public com.lexmark.saperion.LookupEntryReferenceType createLookupEntry(com.lexmark.saperion.document.DocumentDefinitionReferenceType definitionReference, Map<String,Object> indexData) throws SaBasicException
LookupEntryService
createLookupEntry
in interface LookupEntryService
definitionReference
- the definition to create the entry inindexData
- the index data of the new lookup entrySaBasicException
public void updateLookEntry(com.lexmark.saperion.LookupEntryReferenceType id, Map<String,Object> indexDataChanges, List<com.lexmark.saperion.administration.AclReferenceType> aclReferences) throws SaBasicException
LookupEntryService
updateLookEntry
in interface LookupEntryService
id
- the id of the document to updateindexDataChanges
- the new index values. Only the changed values need to be specified. If a property should
be deleted set it to DeleteDocumentProperty.INSTANCE
aclReferences
- the new access control lists securing the lookup entry or null if no change in the access
control lists is intendedSaBasicException
public void updateLookEntry(com.lexmark.saperion.LookupEntryReferenceType id, Map<String,Object> indexDataChanges) throws SaBasicException
LookupEntryService
updateLookEntry
in interface LookupEntryService
id
- the id of the document to updateindexDataChanges
- the new index values. Only the changed values need to be specified. If a property should
be deleted set it to DeleteDocumentProperty.INSTANCE
SaBasicException
public void deleteLookupEntry(com.lexmark.saperion.LookupEntryReferenceType id) throws SaBasicException
LookupEntryService
deleteLookupEntry
in interface LookupEntryService
id
- the id of the lookup entry to deleteSaBasicException
public com.lexmark.saperion.LookupEntryType searchUniqueLookupEntry(com.lexmark.saperion.document.DocumentDefinitionReferenceType documentDefinitionReference, QueryExpression<Boolean> filter) throws SaBasicException
LookupEntryService
searchUniqueLookupEntry
in interface LookupEntryService
documentDefinitionReference
- a reference to a lookup ddc to search infilter
- a filter defining which unique lookup entry to returnSaBasicException
public List<com.lexmark.saperion.LookupEntryType> searchLookupEntries(com.lexmark.saperion.document.DocumentDefinitionReferenceType documentDefinitionReference, QueryExpression<Boolean> filter) throws SaBasicException
LookupEntryService
searchLookupEntries
in interface LookupEntryService
documentDefinitionReference
- a reference to a lookup ddc to search infilter
- a filter defining which lookup entries to returnSaBasicException
public com.lexmark.saperion.LookupEntryType getLookupEntry(com.lexmark.saperion.LookupEntryReferenceType reference) throws SaBasicException
LookupEntryService
UnknownReferenceException
if there is no lookup entry with the given reference.getLookupEntry
in interface LookupEntryService
reference
- a reference to the lookup entry to obtainSaBasicException
public List<com.lexmark.saperion.administration.AclReferenceType> getAccessControlLists(com.lexmark.saperion.LookupEntryReferenceType reference) throws SaBasicException
LookupEntryService
getAccessControlLists
in interface LookupEntryService
reference
- a reference to the lookup entry to obtain the access control lists forSaBasicException
public Set<com.lexmark.saperion.administration.AccessRight> getAccessOnEntry(com.lexmark.saperion.LookupEntryReferenceType reference) throws SaBasicException
LookupEntryService
getAccessOnEntry
in interface LookupEntryService
reference
- the id of the lookup entry to evaluate the current users rights forSaBasicException
Copyright © 2016 SAPERION AG. All rights reserved.