public interface CreateAssetActivity extends Activity, AttachDocumentAction
Modifier and Type | Method and Description |
---|---|
java.util.List<Organization> |
getApplicableOrganizations()
Returns a list of organizations for which the user has Create Asset permission.
|
java.util.List<CentraSiteRegistryObject> |
getAssets()
Returns a list of newly created assets.
|
java.util.Collection<CentraSiteRegistryObjectType> |
getAssetTypes()
Returns the collection of top-level asset types.
|
java.lang.String |
getNewAssetId()
Returns the UUID (identifier key) of the newly created asset.
|
void |
setCreateNewAsset(boolean createNewAsset)
Creates the new asset instance based on the given inputs.
|
void |
setDescription(java.lang.String description)
Sets the description for the registry object that is being created as part of this activity.
|
void |
setName(java.lang.String name)
Sets the name for the registry object that is being created as part of this activity.
|
void |
setSelectedOrganization(Organization organization)
Sets the selected organization for the registry object that is being created as part of this activity.
|
void |
setSelectedType(CentraSiteRegistryObjectType type)
Sets the selected asset type for the registry object that is being created as part of this activity.
|
void |
setUserVersion(java.lang.String userVersion)
Sets the user version for the registry object that is being created as part of this activity.
|
execute, isApplicable
getCurrentState, getExistingAssets, getMainAssetFileName, getMainAssetId, getMessage, getMissingFileName, getSupportedOptions, setAssetName, setCreateVersion, setCredentials, setDocument, setDocument, setInteractiveResolution, setOrigionalName, setOverwriteExisting, setReuseAsset
cancel, executeNextStep, executePreviousStep, finishAllSteps, getGroup, getIconURL, getId, getName, getSkippedObjectsWithReason, isAllowed, isApplicable, setObjects
java.util.Collection<CentraSiteRegistryObjectType> getAssetTypes() throws CLLException
Collection
of top-level asset types as CentraSiteRegistryObjectType
instancesCLLException
- If CLL fails to return all the top-level asset typesjava.util.List<Organization> getApplicableOrganizations() throws CLLException
List
of Organization
s for which user has Create Asset permissionCLLException
- If CLL fails to return the list of organizationsvoid setSelectedType(CentraSiteRegistryObjectType type)
type
- CentraSiteRegistryObjectType
(Asset type) to be set for the registry objectvoid setSelectedOrganization(Organization organization)
organization
- Organization
to be set for the registry objectvoid setName(java.lang.String name)
name
- Name to be set for the registry objectvoid setDescription(java.lang.String description)
description
- Description to be set for the registry objectvoid setUserVersion(java.lang.String userVersion)
setUserVersion
in interface AttachDocumentAction
userVersion
- User specified version to be set for the registry objectjava.util.List<CentraSiteRegistryObject> getAssets() throws CLLException
List
of newly created assets as CentraSiteRegistryObject
instancesCLLException
- If CLL fails to return the list of newly created assetsvoid setCreateNewAsset(boolean createNewAsset)
createNewAsset
- If true, it means that the user wants
to create a new asset instance and if false, a new asset instance will not be created.java.lang.String getNewAssetId() throws CLLException
CLLException
- In case of a failure to get the asset id.