@Name(value="damImportActions") @Scope(value=CONVERSATION) @Install(precedence=10) public class DamImportActions extends Object implements Serializable
Constructor and Description |
---|
DamImportActions() |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
void |
cancelNewAsset() |
String |
generateBatchId() |
List<Type> |
getAllowedImportFolderSubTypes() |
DocumentModel |
getImportDocumentModel() |
List<Action> |
getImportOptions(String dropContext) |
String |
getSelectedImportFolderId() |
Action |
getSelectedImportOption() |
String |
getSelectedImportOptionId() |
String |
getSelectedNewAssetType()
Gets the selected new asset type.
|
List<Type> |
getSubTypesFor(DocumentModel doc) |
Collection<org.richfaces.model.UploadItem> |
getUploadedFiles() |
boolean |
hasUploadedFiles() |
String |
importAssets() |
void |
saveNewAsset() |
void |
selectNewAssetType() |
void |
setSelectedImportFolderId(String selectedImportFolderId) |
void |
setSelectedImportOptionId(String id) |
void |
setSelectedNewAssetType(String selectedNewAssetType) |
void |
setUploadedFiles(Collection<org.richfaces.model.UploadItem> uploadedFiles) |
public DocumentModel getImportDocumentModel()
public String getSelectedImportOptionId()
public void setSelectedImportOptionId(String id)
public Action getSelectedImportOption()
public String getSelectedImportFolderId() throws ClientException
ClientException
public void setSelectedImportFolderId(String selectedImportFolderId)
public List<Type> getSubTypesFor(DocumentModel doc)
public List<Type> getAllowedImportFolderSubTypes() throws ClientException
ClientException
public String generateBatchId()
public boolean hasUploadedFiles()
public String importAssets() throws ClientException
ClientException
public void cancel()
public Collection<org.richfaces.model.UploadItem> getUploadedFiles()
public void setUploadedFiles(Collection<org.richfaces.model.UploadItem> uploadedFiles)
public String getSelectedNewAssetType() throws ClientException
If selected type is null, initialize it to the first one, and initialize the changeable document with this document type.
ClientException
public void setSelectedNewAssetType(String selectedNewAssetType)
public void selectNewAssetType() throws ClientException
ClientException
public void saveNewAsset() throws ClientException
ClientException
public void cancelNewAsset()
Copyright © 2013 Nuxeo SA. All Rights Reserved.