public class DefaultMaintenanceService extends Object implements MaintenanceService
This class provides the default maintenance functionality based on the maintenance persistence.
| Constructor and Description |
|---|
DefaultMaintenanceService(MaintenancePersistence maintenancePersistence) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteHiddenWorkObjectVariable(String workObjectId,
String variableId)
Deletes a hidden work object variable.
|
void |
deleteWorkObjectDefinition(String definitionId)
Deletes the work object definition with the given id.
|
void |
deleteWorkObjectDefinitionProperties(Collection<Property> properties)
Deletes all specified work object definition properties.
|
void |
deleteWorkObjectDefinitionsResourceString(Collection<String> workObjectDefinitionIds)
Set resource string in work object definition to null.
|
void |
insertWorkObjectDefinitionProperties(Collection<Property> properties)
Inserts all specified work object definition properties.
|
void |
updateDefinitionKey(String definitionId,
String newDefinitionKey)
Updates the definition key.
|
void |
updateDefinitionProperties(PropertyName<String> propertyName,
String oldValue,
String newValue)
Updates all definition properties with the given name and value.
|
void |
updateTypeOfAnyWorkObjects(Set<String> anyGearWorkObjectIds,
String newType)
Updates the Type of the work objects with the given WorkObjectIds with the given new type.
|
void |
updateWorkObjectDefinitionIdOnWorkObjects(Set<String> currentWorkObjectDefinitionIds,
String newWorkObjectDefinitionId)
Sets the specified new work object definition id on all work objects which point to one of the given current work object definition ids.
|
void |
updateWorkObjectGlobalId(String workObjectId,
String newGlobalId)
Sets the work object global id on a specific work object.
|
void |
updateWorkObjectVariables()
Updates all work object variables by reading them and writing them again.
|
public DefaultMaintenanceService(MaintenancePersistence maintenancePersistence)
public void updateWorkObjectGlobalId(String workObjectId, String newGlobalId)
MaintenanceServiceSets the work object global id on a specific work object.
updateWorkObjectGlobalId in interface MaintenanceServiceworkObjectId - the work object id of the work object to be updatednewGlobalId - the new work object global idpublic void updateWorkObjectDefinitionIdOnWorkObjects(Set<String> currentWorkObjectDefinitionIds, String newWorkObjectDefinitionId)
MaintenanceServiceSets the specified new work object definition id on all work objects which point to one of the given current work object definition ids.
updateWorkObjectDefinitionIdOnWorkObjects in interface MaintenanceServicecurrentWorkObjectDefinitionIds - the work object definition ids of those work objects that need to be updatednewWorkObjectDefinitionId - the new work object definition id to set on the matching work objectspublic void updateWorkObjectVariables()
MaintenanceServiceUpdates all work object variables by reading them and writing them again. This ensures that the latest variable converters are applied on the write-operation.
updateWorkObjectVariables in interface MaintenanceServicepublic void deleteHiddenWorkObjectVariable(String workObjectId, String variableId)
MaintenanceServiceDeletes a hidden work object variable.
deleteHiddenWorkObjectVariable in interface MaintenanceServicepublic void updateTypeOfAnyWorkObjects(Set<String> anyGearWorkObjectIds, String newType)
MaintenanceServiceUpdates the Type of the work objects with the given WorkObjectIds with the given new type. This only works for AnyWorkObjects.
updateTypeOfAnyWorkObjects in interface MaintenanceServiceanyGearWorkObjectIds - the ids of the AnyWorkObjects for which to change the typenewType - the new work object typepublic void deleteWorkObjectDefinitionsResourceString(Collection<String> workObjectDefinitionIds)
MaintenanceServiceSet resource string in work object definition to null.
deleteWorkObjectDefinitionsResourceString in interface MaintenanceServiceworkObjectDefinitionIds - the work object definitions to update resource string inpublic void insertWorkObjectDefinitionProperties(Collection<Property> properties)
MaintenanceServiceInserts all specified work object definition properties.
insertWorkObjectDefinitionProperties in interface MaintenanceServiceproperties - the properties to insertpublic void deleteWorkObjectDefinitionProperties(Collection<Property> properties)
MaintenanceServiceDeletes all specified work object definition properties.
deleteWorkObjectDefinitionProperties in interface MaintenanceServiceproperties - the properties to deletepublic void deleteWorkObjectDefinition(String definitionId)
MaintenanceServiceDeletes the work object definition with the given id. It first deletes the properties which have the given #definitionId as parent and then removes the definition
itself.
deleteWorkObjectDefinition in interface MaintenanceServicedefinitionId - the id of the definition to deletepublic void updateDefinitionProperties(PropertyName<String> propertyName, String oldValue, String newValue)
MaintenanceServiceUpdates all definition properties with the given name and value.
updateDefinitionProperties in interface MaintenanceServicepropertyName - the property name to be updatedoldValue - the old property value to be replacednewValue - the new property valuepublic void updateDefinitionKey(String definitionId, String newDefinitionKey)
MaintenanceServiceUpdates the definition key.
updateDefinitionKey in interface MaintenanceServicedefinitionId - the definition ID to be updatednewDefinitionKey - the new definition keyCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.