Interface TemplateProxy
-
- All Superinterfaces:
PluginDataContainer
,TemplateReference
,UserAttributeContainer
public interface TemplateProxy extends TemplateReference
The lightweight representation of a process template for usage in the process repository. It extends the normalTemplateReference
by methods for accessing the parent and the child templates.- Author:
- Ulrich Kreher
- See Also:
Template
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<UUID>
getChildTemplateIDs()
Gets the IDs child templates of the referenced process template or an empty list in case of a leaf template.long
getCreationTime()
Gets the date (as long) when this template has been created.Set<URI[]>
getDeployedProcessManagers()
Gets the process managers, this template is deployed to.String
getInternalVersion()
Gets the internal version of this template, that is, an encoded version number specifying the ancestors/descendants and siblings of a template.long
getLastModificationTime()
Gets the date (as long) when this template has been modified the last time.QualifiedAgent
getLockingAgent()
Gets the agent that currently has the lock on this template or null in case the template is not locked.UUID
getParentTemplateID()
Gets the IDs the parent template of this template or null if this is the root template of the corresponding process type.-
Methods inherited from interface de.aristaflow.adept2.model.common.PluginDataContainer
getPluginData, getPluginDatas, getSupportedPlugins
-
Methods inherited from interface de.aristaflow.adept2.model.processmodel.TemplateReference
areInstancesChangeable, areInstancesMigratableTo, getBuildtimeState, getDescription, getID, getInputParameters, getName, getOutputParameters, getProcessType, getSupervisorAgent, getUsageAsSubprocess, getVersion, isDerivable, isInstantiable, isOutdated, isTopLevelUsable
-
Methods inherited from interface de.aristaflow.adept2.model.common.UserAttributeContainer
getUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValue
-
-
-
-
Method Detail
-
getParentTemplateID
UUID getParentTemplateID()
Gets the IDs the parent template of this template or null if this is the root template of the corresponding process type.- Returns:
- The ID of the parent template of this template or null if this is the root template.
-
getChildTemplateIDs
List<UUID> getChildTemplateIDs()
Gets the IDs child templates of the referenced process template or an empty list in case of a leaf template. The list is ordered by creation time of the child templates.- Returns:
- The IDs of the child templates of this template or an empty list if this template is a leaf.
-
getDeployedProcessManagers
Set<URI[]> getDeployedProcessManagers()
Gets the process managers, this template is deployed to. Each process manager is identified by an array of the URIs it can be contacted with. In case of an non-deployed template, this is an empty list.- Returns:
- The process managers, this template is deployed to.
-
getCreationTime
long getCreationTime()
Gets the date (as long) when this template has been created.- Returns:
- The date (as long) when this template has been created.
-
getLastModificationTime
long getLastModificationTime()
Gets the date (as long) when this template has been modified the last time.- Returns:
- The date (as long) when this template has been modified the last time.
-
getInternalVersion
String getInternalVersion()
Gets the internal version of this template, that is, an encoded version number specifying the ancestors/descendants and siblings of a template.
The versioning scheme is based on Keller, A., Ullman, J.: "A Version Numbering Scheme with a Useful Lexicographical Order", ICDE, 1995.- Returns:
- The internal version of this template identifying the ancestors, descendants and siblings of this template.
-
getLockingAgent
QualifiedAgent getLockingAgent()
Gets the agent that currently has the lock on this template or null in case the template is not locked.- Returns:
null
in case this template is not locked otherwise the corresponding agent currently locking the template.
-
-