public interface MaintenanceService
Modifier and Type | Method and Description |
---|---|
void |
deleteHiddenWorkObjectVariable(String workObjectId,
String variableName)
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.
|
void updateWorkObjectGlobalId(String workObjectId, String newGlobalId)
Sets the work object global id on a specific work object.
workObjectId
- the work object id of the work object to be updatednewGlobalId
- the new work object global idIllegalArgumentException
- if the parameters are not validvoid 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.
currentWorkObjectDefinitionIds
- 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 objectsIllegalArgumentException
- if the parameters are not validvoid updateWorkObjectVariables()
Updates all work object variables by reading them and writing them again. This ensures that the latest variable converters are applied on the write-operation.
void deleteHiddenWorkObjectVariable(String workObjectId, String variableName)
Deletes a hidden work object variable.
void updateTypeOfAnyWorkObjects(Set<String> anyGearWorkObjectIds, String newType)
Updates the Type of the work objects with the given WorkObjectIds with the given new type. This only works for AnyWorkObject
s.
anyGearWorkObjectIds
- the ids of the AnyWorkObject
s for which to change the typenewType
- the new work object typevoid deleteWorkObjectDefinitionsResourceString(Collection<String> workObjectDefinitionIds)
Set resource string in work object definition to null.
workObjectDefinitionIds
- the work object definitions to update resource string inIllegalArgumentException
- if the workObjectDefinitionIds parameter is not valid or if the id of a work object definition is not definedvoid insertWorkObjectDefinitionProperties(Collection<Property> properties)
Inserts all specified work object definition properties.
properties
- the properties to insertIllegalArgumentException
- if the properties parameter is not valid or if the source of a property is not definedvoid deleteWorkObjectDefinitionProperties(Collection<Property> properties)
Deletes all specified work object definition properties.
properties
- the properties to deleteIllegalArgumentException
- if the properties parameter is not valid or if the id of a property is not definedvoid deleteWorkObjectDefinition(String definitionId)
Deletes 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.
definitionId
- the id of the definition to deleteIllegalArgumentException
- if the given definition id is null or emptyvoid updateDefinitionProperties(PropertyName<String> propertyName, String oldValue, String newValue)
Updates all definition properties with the given name and value.
propertyName
- the property name to be updatedoldValue
- the old property value to be replacednewValue
- the new property valueCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.