Class DefaultFilesystemStoreImpl<S,SID extends Serializable>
java.lang.Object
internal.org.springframework.content.fs.store.DefaultFilesystemStoreImpl<S,SID>
- All Implemented Interfaces:
AssociativeStore<S,,SID> ContentRepository<S,,SID> ContentStore<S,,SID> Store<SID>,AssociativeStore<S,,SID> Store<SID>
@Transactional(readOnly=true)
public class DefaultFilesystemStoreImpl<S,SID extends Serializable>
extends Object
implements Store<SID>, AssociativeStore<S,SID>, ContentStore<S,SID>, AssociativeStore<S,SID>
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultFilesystemStoreImpl(FileSystemResourceLoader loader, MappingContext mappingContext, PlacementService conversion, FileService fileService) -
Method Summary
Modifier and TypeMethodDescriptionvoidassociate(S entity, PropertyPath propertyPath, SID id) voidgetContent(S entity) getContent(S property, PropertyPath propertyPath) org.springframework.core.io.ResourcegetResource(S entity) org.springframework.core.io.ResourcegetResource(SID id) org.springframework.core.io.ResourcegetResource(S entity, PropertyPath propertyPath) org.springframework.core.io.ResourcegetResource(S entity, PropertyPath propertyPath, GetResourceParams params) org.springframework.core.io.ResourcegetResource(S entity, PropertyPath propertyPath, GetResourceParams params) setContent(S entity, InputStream content) setContent(S property, PropertyPath propertyPath, InputStream content) setContent(S property, PropertyPath propertyPath, InputStream content, long contentLen) setContent(S property, PropertyPath propertyPath, org.springframework.core.io.Resource resourceContent) setContent(S property, org.springframework.core.io.Resource resourceContent) voidunassociate(S entity) voidunassociate(S entity, PropertyPath propertyPath) unsetContent(S entity) unsetContent(S property, PropertyPath propertyPath)
-
Constructor Details
-
DefaultFilesystemStoreImpl
public DefaultFilesystemStoreImpl(FileSystemResourceLoader loader, MappingContext mappingContext, PlacementService conversion, FileService fileService)
-
-
Method Details
-
getResource
- Specified by:
getResourcein interfaceStore<S>- Specified by:
getResourcein interfaceStore<S>
-
getResource
- Specified by:
getResourcein interfaceAssociativeStore<S,SID extends Serializable> - Specified by:
getResourcein interfaceAssociativeStore<S,SID extends Serializable>
-
getResource
- Specified by:
getResourcein interfaceAssociativeStore<S,SID extends Serializable> - Specified by:
getResourcein interfaceAssociativeStore<S,SID extends Serializable>
-
getResource
public org.springframework.core.io.Resource getResource(S entity, PropertyPath propertyPath, GetResourceParams params) - Specified by:
getResourcein interfaceAssociativeStore<S,SID extends Serializable>
-
getResource
public org.springframework.core.io.Resource getResource(S entity, PropertyPath propertyPath, GetResourceParams params) - Specified by:
getResourcein interfaceAssociativeStore<S,SID extends Serializable>
-
associate
- Specified by:
associatein interfaceAssociativeStore<S,SID extends Serializable> - Specified by:
associatein interfaceAssociativeStore<S,SID extends Serializable>
-
associate
- Specified by:
associatein interfaceAssociativeStore<S,SID extends Serializable> - Specified by:
associatein interfaceAssociativeStore<S,SID extends Serializable>
-
unassociate
- Specified by:
unassociatein interfaceAssociativeStore<S,SID extends Serializable> - Specified by:
unassociatein interfaceAssociativeStore<S,SID extends Serializable>
-
unassociate
- Specified by:
unassociatein interfaceAssociativeStore<S,SID extends Serializable> - Specified by:
unassociatein interfaceAssociativeStore<S,SID extends Serializable>
-
setContent
- Specified by:
setContentin interfaceContentStore<S,SID extends Serializable>
-
setContent
- Specified by:
setContentin interfaceContentStore<S,SID extends Serializable>
-
setContent
@Transactional public S setContent(S property, PropertyPath propertyPath, InputStream content, long contentLen) - Specified by:
setContentin interfaceContentStore<S,SID extends Serializable>
-
setContent
@Transactional public S setContent(S property, org.springframework.core.io.Resource resourceContent) - Specified by:
setContentin interfaceContentStore<S,SID extends Serializable>
-
setContent
@Transactional public S setContent(S property, PropertyPath propertyPath, org.springframework.core.io.Resource resourceContent) - Specified by:
setContentin interfaceContentStore<S,SID extends Serializable>
-
getContent
- Specified by:
getContentin interfaceContentStore<S,SID extends Serializable>
-
getContent
- Specified by:
getContentin interfaceContentStore<S,SID extends Serializable>
-
unsetContent
- Specified by:
unsetContentin interfaceContentStore<S,SID extends Serializable>
-
unsetContent
- Specified by:
unsetContentin interfaceContentStore<S,SID extends Serializable>
-