Class UserDefinedListServiceImpl
java.lang.Object
ch.cern.eam.wshub.core.services.userdefinedscreens.impl.UserDefinedListServiceImpl
- All Implemented Interfaces:
UserDefinedListService
-
Constructor Summary
ConstructorsConstructorDescriptionUserDefinedListServiceImpl(ApplicationData applicationData, Tools tools, net.datastream.wsdls.eamws.EAMWebServicesPT eamWebServicesToolkitClient) -
Method Summary
Modifier and TypeMethodDescriptioncreateUserDefinedListEntry(EAMContext context, UDLEntry entry) voiddeleteUDLFromEntity(EAMContext context, EntityId entityId) This method should be used after you delete an entity in EAM.deleteUserDefinedListEntries(EAMContext context, UDLEntryId filters) voidreadUDLToEntity(EAMContext context, UserDefinedListHelpable entity, EntityId entityId) This method should be used after you read an entity from EAM.readUserDefinedListEntries(EAMContext context, UDLEntryId property) readUserDefinedLists(EAMContext context, UDLEntryId entryId) setUserDefinedLists(EAMContext context, EntityId entityId, Map<String, ArrayList<UDLValue>> values) updateUserDefinedListEntry(EAMContext context, UDLEntry entry) voidwriteUDLToEntity(EAMContext context, UserDefinedListHelpable entity, EntityId entityId) This method should be used after you update an entity in EAM.voidwriteUDLToEntityCopyFrom(EAMContext context, UserDefinedListHelpable entity, EntityId entityId) This method should be used after you create an entity in EAM.
-
Constructor Details
-
UserDefinedListServiceImpl
public UserDefinedListServiceImpl(ApplicationData applicationData, Tools tools, net.datastream.wsdls.eamws.EAMWebServicesPT eamWebServicesToolkitClient)
-
-
Method Details
-
readUserDefinedLists
public HashMap<String,ArrayList<UDLValue>> readUserDefinedLists(EAMContext context, UDLEntryId entryId) throws EAMException - Specified by:
readUserDefinedListsin interfaceUserDefinedListService- Throws:
EAMException
-
setUserDefinedLists
public String setUserDefinedLists(EAMContext context, EntityId entityId, Map<String, ArrayList<UDLValue>> values) throws EAMException- Specified by:
setUserDefinedListsin interfaceUserDefinedListService- Throws:
EAMException
-
readUserDefinedListEntries
public List<UDLEntry> readUserDefinedListEntries(EAMContext context, UDLEntryId property) throws EAMException - Specified by:
readUserDefinedListEntriesin interfaceUserDefinedListService- Throws:
EAMException
-
createUserDefinedListEntry
- Specified by:
createUserDefinedListEntryin interfaceUserDefinedListService- Throws:
EAMException
-
updateUserDefinedListEntry
- Specified by:
updateUserDefinedListEntryin interfaceUserDefinedListService- Throws:
EAMException
-
deleteUserDefinedListEntries
public String deleteUserDefinedListEntries(EAMContext context, UDLEntryId filters) throws EAMException - Specified by:
deleteUserDefinedListEntriesin interfaceUserDefinedListService- Throws:
EAMException
-
readUDLToEntity
Description copied from interface:UserDefinedListServiceThis method should be used after you read an entity from EAM. It will set its UDL to the correct one. If we fail to retrieve the UDLs it will silently fail, with a SEVERE log level message, so that if there is no UDL UDS configured, such as in the case of using vanilla EAM, the read will still suceed with all other fields.- Specified by:
readUDLToEntityin interfaceUserDefinedListService- Parameters:
context- eam contextentity- the entity that you are readingentityId- the id of the entity that you are reading
-
writeUDLToEntityCopyFrom
public void writeUDLToEntityCopyFrom(EAMContext context, UserDefinedListHelpable entity, EntityId entityId) Description copied from interface:UserDefinedListServiceThis method should be used after you create an entity in EAM. It will insert the UDL in the database. As it is impossible/difficult to rollback the EAM entity creation, this method is always assumed to succeed. If this does not happen, a SEVERE log level message will be logged and no exception will be thrown.- Specified by:
writeUDLToEntityCopyFromin interfaceUserDefinedListService- Parameters:
context- eam contextentity- the entity that you are creatingentityId- the id of the entity that you are reading
-
writeUDLToEntity
Description copied from interface:UserDefinedListServiceThis method should be used after you update an entity in EAM. It will update the UDL in the database. As it is impossible/difficult to rollback the EAM entity update, this method is always assumed to succeed. If this does not happen, a SEVERE log level message will be logged and no exception will be thrown.- Specified by:
writeUDLToEntityin interfaceUserDefinedListService- Parameters:
context- eam contextentity- the entity that you are updatingentityId- the id of the entity that you are reading
-
deleteUDLFromEntity
Description copied from interface:UserDefinedListServiceThis method should be used after you delete an entity in EAM. It will clear its UDL in the database. As it is impossible/difficult to rollback the EAM entity deletion, this method is always assumed to succeed. If this does not happen, a SEVERE log level message will be logged and no exception will be thrown.- Specified by:
deleteUDLFromEntityin interfaceUserDefinedListService- Parameters:
context- eam contextentityId- the id of the entity that you are reading
-