public class AssetAction extends BaseManager implements Item
Modifier and Type | Class and Description |
---|---|
static class |
AssetAction.ErrorMode
This enum specifies the different types for the asset action error mode.
|
static class |
AssetAction.ErrorModeFileFormats
This enum specifies the different types of handling assets that do not fit the configured asset type restriction.
|
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
JPack |
exportSet()
Exports this set into a
JPack . |
AssetActionPackers |
getAssetActionPackers()
The manager for the list of packers for this action.
|
AssetActionProcessors |
getAssetActionProcessors()
The manager for the list of processors for this action.
|
AssetActionSavers |
getAssetActionSavers()
The manager for the list of savers for this action.
|
java.lang.String |
getAssetHandlingSet()
Returns the name of the asset handling set being used when executing the asset action and
useAssetHandlingSet() returning true. |
java.lang.String |
getDescription(int languageID)
Returns the description for the given language id.
|
java.lang.String |
getDisplayName(int languageID,
boolean fallbackToDefaultName)
Returns the display name for the given language id.
|
AssetAction.ErrorMode |
getErrorMode()
Return the error mode for this asset action.
|
java.util.Set<java.lang.String> |
getFileFormatFilterList()
Returns the list of allowed file formats for this asset action.
|
java.lang.String |
getID()
Returns the UID of the item in the items namespace.
|
AssetAction.ErrorModeFileFormats |
getInvalidFileFormatsErrorMode()
Return the error mode for assets that don't match the allowed list of file formats.
|
boolean |
getIsDefault()
Returns whether this is the default asset action.
|
java.lang.String |
getName()
Returns the name of this asset action.
|
RestrictionsList |
getRestrictionsList()
Returns the list of roles and users that are allowed to view this set.
|
boolean |
getUseFileFormatFilter()
Returns whether this asset action should only process assets of a specific file type.
|
boolean |
isDefault()
Returns whether this item is the default item.
|
boolean |
isSharingRestricted()
Returns whether the set visibility is restricted to a group of users or roles.
|
void |
setAssetHandlingSet(java.lang.String value)
Sets the asset handling set to use when executing this action.
|
void |
setDescription(int languageID,
java.lang.String description)
Sets the description for the given language.
|
void |
setDisplayName(int languageID,
java.lang.String displayName)
Sets the display name for the given language.
|
void |
setErrorMode(AssetAction.ErrorMode mode)
Sets the error mode for this asset action.
|
void |
setFileFormatFilterList(java.util.Set<java.lang.String> list)
Configures the list of allowed file formats for this asset action.
|
void |
setInvalidFileFormatsErrorMode(AssetAction.ErrorModeFileFormats mode)
Sets the error mode for assets that don't match the allowed list of file formats.
|
void |
setSharingRestricted(boolean value)
Sets whether the set visibility is restricted to a group of users or roles.
|
void |
setUseAssetHandlingSet(boolean value)
Sets whether this action should use a specific asset handling set when being executed.
|
void |
setUseFileFormatFilter(boolean use)
Configures whether this asset action should only process assets of a specific file type.
|
boolean |
useAssetHandlingSet()
Returns whether this action should use a specific asset handling set when being executed.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public java.lang.String getName()
public boolean getIsDefault()
public boolean useAssetHandlingSet()
public void setUseAssetHandlingSet(boolean value)
value
- true if a specific asset handling set should be usedpublic AssetAction.ErrorMode getErrorMode()
public void setErrorMode(AssetAction.ErrorMode mode)
mode
- error mode of this asset actionpublic AssetAction.ErrorModeFileFormats getInvalidFileFormatsErrorMode()
public void setInvalidFileFormatsErrorMode(AssetAction.ErrorModeFileFormats mode)
mode
- error mode for assets that don't match the allowed list of file formatspublic boolean getUseFileFormatFilter()
public void setUseFileFormatFilter(boolean use)
use
- whether this asset action should only process assets of a specific file typepublic java.util.Set<java.lang.String> getFileFormatFilterList()
public void setFileFormatFilterList(java.util.Set<java.lang.String> list)
list
- list of allowed file formats for this asset actionpublic java.lang.String getAssetHandlingSet()
useAssetHandlingSet()
returning true.public void setAssetHandlingSet(java.lang.String value)
setUseAssetHandlingSet(boolean)
to true.value
- the name of the asset handling set to usepublic AssetActionProcessors getAssetActionProcessors()
public AssetActionPackers getAssetActionPackers()
public AssetActionSavers getAssetActionSavers()
public java.lang.String getID()
public boolean isDefault()
public JPack exportSet()
JPack
.exportSet
in interface Item
JPack
AssetActionsList.importSet(com.canto.cumulus.utils.JPack, SetImportDuplicatesMode)
public java.lang.String getDescription(int languageID)
getDescription
in interface Item
languageID
- specifying the language for the descriptionpublic void setDescription(int languageID, java.lang.String description)
setDescription
in interface Item
languageID
- the language to set the description fordescription
- the new descriptionpublic java.lang.String getDisplayName(int languageID, boolean fallbackToDefaultName)
getDisplayName
in interface Item
languageID
- specifying the language for the display namefallbackToDefaultName
- when set to true this method returns the default name when now localized display name is available otherwise nullpublic void setDisplayName(int languageID, java.lang.String displayName)
setDisplayName
in interface Item
languageID
- the language to set the display name fordisplayName
- the new display namepublic boolean isSharingRestricted()
isSharingRestricted
in interface Item
public void setSharingRestricted(boolean value)
setSharingRestricted
in interface Item
value
- set to true if the set visibility should be restricted to a group of users or rolespublic RestrictionsList getRestrictionsList()
isSharingRestricted()
returns
true.getRestrictionsList
in interface Item
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.