T
- The type of the id/externalIdP
- The type of the providerIdpublic abstract class WorkObjectDefinition<T extends WorkObjectDefinitionId,P extends Id> extends DomainObjectDefinition<T,P> implements HierarchicalEntity<WorkObjectDefinitionId,T>
Modifier and Type | Class and Description |
---|---|
static class |
WorkObjectDefinition.WorkObjectDefinitionBuilder<T extends WorkObjectDefinitionId,P extends Id,E extends WorkObjectDefinition<T,P>,SELF extends WorkObjectDefinition.WorkObjectDefinitionBuilder<T,P,E,SELF>> |
protected static class |
WorkObjectDefinition.WorkObjectDefinitionData
Data container that holds the state of a work object definition.
|
DomainObjectDefinition.DomainObjectDefinitionBuilder<T extends EntityId,P extends Id,E extends DomainObjectDefinition<T,P>,SELF extends DomainObjectDefinition.DomainObjectDefinitionBuilder<T,P,E,SELF>>, DomainObjectDefinition.DomainObjectDefinitionData<T extends EntityId,P extends Id>
Entity.EntityBuilder<T extends EntityId,P extends Id,E extends Entity<T,P>,SELF extends Entity.EntityBuilder<T,P,E,SELF>>, Entity.EntityData<T extends EntityId,P extends Id>
HierarchicalEntity.HierarchicalEntityBuilder<T extends HierarchicalEntityId,SELF extends HierarchicalEntity.HierarchicalEntityBuilder<T,SELF>>
Modifier and Type | Field and Description |
---|---|
protected WorkObjectDefinition.WorkObjectDefinitionData |
workObjectDefinitionData |
domainObjectDefinitionData
entityData
Modifier | Constructor and Description |
---|---|
protected |
WorkObjectDefinition(Entity.EntityData<T,P> entityData,
DomainObjectDefinition.DomainObjectDefinitionData<T,P> domainObjectDefinitionData,
WorkObjectDefinition.WorkObjectDefinitionData workObjectDefinitionData) |
Modifier and Type | Method and Description |
---|---|
WorkObjectDefinitionId |
getParentId()
Returns the id of the parent entity.
|
<T extends WorkObjectDefinitionId> |
getParentId(Class<T> expectedParentType)
Returns the first parent of the entity that is of the expected type when walking up the path from the immediate parent to the root.
|
List<? extends WorkObjectDefinitionId> |
getPath()
Returns the path of the hierarchy to which the entity belongs.
|
WorkObjectDefinitionId |
getRootId()
Returns the id of the root entity.
|
<T extends WorkObjectDefinitionId> |
getTopMostParentId(Class<T> expectedParentType)
Returns the topmost parent of the entity that is of the expected type when walking up the path from the immediate parent to the root.
|
boolean |
hasParent()
Returns true if the entity has a parent.
|
String |
toString() |
getExternalVersion, getKey, getLocalProperties, getLocalProperties, getLocalPropertiesMap, getLocalPropertiesMap, getLocalProperty, getLocalPropertyValue, getLocalPropertyValue, getProperties, getProperties, getPropertiesMap, getPropertiesMap, getProperty, getPropertyValue, getPropertyValue, getResourceString, getValidFrom, getValidTo, getVersion, hasLocalProperty, hasLocalProperty, hasProperty, hasProperty
getCreationTime, getDescription, getExternalId, getGlobalId, getId, getModificationCreatorId, getModificationUpdaterId, getModificationVersion, getName, getProviderId, getTenantId, getType, getUpdateTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId
protected final WorkObjectDefinition.WorkObjectDefinitionData workObjectDefinitionData
protected WorkObjectDefinition(Entity.EntityData<T,P> entityData, DomainObjectDefinition.DomainObjectDefinitionData<T,P> domainObjectDefinitionData, WorkObjectDefinition.WorkObjectDefinitionData workObjectDefinitionData)
public List<? extends WorkObjectDefinitionId> getPath()
HierarchicalEntity
getPath
in interface HierarchicalEntity<WorkObjectDefinitionId,T extends WorkObjectDefinitionId>
public WorkObjectDefinitionId getRootId()
HierarchicalEntity
getRootId
in interface HierarchicalEntity<WorkObjectDefinitionId,T extends WorkObjectDefinitionId>
public boolean hasParent()
HierarchicalEntity
hasParent
in interface HierarchicalEntity<WorkObjectDefinitionId,T extends WorkObjectDefinitionId>
public WorkObjectDefinitionId getParentId()
HierarchicalEntity
getParentId
in interface HierarchicalEntity<WorkObjectDefinitionId,T extends WorkObjectDefinitionId>
public <T extends WorkObjectDefinitionId> T getParentId(Class<T> expectedParentType)
HierarchicalEntity
getParentId
in interface HierarchicalEntity<WorkObjectDefinitionId,T extends WorkObjectDefinitionId>
T
- the type of the parent classexpectedParentType
- the expected parent typepublic <T extends WorkObjectDefinitionId> T getTopMostParentId(Class<T> expectedParentType)
HierarchicalEntity
getTopMostParentId
in interface HierarchicalEntity<WorkObjectDefinitionId,T extends WorkObjectDefinitionId>
T
- the type of the parent classexpectedParentType
- the expected parent typeCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.