public class StoreImpl extends Object implements ContentStore<Object,Serializable>
| Constructor and Description |
|---|
StoreImpl(ContentStore<Object,Serializable> delegate,
org.springframework.context.ApplicationEventPublisher publisher,
Path copyContentRootPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
associate(Object entity,
PropertyPath propertyPath,
Serializable id)
Associates the resource (identified by id) with entity.
|
void |
associate(Object entity,
Serializable id)
Associates the resource (identified by id) with entity.
|
InputStream |
getContent(Object property) |
org.springframework.core.io.Resource |
getResource(Object entity)
Returns the resource associated with the given entity, or null if no association exists
|
org.springframework.core.io.Resource |
getResource(Object entity,
PropertyPath propertyPath)
Returns the resource associated with the given property for entity, or null if no association exists
|
org.springframework.core.io.Resource |
getResource(Serializable id)
Returns a resource handle for the specified id.
|
Object |
setContent(Object property,
InputStream content) |
Object |
setContent(Object property,
org.springframework.core.io.Resource resourceContent) |
void |
unassociate(Object entity)
Unassociates the resource from entity
|
void |
unassociate(Object entity,
PropertyPath propertyPath)
Unassociates the resource from entity
|
Object |
unsetContent(Object property) |
public StoreImpl(ContentStore<Object,Serializable> delegate, org.springframework.context.ApplicationEventPublisher publisher, Path copyContentRootPath)
public Object setContent(Object property, InputStream content)
setContent in interface ContentStore<Object,Serializable>public Object setContent(Object property, org.springframework.core.io.Resource resourceContent)
setContent in interface ContentStore<Object,Serializable>public Object unsetContent(Object property)
unsetContent in interface ContentStore<Object,Serializable>public InputStream getContent(Object property)
getContent in interface ContentStore<Object,Serializable>public org.springframework.core.io.Resource getResource(Object entity)
AssociativeStoregetResource in interface AssociativeStore<Object,Serializable>entity - the entity associated with resourcepublic org.springframework.core.io.Resource getResource(Object entity, PropertyPath propertyPath)
AssociativeStoregetResource in interface AssociativeStore<Object,Serializable>entity - the entity associated with resourcepropertyPath - the property path of the associated resourcepublic org.springframework.core.io.Resource getResource(Serializable id)
StoregetResource in interface Store<Serializable>id - the id of the resourcepublic void associate(Object entity, Serializable id)
AssociativeStoreassociate in interface AssociativeStore<Object,Serializable>entity - the target of the associationid - the id of the resource to be associatedpublic void associate(Object entity, PropertyPath propertyPath, Serializable id)
AssociativeStoreassociate in interface AssociativeStore<Object,Serializable>entity - the target of the associationpropertyPath - the property path to associate the resource toid - the id of the resource to be associatedpublic void unassociate(Object entity)
AssociativeStoreunassociate in interface AssociativeStore<Object,Serializable>entity - the target of the unassociationpublic void unassociate(Object entity, PropertyPath propertyPath)
AssociativeStoreunassociate in interface AssociativeStore<Object,Serializable>entity - the target of the unassociationpropertyPath - the property path to unassociate the resource fromCopyright © 2021 Paul Warren. All rights reserved.