Modifier and Type | Method and Description |
---|---|
AssetSaveStatusBean |
copy(AssetId source, String targetName, MessageCollectors.SaveAssetsMessageCollector collector)
Copies an asset and returns a new asset with the specified name by copying fields from the source asset and mutating field values as governed by the dimension object.
|
boolean |
delete(AssetId assetId, MessageCollectors.DeleteAssetsMessageCollector collector)
Deletes an asset.
|
List<AssetId> |
delete(List<AssetId> assetIds, MessageCollectors.DeleteAssetsMessageCollector collector)
Deletes a list of assets identified by the asset identifiers in assetsToDelete.
|
boolean |
exists(AssetId assetId)
Returns true if an asset exists.
|
boolean |
existsInSite(AssetId assetId, long siteId)
Returns true if an asset exists in the given site.
|
List<SiteBean> |
getCommonEnabledSites(List<AssetId> assetIds)
Returns the list of sites in which intersection of all the assets enabled sites.
|
List<SiteBean> |
getCommonSharedSites(List<AssetId> assetIds)
Returns the list of sites in which intersection of all the assets shared sites.
|
AssetTypeDef |
getDefinition(String type, String subType)
Returns the asset type definition object for a specified asset type.
|
List<AssetId> |
getReferences(AssetId assetId)
Returns a list of asset identifiers for all assets which reference a given asset.
|
List<SiteBean> |
getSitesInWhichEnabled(String assetType)
Returns the list of sites for which the given asset type is enabled.
|
List<SiteBean> |
getSitesInWhichShared(AssetId assetId)
Returns the list of sites in which an asset is shared.
|
List<String> |
getSubtypes(String assetType, Long site)
Returns the List of subtypes for the given flex asset type and site.
|
AssetData |
newAsset(String type, String subtype, StartMenuBean startMenu)
Returns an empty asset data instance for a given asset type.
|
AssetData |
read(AssetId assetId)
Returns data associated with asset.
|
AssetData |
read(AssetId assetId, List<String> fields)
Returns a subset of the data associated with asset, retrieving only a subset of the available fields.
|
List<AssetData> |
read(List<AssetId> assetIds)
Returns data associated with asset.
|
List<AssetId> |
removeReferences(AssetId assetId, List<AssetId> references, MessageCollectors.RemoveReferenceMessageCollector collector)
Removes the references of an asset.
|
AssetSaveStatusBean |
save(AssetData assetData, MessageCollectors.SaveAssetsMessageCollector collector)
Saves the data associated with an asset.
|
Boolean |
share(AssetId assetId, List<Long> sites)
Shares an asset with all the sites in the specified list.
|
AssetSaveStatusBean |
translate(AssetId assetid, String targetName, DimensionBean dimension, MessageCollectors.SaveAssetsMessageCollector collector)
Translates an asset and returns a new asset as governed by the specified dimension object.
|
getManager, getResponse, setManager
AssetTypeDef getDefinition(String type, String subType) throws ServiceException
type,
- String the asset type for which the type definition is to be retrieved.subType,
- String the asset sub type for which the type definition is to be retrieved.ServiceException
- wraps any exception underlying the service call.AssetData newAsset(String type, String subtype, StartMenuBean startMenu) throws ServiceException
type
- the asset type whose instance is to be created.subtype
- the asset subType whose instance is to be created.startMenu
- the start menu corresponding to the asset type, set as null to avoid setting default values.ServiceException
- wraps any exception underlying the service call.AssetData read(AssetId assetId) throws ServiceException
assetId
- the identifier of the asset to retrieve.ServiceException
- wraps any exception underlying the service call.List<AssetData> read(List<AssetId> assetIds) throws ServiceException
assetIds
- the identifier of the asset to retrieve.ServiceException
- wraps any exception underlying the service call.AssetData read(AssetId assetId, List<String> fields) throws ServiceException
assetId
- the list of identifier for the assets to load.fields
- the list of fields which are to be retrieved.ServiceException
- wraps any exception underlying the service call.AssetSaveStatusBean save(AssetData assetData, MessageCollectors.SaveAssetsMessageCollector collector) throws ServiceException
assetData
- the data associated with the asset to save.collector
- a DeleteAssetsMessageCollectorServiceException
- wraps any exception underlying the service call.boolean delete(AssetId assetId, MessageCollectors.DeleteAssetsMessageCollector collector) throws ServiceException
assetId
- the identifier of the asset to delete.collector
- a DeleteAssetsMessageCollectorServiceException
- wraps any exception underlying the service call.List<AssetId> delete(List<AssetId> assetIds, MessageCollectors.DeleteAssetsMessageCollector collector) throws ServiceException
assetIds
- the list containing identifiers of the assets to delete.collector
- a DeleteAssetsMessageCollectorServiceException
- wraps any exception underlying the service call.List<AssetId> getReferences(AssetId assetId) throws ServiceException
assetId
- the identifier for the asset whose references are to be retrieved.ServiceException
- wraps any exception underlying the service call.List<AssetId> removeReferences(AssetId assetId, List<AssetId> references, MessageCollectors.RemoveReferenceMessageCollector collector) throws ServiceException
assetId
- identifier of the asset to delete.references
- list containing identifiers of assets referencing asset.collector
- a DeleteAssetsMessageCollectorServiceException
- wraps any exception underlying the service call.List<SiteBean> getSitesInWhichEnabled(String assetType) throws ServiceException
assetType
- the asset type which should be enabled in the list of sites returned.ServiceException
- wraps any exception underlying the service call.List<SiteBean> getSitesInWhichShared(AssetId assetId) throws ServiceException
assetId
- identifier of the asset which should be shared in the list of sites returned.ServiceException
- wraps any exception underlying the service call.List<SiteBean> getCommonEnabledSites(List<AssetId> assetIds) throws ServiceException
assetIds
- list of asset idsServiceException
- wraps any exception underlying the service call.List<SiteBean> getCommonSharedSites(List<AssetId> assetIds) throws ServiceException
assetIds
- list of asset idsServiceException
- wraps any exception underlying the service call.Boolean share(AssetId assetId, List<Long> sites) throws ServiceException
assetId
- identifier of the asset to share.sites
- list of sites with which asset is to be shared.ServiceException
- wraps any exception underlying the service call.List<String> getSubtypes(String assetType, Long site) throws ServiceException
assetType
- The flex asset type for which to retrieve the list of sub types in the specified site (the type returned by TypeBean getType() is considered).site
- the site in which to search for the subtypes.ServiceException
- wraps any exception underlying the service call.AssetSaveStatusBean translate(AssetId assetid, String targetName, DimensionBean dimension, MessageCollectors.SaveAssetsMessageCollector collector) throws ServiceException
assetid
- source the asset from which the translation is to be made.targetName
- name of the target asset which is created by the translation process.collector
- a DeleteAssetsMessageCollectordimension
- name of the dimension using which the translation has to be made.ServiceException
- wraps any exception underlying the service call.AssetSaveStatusBean copy(AssetId source, String targetName, MessageCollectors.SaveAssetsMessageCollector collector) throws ServiceException
source
- the identifier for the asset.collector
- a DeleteAssetsMessageCollectortargetName
- name of the target asset which is created by the copy process.ServiceException
- wraps any exception underlying the service call.boolean exists(AssetId assetId) throws ServiceException
assetId
- the identifier for the asset.ServiceException
- wraps any exception underlying the service call.boolean existsInSite(AssetId assetId, long siteId) throws ServiceException
assetId
- the identifier for the asset.siteId
- the identifier for the site.ServiceException
- wraps any exception underlying the service call.