@Transactional public class DefaultAzureStorageImpl<S,SID extends Serializable> extends Object implements Store<SID>, AssociativeStore<S,SID>, ContentStore<S,SID>
| Constructor and Description |
|---|
DefaultAzureStorageImpl(org.springframework.context.ApplicationContext context,
org.springframework.core.io.ResourceLoader loader,
PlacementService placementService,
com.azure.storage.blob.BlobServiceClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
associate(Object entity,
Serializable id) |
void |
associate(S entity,
PropertyPath propertyPath,
SID id) |
InputStream |
getContent(S entity) |
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) |
protected org.springframework.core.io.Resource |
getResourceInternal(BlobId id) |
S |
setContent(S entity,
InputStream content) |
S |
setContent(S property,
org.springframework.core.io.Resource resourceContent) |
void |
unassociate(Object entity) |
void |
unassociate(S entity,
PropertyPath propertyPath) |
S |
unsetContent(S entity) |
public DefaultAzureStorageImpl(org.springframework.context.ApplicationContext context,
org.springframework.core.io.ResourceLoader loader,
PlacementService placementService,
com.azure.storage.blob.BlobServiceClient client)
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>protected org.springframework.core.io.Resource getResourceInternal(BlobId id)
public void associate(Object entity, Serializable id)
associate in interface AssociativeStore<S,SID extends Serializable>public void unassociate(Object entity)
unassociate in interface AssociativeStore<S,SID extends Serializable>@Transactional public S setContent(S entity, InputStream content)
setContent in interface ContentStore<S,SID extends Serializable>public S setContent(S property, 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 S unsetContent(S entity)
unsetContent in interface ContentStore<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, PropertyPath propertyPath, SID id)
associate in interface AssociativeStore<S,SID extends Serializable>public void unassociate(S entity, PropertyPath propertyPath)
unassociate in interface AssociativeStore<S,SID extends Serializable>Copyright © 2021 Paul Warren. All rights reserved.