Interface DigitalAssetComponentServices
-
public interface DigitalAssetComponentServicesProvides methods for using Digital Asset Component services.- Since:
- 1.6.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OperationExecutionStatusattach(java.util.List<DigitalAssetKey> keys)Attaches digital assets to the media field.OperationExecutionStatusdetach(java.util.List<DigitalAssetKey> keys)Detach digital assets from the media field.java.util.List<DigitalAssetKey>getDigitalAssetKeys()Returns the keys of digital assets attached to the media field.DigitalAssetupload(Resource resource)Uploads a new digital asset.OperationExecutionStatusupload(java.util.List<? extends Resource> resources, Action action)Uploads new digital asset and attaches it to the media field.
-
-
-
Method Detail
-
getDigitalAssetKeys
java.util.List<DigitalAssetKey> getDigitalAssetKeys() throws DAMException
Returns the keys of digital assets attached to the media field.- Throws:
DAMException
-
attach
OperationExecutionStatus attach(java.util.List<DigitalAssetKey> keys)
Attaches digital assets to the media field.- Parameters:
keys- the keys- Returns:
- the operation execution status
-
upload
DigitalAsset upload(Resource resource) throws DAMException
Uploads a new digital asset.- Parameters:
resource- the resource- Returns:
- the new digital asset
- Throws:
DAMException
-
upload
OperationExecutionStatus upload(java.util.List<? extends Resource> resources, Action action)
Uploads new digital asset and attaches it to the media field.- Parameters:
resources- the resourcesaction- the action to determine with the new assets- Returns:
- the operation execution status
-
detach
OperationExecutionStatus detach(java.util.List<DigitalAssetKey> keys)
Detach digital assets from the media field.- Parameters:
keys- the digital asset keys- Returns:
- the operation execution status
-
-