public interface Preferences
Modifier and Type | Method and Description |
---|---|
void |
addPreferencesChangeListener(PreferencesChangeListener preferencesChangeListener,
java.lang.String listenerPath)
Add a listener for preferences changes for the specified path.
|
AssetAction |
getAssetAction(java.lang.String name)
Returns the asset action with the specified name.
|
java.util.Collection<java.lang.String> |
getAssetActionNames()
Returns a collection of all asset action names available.
|
java.util.Collection<AssetAction> |
getAssetActions()
Returns a collection of all asset actions available.
|
AssetHandlingSet |
getAssetHandlingSet(java.lang.String name)
Returns the asset handling set with the specified name.
|
java.util.Collection<java.lang.String> |
getAssetHandlingSetNames()
Returns a collection of all asset handling set names available.
|
java.util.Collection<AssetHandlingSet> |
getAssetHandlingSets()
Returns a collection of all asset handling sets available.
|
CatalogTemplate |
getCatalogTemplate(java.lang.String name)
Returns the catalog template with the specified name.
|
java.util.Collection<java.lang.String> |
getCatalogTemplateNames()
Returns a collection of all catalog template names available.
|
java.util.Collection<Query> |
getCategoryQueries()
Returns a collection of all category queries available.
|
Query |
getCategoryQuery(java.lang.String name)
Returns the category query with the specified name.
|
java.util.Collection<java.lang.String> |
getCategoryQueryNames()
Returns a collection of all category query names available.
|
CategoryViewSet |
getCategoryViewSet(java.lang.String name)
Returns the category view set with the specified name.
|
java.util.Collection<java.lang.String> |
getCategoryViewSetNames()
Returns a collection of all category view set names available.
|
CollectionSet |
getCollectionSet(java.lang.String name)
Returns the collection set with the specified name.
|
java.util.Collection<java.lang.String> |
getCollectionSetNames()
Returns a collection of all collection names available.
|
java.util.Collection<CollectionSet> |
getCollectionSets()
Returns all collection sets.
|
CropTemplate |
getCropTemplate(java.lang.String name)
Returns the crop template with the specified name.
|
java.util.Collection<java.lang.String> |
getCropTemplateNames()
Returns a collection of all crop template names available.
|
java.util.Collection<CropTemplate> |
getCropTemplates()
Returns a collection of all crop templates available.
|
CumulusApplicationDisplayPrefs |
getCumulusApplicationDisplayPrefs()
Returns a read-only instance of the Cumulus application display preferences.
|
CumulusApplicationGeneralPrefs |
getCumulusApplicationGeneralPrefs()
Returns a read-only instance of the Cumulus application general preferences.
|
CumulusApplicationSearchPrefs |
getCumulusApplicationSearchPrefs()
Returns a read-only instance of the Cumulus application search preferences.
|
CumulusSession |
getCumulusSession()
Returns the current CumulusSession object.
|
java.lang.String |
getDefaultAssetAction()
Returns the default asset action name.
|
java.lang.String |
getDefaultAssetHandlingSet()
Returns the default asset handling set name.
|
java.lang.String |
getDefaultAssetHandlingSet(java.lang.String catalogName,
boolean forCataloging)
Returns the name of the currently chosen Asset Handling Set for the given catalog.
|
java.lang.String |
getDefaultCropTemplate()
Returns the name of the default crop template name.
|
java.lang.String |
getDefaultMetadataTemplate()
Returns the default metadata template name.
|
java.lang.String |
getDefaultPermissionTemplate()
Returns the default permission template name.
|
java.lang.String |
getDefaultPermissionTemplate(java.lang.String catalogName)
Returns the name of the currently chosen Permission Template for the given catalog.
|
java.lang.String |
getDefaultPrintSet()
Returns the name of the default print set name.
|
java.lang.String |
getDefaultRecordViewSet()
Returns the default record view set name.
|
MetadataTemplate |
getMetadataTemplate(java.lang.String name)
Returns the metadata template with the specified name.
|
java.util.Collection<java.lang.String> |
getMetadataTemplateNames()
Returns a collection of all metadata template names available.
|
java.util.Collection<MetadataTemplate> |
getMetadataTemplates()
Returns all available metadata templates.
|
JPack |
getModulePreferences(java.lang.String moduleUID,
boolean sharedSettings)
Return the general preferences for the given module.
|
PermissionTemplate |
getPermissionTemplate(java.lang.String name)
Returns the permission template with the specified name.
|
java.util.Collection<java.lang.String> |
getPermissionTemplateNames()
Returns a collection of all permission template names available.
|
java.util.Collection<PermissionTemplate> |
getPermissionTemplates()
Returns all available permission templates.
|
java.lang.Object |
getPreferences(java.lang.String path)
Returns the managing instance for the specified part of the preferences.
|
PrintSet |
getPrintSet(java.lang.String name)
Returns the print set with the specified name.
|
java.util.Collection<java.lang.String> |
getPrintSetNames()
Returns a collection of all print set names available.
|
java.util.Collection<PrintSet> |
getPrintSets()
Returns a collection of all print sets available.
|
Query |
getQuery(java.lang.String name)
Returns the record query with the specified name.
|
RecordFilter |
getRecordFilter(java.lang.String name)
Returns the record filter with the specified name.
|
java.util.Collection<java.lang.String> |
getRecordFilterNames()
Returns a collection of all record filter names available.
|
java.util.Collection<Query> |
getRecordQueries()
Returns a collection of all record queries available.
|
Query |
getRecordQuery(java.lang.String name)
Returns the record query with the specified name.
|
java.util.Collection<java.lang.String> |
getRecordQueryNames()
Returns a collection of all record query names available.
|
RecordViewSet |
getRecordViewSet(java.lang.String name)
Returns the record view set with the specified name.
|
java.util.Collection<java.lang.String> |
getRecordViewSetNames()
Returns a collection of all record view set names available.
|
ReportSet |
getReportSet(java.lang.String name)
Returns the report set with the specified name.
|
java.util.Collection<java.lang.String> |
getReportSetNames()
Returns a collection of all report set names available.
|
User |
getUserSettings()
Returns the user settings for the current user.
|
Workspace |
getWorkspace(java.lang.String name)
Returns the workspace with the specified name.
|
java.util.Collection<java.lang.String> |
getWorkspaceNames()
Returns a collection of all workspaces names available.
|
void |
removePreferencesChangeListener(PreferencesChangeListener preferencesChangeListener,
java.lang.String listenerPath)
Removes a listener for preferences changes for the specified path.
|
void |
setModulePreferences(java.lang.String moduleUID,
boolean sharedSettings,
JPack preferencesPack)
Sets the general preferences for the given module.
|
CumulusSession getCumulusSession()
java.lang.Object getPreferences(java.lang.String path)
path
- the path to get the preferences for.java.util.Collection<java.lang.String> getAssetHandlingSetNames()
java.util.Collection<AssetHandlingSet> getAssetHandlingSets()
java.util.Collection<java.lang.String> getRecordViewSetNames()
java.util.Collection<java.lang.String> getCategoryViewSetNames()
java.util.Collection<java.lang.String> getAssetActionNames()
java.util.Collection<AssetAction> getAssetActions()
java.util.Collection<java.lang.String> getMetadataTemplateNames()
java.util.Collection<MetadataTemplate> getMetadataTemplates()
java.util.Collection<java.lang.String> getRecordQueryNames()
java.util.Collection<java.lang.String> getCategoryQueryNames()
java.lang.String getDefaultAssetHandlingSet()
java.lang.String getDefaultRecordViewSet()
java.lang.String getDefaultAssetAction()
java.lang.String getDefaultMetadataTemplate()
java.util.Collection<java.lang.String> getPrintSetNames()
java.util.Collection<PrintSet> getPrintSets()
java.lang.String getDefaultPrintSet()
java.util.Collection<java.lang.String> getCropTemplateNames()
java.util.Collection<CropTemplate> getCropTemplates()
java.lang.String getDefaultCropTemplate()
void addPreferencesChangeListener(PreferencesChangeListener preferencesChangeListener, java.lang.String listenerPath)
preferencesChangeListener
- the listener instance to be notified of changeslistenerPath
- the path to listen for changesvoid removePreferencesChangeListener(PreferencesChangeListener preferencesChangeListener, java.lang.String listenerPath)
preferencesChangeListener
- the listener instance to removelistenerPath
- the path the listener to remove forjava.lang.String getDefaultAssetHandlingSet(java.lang.String catalogName, boolean forCataloging)
catalogName
- name of the catalog to find the corresponding asset handling setforCataloging
- if true the asset handling set for cataloging will be returned otherwise the asset handling set for asset accessjava.lang.String getDefaultPermissionTemplate(java.lang.String catalogName)
catalogName
- name of the catalog to find the corresponding permission templatejava.lang.String getDefaultPermissionTemplate()
java.util.Collection<java.lang.String> getPermissionTemplateNames()
java.util.Collection<PermissionTemplate> getPermissionTemplates()
RecordViewSet getRecordViewSet(java.lang.String name)
name
- the name of the set to getCategoryViewSet getCategoryViewSet(java.lang.String name)
name
- the name of the set to getjava.util.Collection<java.lang.String> getCollectionSetNames()
CollectionSet getCollectionSet(java.lang.String name)
name
- the name of the set to getjava.util.Collection<CollectionSet> getCollectionSets()
RecordFilter getRecordFilter(java.lang.String name)
name
- the name of the filter to getjava.util.Collection<java.lang.String> getRecordFilterNames()
User getUserSettings()
PermissionTemplate getPermissionTemplate(java.lang.String name)
name
- the name of the template to getQuery getQuery(java.lang.String name)
name
- the name of the record query to getQuery getCategoryQuery(java.lang.String name)
name
- the name of the category query to getMetadataTemplate getMetadataTemplate(java.lang.String name)
name
- the name of the template to getPrintSet getPrintSet(java.lang.String name)
name
- the name of the set to getCropTemplate getCropTemplate(java.lang.String name)
name
- the name of the crop template to getAssetHandlingSet getAssetHandlingSet(java.lang.String name)
name
- the name of the set to getAssetAction getAssetAction(java.lang.String name)
name
- the name of the action to getQuery getRecordQuery(java.lang.String name)
name
- the name of the query to getjava.util.Collection<Query> getRecordQueries()
java.util.Collection<Query> getCategoryQueries()
java.util.Collection<java.lang.String> getWorkspaceNames()
Workspace getWorkspace(java.lang.String name)
name
- the name of the workspace to getjava.util.Collection<java.lang.String> getReportSetNames()
ReportSet getReportSet(java.lang.String name)
name
- the name of the set to getjava.util.Collection<java.lang.String> getCatalogTemplateNames()
CatalogTemplate getCatalogTemplate(java.lang.String name)
name
- the name of the template to getCumulusApplicationGeneralPrefs getCumulusApplicationGeneralPrefs()
CumulusApplicationDisplayPrefs getCumulusApplicationDisplayPrefs()
CumulusApplicationSearchPrefs getCumulusApplicationSearchPrefs()
JPack getModulePreferences(java.lang.String moduleUID, boolean sharedSettings)
moduleUID
- uid of the module to get the preferences forsharedSettings
- true for shared settings and false for user settingsvoid setModulePreferences(java.lang.String moduleUID, boolean sharedSettings, JPack preferencesPack)
moduleUID
- uid of the module to set the preferences forsharedSettings
- true for shared settings and false for user settingspreferencesPack
- the preferences to storewww.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.