Package step.resources
Class ResourceEntity
java.lang.Object
step.core.entities.Entity<Resource,step.core.accessors.Accessor<Resource>>
step.resources.ResourceEntity
-
Constructor Summary
ConstructorsConstructorDescriptionResourceEntity(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:EntityThis method is responsible for the resolution of atomic references to entity id- Overrides:
resolveAtomicReferencein 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:EntityThis method is responsible for the update of atomic references with a new entity id- Overrides:
updateAtomicReferencein 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
-