public class SafetyServiceImpl extends Object implements SafetyService
SafetyService.ENTITY_TYPEGRID_EQUIPMENT, GRID_ROW_COUNT, GRID_WO_TYPE, GRID_WORKORDER| Constructor and Description |
|---|
SafetyServiceImpl(ApplicationData applicationData,
Tools tools,
net.datastream.wsdls.inforws.InforWebServicesPT inforWebServicesToolkitClient) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
addSafeties(InforContext context,
List<EntitySafety> listOfSafeties)
Adds a list safeties (given their hazard and a precaution measures).
|
String |
addSafety(InforContext context,
EntitySafety entitySafetywshub)
Adds a safety (given a hazard and a precaution measure) to a specified entity.
|
BatchResponse<String> |
addSafetyToEntitiesBatch(InforContext context,
EntitySafety entitySafetywshub,
List<String> parentIDs,
String entity)
Adds a safety (given a hazard and a precaution measure) to list of entities.
|
String |
addSafetyToEntity(InforContext context,
EntitySafety entitySafetywshub,
String parentID,
String entity)
Adds a safety (given a hazard and a precaution measure) to a specified entity.
|
BatchResponse<String> |
deleteSafetiesBatch(InforContext context,
List<String> safetyCodes)
Deletes safeties given their ids (safety codes).
|
String |
deleteSafety(InforContext context,
String safetyCode)
Deletes a safety given its id (safety code).
|
BatchResponse<net.datastream.schemas.mp_entities.entitysafety_001.EntitySafety> |
getEntitySafetiesBatch(InforContext context,
List<String> safetyCodes)
Returns a list of safety object given their safety code.
|
net.datastream.schemas.mp_entities.entitysafety_001.EntitySafety |
getEntitySafety(InforContext context,
String safetyCode)
Returns a safety object given its safety code.
|
List<String> |
getSafetiesIDList(InforContext context,
String entityID,
SafetyService.ENTITY_TYPE entityType) |
String |
syncEntitySafety(InforContext context,
EntitySafety entitySafetywshub)
Updates the specified safety with the given values of the safety object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateInput, validateInput, validateInput, validateInputpublic SafetyServiceImpl(ApplicationData applicationData, Tools tools, net.datastream.wsdls.inforws.InforWebServicesPT inforWebServicesToolkitClient)
public List<String> getSafetiesIDList(InforContext context, String entityID, SafetyService.ENTITY_TYPE entityType) throws InforException
getSafetiesIDList in interface SafetyServiceInforExceptionpublic net.datastream.schemas.mp_entities.entitysafety_001.EntitySafety getEntitySafety(InforContext context, String safetyCode) throws InforException
getEntitySafety in interface SafetyServicecontext - the user credentialssafetyCode - the safety code to getInforExceptionpublic BatchResponse<net.datastream.schemas.mp_entities.entitysafety_001.EntitySafety> getEntitySafetiesBatch(InforContext context, List<String> safetyCodes) throws InforException
getEntitySafetiesBatch in interface SafetyServicecontext - the user credentialssafetyCodes - the list of safety codesInforExceptionpublic String addSafety(InforContext context, EntitySafety entitySafetywshub) throws InforException
addSafety in interface SafetyServicecontext - the user credentialsentitySafetywshub - the safety to add, with its entitySafetyCode in hashtag organization format (#*)InforExceptionpublic List<String> addSafeties(InforContext context, List<EntitySafety> listOfSafeties) throws InforException
addSafeties in interface SafetyServicecontext - the user credentialslistOfSafeties - a list of the safeties to be addedInforExceptionpublic String addSafetyToEntity(InforContext context, EntitySafety entitySafetywshub, String parentID, String entity) throws InforException
addSafetyToEntity in interface SafetyServicecontext - the user credentialsentitySafetywshub - the safety to addparentID - the parent id of the safety, in hashtag organization format (#*)entity - the entity of the safetyInforExceptionpublic BatchResponse<String> addSafetyToEntitiesBatch(InforContext context, EntitySafety entitySafetywshub, List<String> parentIDs, String entity) throws InforException
addSafetyToEntitiesBatch in interface SafetyServicecontext - the user credentialsentitySafetywshub - the safety to add, with its entitySafetyCode in hashtag organization format (#*)parentIDs - the list of parent ids of the safetyentity - the entity of the safetyInforExceptionpublic String deleteSafety(InforContext context, String safetyCode) throws InforException
deleteSafety in interface SafetyServicecontext - the user credentialssafetyCode - the safety code of the safety to deleteInforExceptionpublic BatchResponse<String> deleteSafetiesBatch(InforContext context, List<String> safetyCodes) throws InforException
deleteSafetiesBatch in interface SafetyServicecontext - the user credentialssafetyCodes - a list of the safety codes of the safeties to deleteInforExceptionpublic String syncEntitySafety(InforContext context, EntitySafety entitySafetywshub) throws InforException
syncEntitySafety in interface SafetyServicecontext - the user credentialsentitySafetywshub - the safety to be updated, with its updated valuesInforExceptionCopyright © 2020 CERN European Organization for Nuclear Research. All rights reserved.