public class AssetHandlingSet extends BaseManager implements Item
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
boolean |
copySubAssetsToCentralLocation()
Returns true if the sub assets should also be copied to the central asset location configured for the catalog when cataloging using this asset handling
set.
|
boolean |
deleteOriginalAssetAfterCopyToCentralAssetLocation()
Returns true if the original asset should be locally deleted after copying it to the central asset location configured for the catalog when cataloging
using this asset handling set.
|
JPack |
exportSet()
Exports this set into a
JPack . |
int |
getAddAndUpdate()
Returns the cataloging mode for adding and updating existing records when cataloging using this asset handling set.
|
int |
getAddOrIgnoreDuplicates()
Returns the cataloging mode for adding or ignoring duplicate assets when cataloging using this asset handling set.
|
AssetFiltersList |
getAssetFiltersList()
Returns the list of filters of this asset handling set.
|
AssetFormatsList |
getAssetFormatsList()
Returns the asset formats list of this asset handling set.
|
AssetModuleList |
getAssetGeneralPurposeModuleList()
Returns a list of general purpose asset modules of this asset handling set.
|
AssetModuleList |
getAssetMetadataBridgesModuleList()
Returns a list of asset metadata bridge modules of this asset handling set.
|
AssetModuleList |
getAssetProcessorModuleList()
Returns a list of asset processor modules of this asset handling set.
|
AssetModuleList |
getAssetStorageModuleList()
Returns a list of asset storage modules of this asset handling set.
|
boolean |
getAutoAddNewFormats()
Returns whether newly found formats should automatically be added to the formats list.
|
boolean |
getCatalogMissingReferencedAssets()
Returns whether missing referenced assets should also be cataloged.
|
boolean |
getCatalogUnknownFormats()
Returns whether unknown formats should be cataloged as well.
|
int |
getCentralAssetLocation()
Returns the mode for handling the central asset location configured for the catalog when cataloging using this asset handling set.
|
int |
getCreateThumbnailFrom()
Returns the thumbnail source when cataloging using this asset handling set.
|
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.
|
java.lang.String |
getID()
Returns the UID of the item in the items namespace.
|
boolean |
getIsDefault()
Returns whether this asset handling set is the default asset handling set.
|
java.lang.String |
getMetadataTemplate()
Returns the name of the metadata template applied when cataloging or null when not configured.
|
ModulePreferencesList |
getModulePreferencesList()
Returns the manager for module preferences.
|
java.lang.String |
getName()
Returns the name of this asset handling set.
|
boolean |
getOptimizeThumbnail()
Returns whether thumbnails should be optimized on creation.
|
java.lang.String |
getPreFillerRecordViewSet()
Returns the name of the record view set to use when showing the PreFiller or null when not configured.
|
int |
getResolveOrIgnore()
Returns whether linked assets should be resolved.
|
RestrictionsList |
getRestrictionsList()
Returns the list of roles and users that are allowed to view this set.
|
int |
getThumbnailQualityColor()
Returns the mode for thumbnail quality for color when cataloging using this asset handling set.
|
int |
getThumbnailQualityGrayscale()
Returns the mode for thumbnail quality for grayscale when cataloging using this asset handling set.
|
int |
getThumbnailQualityLineArt()
Returns the mode for thumbnail quality for lineart when cataloging using this asset handling set.
|
int |
getThumbnailSize()
Returns the thumbnail size when cataloging using this asset handling set.
|
int |
getThumbnailSizeOther()
Returns the custom thumbnail size.
|
boolean |
getUpdateAssetModificationDateWhenWritingMetadata()
Returns whether the assets modification date should be updated when writing back metadata to that asset.
|
int |
getVersioningGLVBehaviour()
Returns the mode for handling the getting of assets when using this asset handling set.
|
AssetHandlingSetWorkflowList |
getWorkflowList()
Returns the list of referenced workflows which should be started when cataloging with this asset handling set.
|
int |
getWriteMDToAssets()
Returns the mode for writing metadata back to the asset when using this asset handling set.
|
int |
getWriteMetadataDestination()
Returns the destination for writing metadata back.
|
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 |
setAddAndUpdate(int value)
Sets the cataloging mode for adding and updating existing records when cataloging using this asset handling set.
|
void |
setAddOrIgnoreDuplicates(int value)
Sets the cataloging mode for adding or ignoring duplicate assets when cataloging using this asset handling set.
|
void |
setAutoAddNewFormats(boolean value)
Sets whether newly found formats should automatically be added to the formats list.
|
void |
setCatalogMissingReferencedAssets(boolean value)
Sets whether missing referenced assets should also be cataloged.
|
void |
setCatalogUnknownFormats(boolean value)
Configures whether unknown formats should be cataloged as well.
|
void |
setCentralAssetLocation(int cal)
Sets the mode for handling the central asset location configured for the catalog when cataloging using this asset handling set.
|
void |
setCopySubAssetsToCentralLocation(boolean value)
Configures whether the sub assets should also be copied to the central asset location configured for the catalog when cataloging using this asset
handling set.
|
void |
setCreateThumbnailFrom(int value)
Sets the thumbnail source when cataloging using this asset handling set.
|
void |
setDeleteOriginalAssetAfterCopyToCentralAssetLocation(boolean value)
Configures whether the original asset should be locally deleted after copying it to the central asset location configured for the catalog when cataloging
using this asset handling set.
|
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 |
setMetadataTemplate(java.lang.String value)
Sets the name of the metadata template applied when cataloging or null when not configured.
|
void |
setOptimizeThumbnail(boolean optimize)
Sets whether thumbnails should be optimized on creation.
|
void |
setPreFillerRecordViewSet(java.lang.String value)
Sets the name of the record view set being used when showing the PreFiller.
|
void |
setResolveOrIgnore(int val)
Configures whether linked assets should be resolved.
|
void |
setSharingRestricted(boolean value)
Sets whether the set visibility is restricted to a group of users or roles.
|
void |
setThumbnailQualityColor(int quality)
Sets the mode for thumbnail quality for color when cataloging using this asset handling set.
|
void |
setThumbnailQualityGrayscale(int quality)
Sets the mode for thumbnail quality for grayscale when cataloging using this asset handling set.
|
void |
setThumbnailQualityLineArt(int quality)
Sets the mode for thumbnail quality for lineart when cataloging using this asset handling set.
|
void |
setThumbnailSize(int value)
Sets the thumbnail size when cataloging using this asset handling set.
|
void |
setThumbnailSizeOther(int value)
Sets the custom thumbnail size.
|
void |
setUpdateAssetModificationDateWhenWritingMetadata(boolean update)
Configures whether the assets modification date should be updated when writing back metadata to that asset.
|
void |
setUseMetadataTemplate(boolean value)
Set whether a metadata template should automatically be applied when cataloging.
|
void |
setUsePreFillerForNewRecords(boolean value)
Sets whether the metadata editor window should be shown for new records before saving the record.
|
void |
setUsePreFillerForUpdatedRecords(boolean value)
Sets whether the metadata editor window should be shown for updated records before saving the record.
|
void |
setVersioningGLVBehaviour(int value)
Sets the mode for handling the getting of assets when using this asset handling set.
|
void |
setWriteMDToAssets(int value)
Sets the mode for writing metadata back to the asset when using this asset handling set.
|
void |
setWriteMetadataDestination(int mode)
Sets the destination for writing metadata back.
|
boolean |
useMetadataEditorForNewRecords()
Returns whether the metadata editor window should be shown for new records before saving the record.
|
boolean |
useMetadataEditorForUpdatedRecords()
Returns whether the metadata editor window should be shown for updated records before saving the record.
|
boolean |
useMetadataTemplate()
Returns whether a metadata template should automatically be applied when cataloging.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public static final int CREATE_THUMBNAIL_FROM_OPTION_USE_EMBEDDED_THUMBNAIL_IF_AVAILABLE
public static final int CREATE_THUMBNAIL_FROM_OPTION_USE_EMBEDDED_THUMBNAIL_IF_LARGE_ENOUGH
public static final int CREATE_THUMBNAIL_FROM_OPTION_USE_ENTIRE_ASSET
public static final int THUMBNAIL_SIZE_OPTION_SMALL
public static final int THUMBNAIL_SIZE_OPTION_MEDIUM
public static final int THUMBNAIL_SIZE_OPTION_LARGE
public static final int THUMBNAIL_SIZE_OPTION_CUSTOM
public static final int ADD_AND_UPDATE_OPTION_ADD_ONLY
public static final int ADD_AND_UPDATE_OPTION_ADD_AND_UPDATE
public static final int ADD_AND_UPDATE_OPTION_UPDATE_ONLY
public static final int ADD_OR_IGNORE_DUPLICATES_OPTION_ADD
public static final int ADD_OR_IGNORE_DUPLICATES_OPTION_IGNORE
public static final int WRITEBACK_METADATA_TO_ASSET_OPTION_NEVER
public static final int WRITEBACK_METADATA_TO_ASSET_OPTION_SILENTLY
public static final int WRITEBACK_METADATA_TO_ASSET_OPTION_ALWAYS
public static final int WRITEBACK_METADATA_WRITE_DESTINATION_OPTION_TO_ASSET_AND_METADATA
public static final int WRITEBACK_METADATA_WRITE_DESTINATION_OPTION_TO_METADATA
public static final int THUMBNAIL_QUALITY_LINEART_OPTION_NORMAL
public static final int THUMBNAIL_QUALITY_LINEART_OPTION_HIGH
public static final int THUMBNAIL_QUALITY_COLOR_OPTION_NORMAL
public static final int THUMBNAIL_QUALITY_COLOR_OPTION_HIGH
public static final int THUMBNAIL_QUALITY_GRAYSCALE_OPTION_NORMAL
public static final int THUMBNAIL_QUALITY_GRAYSCALE_OPTION_HIGH
public static final int CENTRAL_ASSET_LOCATION_OPTION_COPY_OR_MOVE
public static final int CENTRAL_ASSET_LOCATION_OPTION_REFERENCE_ORIGINAL
public static final int RESOLVE_OR_IGNORE_OPTION_RESOLVE
public static final int RESOLVE_OR_IGNORE_OPTION_IGNORE
public static final int VERSIONING_GET_BEHAVIOUR_OPTION_ALWAYS_GET_LATEST_VERSION
public static final int VERSIONING_GET_BEHAVIOUR_OPTION_ASK_FOR_VERSION
public static final int VERSIONING_DELETE_BEHAVIOUR_OPTION_ALWAYS_DELETE_ALL_VERSIONS
public static final int VERSIONING_DELETE_BEHAVIOUR_OPTION_ASK_FOR_VERSION
public static final int THUMBNAIL_SIZE_OTHER
public static final int[] dataKeys
public java.lang.String getName()
public int getCreateThumbnailFrom()
CREATE_THUMBNAIL_FROM_OPTION_USE_EMBEDDED_THUMBNAIL_IF_AVAILABLE
, CREATE_THUMBNAIL_FROM_OPTION_USE_EMBEDDED_THUMBNAIL_IF_LARGE_ENOUGH
and
CREATE_THUMBNAIL_FROM_OPTION_USE_ENTIRE_ASSET
. Defaults to CREATE_THUMBNAIL_FROM_OPTION_USE_EMBEDDED_THUMBNAIL_IF_AVAILABLE
.public void setCreateThumbnailFrom(int value)
CREATE_THUMBNAIL_FROM_OPTION_USE_EMBEDDED_THUMBNAIL_IF_AVAILABLE
, CREATE_THUMBNAIL_FROM_OPTION_USE_EMBEDDED_THUMBNAIL_IF_LARGE_ENOUGH
and
CREATE_THUMBNAIL_FROM_OPTION_USE_ENTIRE_ASSET
.value
- the wanted thumbnail sourcepublic int getThumbnailSize()
THUMBNAIL_SIZE_OPTION_SMALL
, THUMBNAIL_SIZE_OPTION_MEDIUM
, THUMBNAIL_SIZE_OPTION_LARGE
and THUMBNAIL_SIZE_OPTION_CUSTOM
. Defaults to THUMBNAIL_SIZE_OPTION_MEDIUM
.public void setThumbnailSize(int value)
THUMBNAIL_SIZE_OPTION_SMALL
, THUMBNAIL_SIZE_OPTION_MEDIUM
, THUMBNAIL_SIZE_OPTION_LARGE
and THUMBNAIL_SIZE_OPTION_CUSTOM
.value
- the wanted thumbnail sizepublic int getThumbnailSizeOther()
public void setThumbnailSizeOther(int value)
value
- the new custom thumbnail size.public boolean getOptimizeThumbnail()
public void setOptimizeThumbnail(boolean optimize)
optimize
- true if thumbnail should be optimizedpublic int getAddAndUpdate()
ADD_AND_UPDATE_OPTION_ADD_ONLY
, ADD_AND_UPDATE_OPTION_ADD_AND_UPDATE
and ADD_AND_UPDATE_OPTION_UPDATE_ONLY
. Defaults to ADD_AND_UPDATE_OPTION_ADD_AND_UPDATE
.public void setAddAndUpdate(int value)
ADD_AND_UPDATE_OPTION_ADD_ONLY
, ADD_AND_UPDATE_OPTION_ADD_AND_UPDATE
and ADD_AND_UPDATE_OPTION_UPDATE_ONLY
.value
- the wanted mode for adding or updating recordspublic int getAddOrIgnoreDuplicates()
ADD_OR_IGNORE_DUPLICATES_OPTION_ADD
and ADD_OR_IGNORE_DUPLICATES_OPTION_IGNORE
. Defaults to ADD_OR_IGNORE_DUPLICATES_OPTION_IGNORE
.public void setAddOrIgnoreDuplicates(int value)
ADD_OR_IGNORE_DUPLICATES_OPTION_ADD
and ADD_OR_IGNORE_DUPLICATES_OPTION_IGNORE
.value
- the wanted mode for adding or ignoring duplicate assetspublic int getWriteMDToAssets()
WRITEBACK_METADATA_TO_ASSET_OPTION_NEVER
, WRITEBACK_METADATA_TO_ASSET_OPTION_SILENTLY
and WRITEBACK_METADATA_TO_ASSET_OPTION_ALWAYS
.
Defaults to WRITEBACK_METADATA_TO_ASSET_OPTION_NEVER
.public void setWriteMDToAssets(int value)
WRITEBACK_METADATA_TO_ASSET_OPTION_NEVER
, WRITEBACK_METADATA_TO_ASSET_OPTION_SILENTLY
and WRITEBACK_METADATA_TO_ASSET_OPTION_ALWAYS
.value
- the wanted mode for writing metadata back to the assetpublic int getWriteMetadataDestination()
WRITEBACK_METADATA_WRITE_DESTINATION_OPTION_TO_ASSET_AND_METADATA
or
WRITEBACK_METADATA_WRITE_DESTINATION_OPTION_TO_METADATA
.public void setWriteMetadataDestination(int mode)
WRITEBACK_METADATA_WRITE_DESTINATION_OPTION_TO_ASSET_AND_METADATA
or WRITEBACK_METADATA_WRITE_DESTINATION_OPTION_TO_METADATA
.mode
- the mode for writing metadata backpublic boolean getUpdateAssetModificationDateWhenWritingMetadata()
public void setUpdateAssetModificationDateWhenWritingMetadata(boolean update)
update
- true if the modification date should be updatedpublic int getThumbnailQualityLineArt()
THUMBNAIL_QUALITY_LINEART_OPTION_NORMAL
and THUMBNAIL_QUALITY_LINEART_OPTION_HIGH
. Defaults to THUMBNAIL_QUALITY_LINEART_OPTION_HIGH
.public void setThumbnailQualityLineArt(int quality)
THUMBNAIL_QUALITY_LINEART_OPTION_NORMAL
and THUMBNAIL_QUALITY_LINEART_OPTION_HIGH
.quality
- the wanted mode for thumbnail quality for lineartpublic int getThumbnailQualityGrayscale()
THUMBNAIL_QUALITY_GRAYSCALE_OPTION_NORMAL
and THUMBNAIL_QUALITY_GRAYSCALE_OPTION_HIGH
. Defaults to THUMBNAIL_QUALITY_GRAYSCALE_OPTION_HIGH
.public void setThumbnailQualityGrayscale(int quality)
THUMBNAIL_QUALITY_GRAYSCALE_OPTION_NORMAL
and THUMBNAIL_QUALITY_GRAYSCALE_OPTION_HIGH
. Defaults to THUMBNAIL_QUALITY_GRAYSCALE_OPTION_HIGH
.quality
- the wanted mode for thumbnail quality for grayscalepublic int getThumbnailQualityColor()
THUMBNAIL_QUALITY_COLOR_OPTION_NORMAL
and THUMBNAIL_QUALITY_COLOR_OPTION_HIGH
. Defaults to THUMBNAIL_QUALITY_COLOR_OPTION_HIGH
.public void setThumbnailQualityColor(int quality)
THUMBNAIL_QUALITY_COLOR_OPTION_NORMAL
and THUMBNAIL_QUALITY_COLOR_OPTION_HIGH
.quality
- the wanted mode for thumbnail quality for colorpublic int getCentralAssetLocation()
CENTRAL_ASSET_LOCATION_OPTION_COPY_OR_MOVE
and CENTRAL_ASSET_LOCATION_OPTION_REFERENCE_ORIGINAL
. Defaults to CENTRAL_ASSET_LOCATION_OPTION_REFERENCE_ORIGINAL
.public void setCentralAssetLocation(int cal)
CENTRAL_ASSET_LOCATION_OPTION_COPY_OR_MOVE
and CENTRAL_ASSET_LOCATION_OPTION_REFERENCE_ORIGINAL
.cal
- the mode for handling the central asset location configured for the catalogpublic boolean deleteOriginalAssetAfterCopyToCentralAssetLocation()
public void setDeleteOriginalAssetAfterCopyToCentralAssetLocation(boolean value)
value
- true if the original asset should be deleted after copying it to the central asset location, otherwise falsepublic boolean copySubAssetsToCentralLocation()
public void setCopySubAssetsToCentralLocation(boolean value)
value
- true if the sub assets should also be copied to the central asset location, otherwise falsepublic int getResolveOrIgnore()
RESOLVE_OR_IGNORE_OPTION_RESOLVE
and RESOLVE_OR_IGNORE_OPTION_IGNORE
. Defaults to RESOLVE_OR_IGNORE_OPTION_IGNORE
.public void setResolveOrIgnore(int val)
RESOLVE_OR_IGNORE_OPTION_RESOLVE
and RESOLVE_OR_IGNORE_OPTION_IGNORE
. Defaults to RESOLVE_OR_IGNORE_OPTION_IGNORE
.val
- RESOLVE_OR_IGNORE_OPTION_IGNORE
to ignore linked assets otherwise RESOLVE_OR_IGNORE_OPTION_RESOLVE
public boolean getIsDefault()
public boolean getAutoAddNewFormats()
public void setAutoAddNewFormats(boolean value)
value
- true if newly found formats should automatically be added to the formats listpublic boolean getCatalogUnknownFormats()
public void setCatalogUnknownFormats(boolean value)
value
- true if unknown formats should be cataloged as wellpublic ModulePreferencesList getModulePreferencesList()
public AssetModuleList getAssetStorageModuleList()
public AssetModuleList getAssetProcessorModuleList()
public AssetModuleList getAssetMetadataBridgesModuleList()
public AssetModuleList getAssetGeneralPurposeModuleList()
public AssetFormatsList getAssetFormatsList()
public AssetFiltersList getAssetFiltersList()
public boolean useMetadataTemplate()
public void setUseMetadataTemplate(boolean value)
value
- true if a metadata template should automatically be applied when catalogingpublic boolean useMetadataEditorForNewRecords()
public void setUsePreFillerForNewRecords(boolean value)
value
- true if the metadata editor window should be shownpublic boolean useMetadataEditorForUpdatedRecords()
public void setUsePreFillerForUpdatedRecords(boolean value)
value
- true if the metadata editor window should be shownpublic java.lang.String getMetadataTemplate()
public void setMetadataTemplate(java.lang.String value)
value
- name of the metadata template applied when cataloging or nullpublic java.lang.String getPreFillerRecordViewSet()
public void setPreFillerRecordViewSet(java.lang.String value)
value
- name of the record view set to use for the PreFillerpublic int getVersioningGLVBehaviour()
VERSIONING_GET_BEHAVIOUR_OPTION_ALWAYS_GET_LATEST_VERSION
and VERSIONING_GET_BEHAVIOUR_OPTION_ASK_FOR_VERSION
. Defaults to VERSIONING_GET_BEHAVIOUR_OPTION_ALWAYS_GET_LATEST_VERSION
.public void setVersioningGLVBehaviour(int value)
VERSIONING_GET_BEHAVIOUR_OPTION_ALWAYS_GET_LATEST_VERSION
and VERSIONING_GET_BEHAVIOUR_OPTION_ASK_FOR_VERSION
.value
- the mode for the getting of assetspublic boolean getCatalogMissingReferencedAssets()
Feature.AUTO_CATALOG_REFERENCED_ASSETS
feature. Defaults to false.public void setCatalogMissingReferencedAssets(boolean value)
Feature.AUTO_CATALOG_REFERENCED_ASSETS
feature.value
- true if missing referenced assets should also be catalogedpublic java.lang.String getID()
public boolean isDefault()
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
public AssetHandlingSetWorkflowList getWorkflowList()
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.