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.lang.String |
getArchiveImportLog()
Return the import log as a HTML String
Will be available after archive import processing is complete
- see
isArchiveImportProcessingCompleted() |
ImportArchiveStatus |
getArchiveImportStatus()
Return the status of the archive import after processing is complete
|
ImportArchiveOptions |
getArchiveOptions()
Return the specified import options
|
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 |
getCreateAssetName()
Get the name of the asset which was created.
|
java.io.InputStream |
getExportArchiveContent()
Return the specified export archive content
|
java.lang.String |
getNewAssetId()
Returns the UUID (identifier key) of the newly created asset.
|
java.util.Collection<ArchiveObject> |
getObjectsForArchivePreview()
Return the top level objects from the specified export archive content for preview
|
java.util.Collection<java.lang.String> |
getSelectedArchiveObjectKeys()
Return the selected import object keys
|
boolean |
isArchiveImport()
Return if this is an archive import
|
boolean |
isArchiveImportProcessingCompleted()
Return true if the import processing is complete
|
void |
setArchiveImport(boolean isArchiveImport)
Set to true if export archive needs to be imported
|
void |
setArchiveOptions(ImportArchiveOptions archiveOptions)
Specify the import options @see
ImportArchiveOptions |
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 |
setExportArchiveContent(java.io.InputStream exportArchiveContent)
Set the export archive content as InputStream
|
void |
setName(java.lang.String name)
Sets the name for the registry object that is being created as part of this activity.
|
void |
setSelectedArchiveObjectKeys(java.util.Collection<java.lang.String> selectedArchiveObjectKeys)
Set the keys of the objects selected for import from the preview
|
void |
setSelectedImportFileType(Category importFileTypeCategory)
Sets the type of file to import by specifying the category id.
|
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, setDocument, setInteractiveResolution, setOrigionalName, setOverwriteExisting, setReuse, setReuseAsset
cancel, doesLoggedInUserHaveSufficientRolesOrPermissions, executeNextStep, executePreviousStep, finishAllSteps, getGroup, getIconURL, getId, getName, getNonApplicableReason, 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.void setSelectedImportFileType(Category importFileTypeCategory) throws CLLException
setSelectedImportFileType
in interface AttachDocumentAction
importFileType
- The Category
to import the fileCLLException
- If an the selected type does not support imports for the given
categoryvoid setArchiveImport(boolean isArchiveImport)
isArchiveImport
- boolean isArchiveImport()
void setExportArchiveContent(java.io.InputStream exportArchiveContent)
exportArchiveContent
- java.io.InputStream getExportArchiveContent()
java.util.Collection<ArchiveObject> getObjectsForArchivePreview()
void setSelectedArchiveObjectKeys(java.util.Collection<java.lang.String> selectedArchiveObjectKeys)
selectedArchiveObjectKeys
- java.util.Collection<java.lang.String> getSelectedArchiveObjectKeys()
void setArchiveOptions(ImportArchiveOptions archiveOptions)
ImportArchiveOptions
archiveOptions
- ImportArchiveOptions getArchiveOptions()
java.lang.String getArchiveImportLog()
isArchiveImportProcessingCompleted()
boolean isArchiveImportProcessingCompleted()
ImportArchiveStatus getArchiveImportStatus()
java.lang.String getCreateAssetName()