-
Method Summary
void
Associates the resource (identified by id) with entity.
void
Associates the resource (identified by id) with entity.
org.springframework.core.io.Resource
Returns the resource associated with the given entity, or null if no association exists
org.springframework.core.io.Resource
Returns the resource associated with the given property for entity, or null if no association exists
org.springframework.core.io.Resource
Returns the resource associated with the given property for entity, or null if no association exists
void
Unassociates the resource from entity
void
Unassociates the resource from entity
Methods inherited from interface org.springframework.content.commons.store.Store
getResource
-
Method Details
-
getResource
org.springframework.core.io.Resource getResource(S entity)
Returns the resource associated with the given entity, or null if no association exists
- Parameters:
entity
- the entity associated with resource
- Returns:
- resource
-
getResource
org.springframework.core.io.Resource getResource(S entity,
PropertyPath propertyPath)
Returns the resource associated with the given property for entity, or null if no association exists
- Parameters:
entity
- the entity associated with resource
propertyPath
- the property path of the associated resource
- Returns:
- resource
-
getResource
Returns the resource associated with the given property for entity, or null if no association exists
- Parameters:
entity
- the entity associated with resource
propertyPath
- the property path of the associated resource
params
- parameters customizing how the resource is fetched and returned
- Returns:
- resource
-
associate
void associate(S entity,
SID id)
Associates the resource (identified by id) with entity.
- Parameters:
entity
- the target of the association
id
- the id of the resource to be associated
-
associate
Associates the resource (identified by id) with entity.
- Parameters:
entity
- the target of the association
propertyPath
- the property path to associate the resource to
id
- the id of the resource to be associated
-
unassociate
void unassociate(S entity)
Unassociates the resource from entity
- Parameters:
entity
- the target of the unassociation
-
unassociate
Unassociates the resource from entity
- Parameters:
entity
- the target of the unassociation
propertyPath
- the property path to unassociate the resource from