public class AssetActionsList extends ListPackManager implements ItemManager
ServerSettings.getAssetActionsList()
or a
list of user asset action from calling User.getAssetActionsList()
.BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
AssetAction |
copy(java.lang.String newName,
AssetAction copySource)
Duplicates the given asset action and stores the result under the specified name.
|
AssetAction |
copy(java.lang.String newName,
AssetAction copySource,
boolean copyDisplayNames,
boolean copyDescriptions)
Duplicates the given asset action and stores the result under the specified name.
|
Item |
copy(java.lang.String newID,
Item src,
boolean copyDisplayNames,
boolean copyDescriptions)
Duplicates the given item with the specified UID.
|
void |
delete(AssetAction setToDelete)
Deletes the given asset action.
|
void |
delete(Item item)
Deletes the given item.
|
AssetAction |
getAssetAction(java.lang.String name)
Returns the asset action for the given name.
|
java.util.List<java.lang.String> |
getAssetActionNames()
Return a list of asset action names of this instance.
|
Item |
getItem(java.lang.String id)
Returns the item with the specified UID.
|
java.util.Collection<java.lang.String> |
getItemIDs()
Returns the list of item UIDs that are available by this manager instance.
|
int |
getItemType()
Returns the item type for the items of this manager.
|
java.lang.String |
getPath()
Returns the path for this item manager instance.
|
AssetAction |
importSet(JPack data,
SetImportDuplicatesMode duplicatesMode)
Imports the given exported set data into a new set.
|
void |
rename(java.lang.String newName,
AssetAction setToRename)
Renames the given asset action to the new specified name.
|
void |
rename(java.lang.String newName,
AssetAction setToRename,
boolean keepDisplayNames,
boolean keepDescriptions)
Renames the given asset action to the new specified name.
|
void |
rename(java.lang.String newID,
Item item,
boolean keepDisplayNames,
boolean keepDescriptions)
Renames the given item to the new UID.
|
void |
setAsDefault(AssetAction newDefaultSet)
Sets the given asset action as the default asset action.
|
void |
setAsDefault(Item item)
Sets the given item to be the default item.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public AssetAction copy(java.lang.String newName, AssetAction copySource) throws CumulusException, javax.naming.InvalidNameException
newName
- the name of the new asset actioncopySource
- the source asset action to copyCumulusException
- in case of an errorjavax.naming.InvalidNameException
- in case of an invalid or already used namepublic AssetAction copy(java.lang.String newName, AssetAction copySource, boolean copyDisplayNames, boolean copyDescriptions) throws CumulusException, javax.naming.InvalidNameException
newName
- the name of the new asset actioncopySource
- the source asset action to copycopyDisplayNames
- true if display names should be copied as wellcopyDescriptions
- true if descriptions should be copied as wellCumulusException
- in case of an errorjavax.naming.InvalidNameException
- in case of an invalid or already used namepublic AssetAction importSet(JPack data, SetImportDuplicatesMode duplicatesMode) throws CumulusException, PermissionDeniedException
data
- set that had been exported using AssetAction.exportSet()
beforeduplicatesMode
- mode to handle duplicate setsCumulusException
- in case of an server errorPermissionDeniedException
- if you are not cumulus adminAssetAction.exportSet()
public void setAsDefault(AssetAction newDefaultSet)
newDefaultSet
- the new default asset actionpublic void rename(java.lang.String newName, AssetAction setToRename) throws CumulusException, javax.naming.InvalidNameException
newName
- the new name for the asset actionsetToRename
- the asset action to renameCumulusException
- in case of an errorjavax.naming.InvalidNameException
- in case of an invalid namepublic void rename(java.lang.String newName, AssetAction setToRename, boolean keepDisplayNames, boolean keepDescriptions) throws CumulusException, javax.naming.InvalidNameException
newName
- the new name for the asset actionsetToRename
- the asset action to renamekeepDisplayNames
- true if display names should be keptkeepDescriptions
- true if descriptions should be keptCumulusException
- in case of an errorjavax.naming.InvalidNameException
- in case of an invalid namepublic void delete(AssetAction setToDelete) throws CumulusException
setToDelete
- the action to deleteCumulusException
- in case of an errorpublic java.util.List<java.lang.String> getAssetActionNames()
String
public AssetAction getAssetAction(java.lang.String name)
name
- the name of the asset action to returnpublic Item copy(java.lang.String newID, Item src, boolean copyDisplayNames, boolean copyDescriptions) throws javax.naming.InvalidNameException, CumulusException
copy
in interface ItemManager
newID
- the UID of the new itemsrc
- the item to copycopyDisplayNames
- true if display names should be copied as wellcopyDescriptions
- true if descriptions should be copied as welljavax.naming.InvalidNameException
- if the name is already in use or invalid for another reasonCumulusException
- in case of an errorpublic Item getItem(java.lang.String id)
getItem
in interface ItemManager
id
- the items UID to getpublic void delete(Item item) throws CumulusException
delete
in interface ItemManager
item
- the item to deleteCumulusException
- in case of an errorpublic java.util.Collection<java.lang.String> getItemIDs()
getItemIDs
in interface ItemManager
public void rename(java.lang.String newID, Item item, boolean keepDisplayNames, boolean keepDescriptions) throws javax.naming.InvalidNameException, CumulusException
rename
in interface ItemManager
newID
- the new item UIDitem
- the item to renamekeepDisplayNames
- true if display names should be keptkeepDescriptions
- true if descriptions should be keptjavax.naming.InvalidNameException
- in case of an invalid nameCumulusException
- in case of another errorpublic void setAsDefault(Item item)
setAsDefault
in interface ItemManager
item
- the item to be the defaultpublic java.lang.String getPath()
ItemManager
getPath
in interface ItemManager
public int getItemType()
ItemManager
getItemType
in interface ItemManager
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.