@Transactional(readOnly=true) public class DefaultFilesystemStoreImpl<S,SID extends Serializable> extends Object implements Store<SID>, AssociativeStore<S,SID>, ContentStore<S,SID>
| Constructor and Description |
|---|
DefaultFilesystemStoreImpl(FileSystemResourceLoader loader,
MappingContext mappingContext,
PlacementService conversion,
FileService fileService) |
| Modifier and Type | Method and Description |
|---|---|
void |
associate(S entity,
PropertyPath propertyPath,
SID id) |
void |
associate(S entity,
SID id) |
InputStream |
getContent(S entity) |
InputStream |
getContent(S property,
PropertyPath propertyPath) |
org.springframework.core.io.Resource |
getResource(S entity) |
org.springframework.core.io.Resource |
getResource(SID id) |
org.springframework.core.io.Resource |
getResource(S entity,
PropertyPath propertyPath) |
S |
setContent(S entity,
InputStream content) |
S |
setContent(S property,
PropertyPath propertyPath,
InputStream content) |
S |
setContent(S property,
PropertyPath propertyPath,
InputStream content,
long contentLen) |
S |
setContent(S property,
PropertyPath propertyPath,
org.springframework.core.io.Resource resourceContent) |
S |
setContent(S property,
org.springframework.core.io.Resource resourceContent) |
void |
unassociate(S entity) |
void |
unassociate(S entity,
PropertyPath propertyPath) |
S |
unsetContent(S entity) |
S |
unsetContent(S property,
PropertyPath propertyPath) |
public DefaultFilesystemStoreImpl(FileSystemResourceLoader loader, MappingContext mappingContext, PlacementService conversion, FileService fileService)
public org.springframework.core.io.Resource getResource(SID id)
getResource in interface Store<SID extends Serializable>public org.springframework.core.io.Resource getResource(S entity)
getResource in interface AssociativeStore<S,SID extends Serializable>public org.springframework.core.io.Resource getResource(S entity, PropertyPath propertyPath)
getResource in interface AssociativeStore<S,SID extends Serializable>public void associate(S entity, SID id)
associate in interface AssociativeStore<S,SID extends Serializable>public void associate(S entity, PropertyPath propertyPath, SID id)
associate in interface AssociativeStore<S,SID extends Serializable>public void unassociate(S entity)
unassociate in interface AssociativeStore<S,SID extends Serializable>public void unassociate(S entity, PropertyPath propertyPath)
unassociate in interface AssociativeStore<S,SID extends Serializable>@Transactional public S setContent(S entity, InputStream content)
setContent in interface ContentStore<S,SID extends Serializable>@Transactional public S setContent(S property, PropertyPath propertyPath, InputStream content)
setContent in interface ContentStore<S,SID extends Serializable>@Transactional public S setContent(S property, PropertyPath propertyPath, InputStream content, long contentLen)
setContent in interface ContentStore<S,SID extends Serializable>@Transactional public S setContent(S property, org.springframework.core.io.Resource resourceContent)
setContent in interface ContentStore<S,SID extends Serializable>@Transactional public S setContent(S property, PropertyPath propertyPath, org.springframework.core.io.Resource resourceContent)
setContent in interface ContentStore<S,SID extends Serializable>@Transactional public InputStream getContent(S entity)
getContent in interface ContentStore<S,SID extends Serializable>@Transactional public InputStream getContent(S property, PropertyPath propertyPath)
getContent in interface ContentStore<S,SID extends Serializable>@Transactional public S unsetContent(S entity)
unsetContent in interface ContentStore<S,SID extends Serializable>@Transactional public S unsetContent(S property, PropertyPath propertyPath)
unsetContent in interface ContentStore<S,SID extends Serializable>Copyright © 2022 Paul Warren. All rights reserved.