Interface AssetFactory
-
- All Superinterfaces:
BaseAsset
,NamedAsset
,PermissionsCapableAsset
,SiteManagementAreaAsset
public interface AssetFactory extends SiteManagementAreaAsset
Represents an Asset Factory asset.- Since:
- 4.7
-
-
Field Summary
Fields Modifier and Type Field Description static int
WORKFLOW_MODE_FACTORY_CONTROLLED
When creating assets with this factory the workflow associated with this factory will be used.static int
WORKFLOW_MODE_FOLDER_CONTROLLED
When creating assets with this factory the workflow associated with the folder the asset is placed into will be used.static int
WORKFLOW_MODE_NONE
No workflow will be used when creating assets with this asset factory.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FolderContainedAsset
getBaseAsset()
Get the asset this AssetFactory is based on, or null if this AssetFactory does not have a base asset.int
getWorkflowMode()
Returns a workflow mode set integer in this Asset Factory (AssetFactory.WORKFLOW_MODE_FACTORY_CONTROLLED or AssetFactory.WORKFLOW_MODE_FOLDER_CONTROLLED or AssetFactory.WORKFLOW_MODE_NONE)-
Methods inherited from interface com.hannonhill.cascade.api.asset.common.BaseAsset
getAssetId, getAssetType, getIdentifer
-
Methods inherited from interface com.hannonhill.cascade.api.asset.common.NamedAsset
getLabel, getName, setName
-
Methods inherited from interface com.hannonhill.cascade.api.asset.common.PermissionsCapableAsset
isCurrentUserCanRead, isCurrentUserCanWrite, isUserCanRead, isUserCanWrite
-
Methods inherited from interface com.hannonhill.cascade.api.asset.admin.SiteManagementAreaAsset
getIdentifier, getPath, getSite
-
-
-
-
Field Detail
-
WORKFLOW_MODE_FACTORY_CONTROLLED
static final int WORKFLOW_MODE_FACTORY_CONTROLLED
When creating assets with this factory the workflow associated with this factory will be used.- See Also:
- Constant Field Values
-
WORKFLOW_MODE_FOLDER_CONTROLLED
static final int WORKFLOW_MODE_FOLDER_CONTROLLED
When creating assets with this factory the workflow associated with the folder the asset is placed into will be used.- See Also:
- Constant Field Values
-
WORKFLOW_MODE_NONE
static final int WORKFLOW_MODE_NONE
No workflow will be used when creating assets with this asset factory.- See Also:
- Constant Field Values
-
-
Method Detail
-
getBaseAsset
FolderContainedAsset getBaseAsset()
Get the asset this AssetFactory is based on, or null if this AssetFactory does not have a base asset.- Returns:
- the base asset or null if none is defined.
-
getWorkflowMode
int getWorkflowMode()
Returns a workflow mode set integer in this Asset Factory (AssetFactory.WORKFLOW_MODE_FACTORY_CONTROLLED or AssetFactory.WORKFLOW_MODE_FOLDER_CONTROLLED or AssetFactory.WORKFLOW_MODE_NONE)- Returns:
-
-