Class DefaultMongoStoreImpl<S,SID extends Serializable>
java.lang.Object
internal.org.springframework.content.mongo.store.DefaultMongoStoreImpl<S,SID>
- All Implemented Interfaces:
AssociativeStore<S,,SID> ContentRepository<S,,SID> ContentStore<S,,SID> Store<SID>,AssociativeStore<S,,SID> Store<SID>
public class DefaultMongoStoreImpl<S,SID extends Serializable>
extends Object
implements Store<SID>, AssociativeStore<S,SID>, ContentStore<S,SID>, AssociativeStore<S,SID>
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultMongoStoreImpl(org.springframework.data.mongodb.gridfs.GridFsTemplate gridFs, MappingContext mappingContext, PlacementService placer) -
Method Summary
Modifier and TypeMethodDescriptionvoidassociate(S entity, PropertyPath propertyPath, SID id) voidprotected ObjectconvertToExternalContentIdType(S property, Object contentId) getContent(S entity) getContent(S entity, 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 entity, PropertyPath propertyPath, InputStream content) setContent(S entity, PropertyPath propertyPath, InputStream content, long contentLen) setContent(S entity, 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 property) unsetContent(S entity, PropertyPath propertyPath)
-
Constructor Details
-
DefaultMongoStoreImpl
public DefaultMongoStoreImpl(org.springframework.data.mongodb.gridfs.GridFsTemplate gridFs, MappingContext mappingContext, PlacementService placer)
-
-
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 entity, 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 entity, 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>
-
convertToExternalContentIdType
-