Package step.resources
Class ResourceEntity
java.lang.Object
step.core.entities.Entity<Resource,step.core.accessors.Accessor<Resource>>
step.resources.ResourceEntity
-
Constructor Summary
ConstructorDescriptionResourceEntity
(step.core.accessors.Accessor<Resource> accessor, ResourceManager resourceManager, FileResolver fileResolver, EntityManager entityManager) -
Method Summary
Modifier and TypeMethodDescriptionresolveAtomicReference
(Object atomicReferene, EntityDependencyTreeVisitor.EntityTreeVisitorContext visitorContext) This method is responsible for the resolution of atomic references to entity idupdateAtomicReference
(Object atomicReference, String resolvedEntityId, EntityDependencyTreeVisitor.EntityTreeVisitorContext visitorContext) This method is responsible for the update of atomic references with a new entity idMethods inherited from class step.core.entities.Entity
getAccessor, getEntityClass, getName, isByPassObjectPredicate, setByPassObjectPredicate
-
Constructor Details
-
ResourceEntity
public ResourceEntity(step.core.accessors.Accessor<Resource> accessor, ResourceManager resourceManager, FileResolver fileResolver, EntityManager entityManager)
-
-
Method Details
-
resolveAtomicReference
public String resolveAtomicReference(Object atomicReferene, EntityDependencyTreeVisitor.EntityTreeVisitorContext visitorContext) Description copied from class:Entity
This method is responsible for the resolution of atomic references to entity id- Overrides:
resolveAtomicReference
in classEntity<Resource,
step.core.accessors.Accessor<Resource>> - Parameters:
atomicReferene
- the atomic reference to be resolvedvisitorContext
- the context object- Returns:
- the resolved entity id or null
-
updateAtomicReference
public Object updateAtomicReference(Object atomicReference, String resolvedEntityId, EntityDependencyTreeVisitor.EntityTreeVisitorContext visitorContext) Description copied from class:Entity
This method is responsible for the update of atomic references with a new entity id- Overrides:
updateAtomicReference
in classEntity<Resource,
step.core.accessors.Accessor<Resource>> - Parameters:
atomicReference
- the atomic reference to be updatedresolvedEntityId
- the new entity ifvisitorContext
- the context object- Returns:
- the updated atomic reference
-