Class MECServiceImpl
java.lang.Object
ch.cern.eam.wshub.core.services.workorders.impl.MECServiceImpl
- All Implemented Interfaces:
MECService
-
Field Summary
Fields inherited from interface ch.cern.eam.wshub.core.services.workorders.MECService
EQUIPMENT_COLUMN_NAME, GRID_ID, GRID_WO_TYPE, MEC_ID_COLUMN_NAME -
Constructor Summary
ConstructorsConstructorDescriptionMECServiceImpl(ApplicationData applicationData, Tools tools, net.datastream.wsdls.eamws.EAMWebServicesPT eamWebServicesToolkitClient) -
Method Summary
Modifier and TypeMethodDescriptionaddWorkOrderEquipment(EAMContext context, MEC mecToAdd) Adds an equipment with the specified properties to the specified workorder.addWorkOrderEquipmentBatch(EAMContext context, List<MEC> mecsToAdd) deleteWorkOrderMEC(EAMContext context, String parentWorkorderID, String mecID) Deletes a MEC from the specified parent workorder.net.datastream.schemas.mp_entities.workorderequipment_001.WorkOrderEquipmentgetWorkOrderMecEAM(EAMContext context, String workorderID) getWorkOrderMecIDList(EAMContext context, String workorderID) Returns a list of all the MECs of the target workorder.syncWorkOrderEquipment(EAMContext context, MEC updatedMEC) Updates the target workorder with the specified properties.
-
Constructor Details
-
MECServiceImpl
public MECServiceImpl(ApplicationData applicationData, Tools tools, net.datastream.wsdls.eamws.EAMWebServicesPT eamWebServicesToolkitClient)
-
-
Method Details
-
addWorkOrderEquipment
Adds an equipment with the specified properties to the specified workorder.- Specified by:
addWorkOrderEquipmentin interfaceMECService- Parameters:
context- the user credentialsmecToAdd- the MEC object to add- Returns:
- the ID of the added equipment
- Throws:
EAMException
-
addWorkOrderEquipmentBatch
public BatchResponse<String> addWorkOrderEquipmentBatch(EAMContext context, List<MEC> mecsToAdd) throws EAMException - Specified by:
addWorkOrderEquipmentBatchin interfaceMECService- Throws:
EAMException
-
deleteWorkOrderMEC
public String deleteWorkOrderMEC(EAMContext context, String parentWorkorderID, String mecID) throws EAMException Deletes a MEC from the specified parent workorder.- Specified by:
deleteWorkOrderMECin interfaceMECService- Parameters:
context- the user credentialsparentWorkorderID- the ID of the parent workordermecID- the ID of the MEC to delete- Returns:
- Throws:
EAMException
-
getWorkOrderMecIDList
public List<String> getWorkOrderMecIDList(EAMContext context, String workorderID) throws EAMException Returns a list of all the MECs of the target workorder.- Specified by:
getWorkOrderMecIDListin interfaceMECService- Parameters:
context- the user credentialsworkorderID- the ID of the parent workorder- Returns:
- the list of MEC ids
- Throws:
EAMException
-
getWorkOrderMecEAM
public net.datastream.schemas.mp_entities.workorderequipment_001.WorkOrderEquipment getWorkOrderMecEAM(EAMContext context, String workorderID) throws EAMException - Specified by:
getWorkOrderMecEAMin interfaceMECService- Throws:
EAMException
-
syncWorkOrderEquipment
Updates the target workorder with the specified properties.- Specified by:
syncWorkOrderEquipmentin interfaceMECService- Parameters:
context- the user credentialsupdatedMEC- the updated mec object- Returns:
- Throws:
EAMException
-