public class CollectionSet extends BaseManager implements Item
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMMAND_OPEN_COLLECTION |
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
JPack |
exportSet()
Exports this set into a
JPack . |
java.util.Set<java.lang.String> |
getCatalogLocations()
Get the list of catalogs that this collection contains records from.
|
CollectionType |
getCollectionType()
Returns the collection type of this collection.
|
java.lang.String |
getCreatingUserUID()
Returns the user unique ID of the user who created this collection.
|
java.util.Date |
getCreationDate()
Returns the date when this collection set was created.
|
CustomData |
getCustomData()
Returns the custom data for this collection 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 is the default collection set.
|
java.lang.String |
getLinkedCollection()
Returns the name of the collection set this linked collection set points to.
|
java.util.Date |
getModificationDate()
Returns the date when this collection set was modified last.
|
java.lang.String |
getName()
Returns the name of this collection.
|
java.net.URI |
getOpenCollectionURI(Server server)
Returns an URI for this collection which will make the locally installed native client application open this collection.
|
RestrictionsList |
getRestrictionsList()
Returns the list of roles and users that are allowed to view this set.
|
boolean |
isAutoCollection()
Returns whether this is an auto collection.
|
boolean |
isCollectionBasketCollection()
Returns whether this is an collection basket collection.
|
boolean |
isDefault()
Returns whether this item is the default item.
|
boolean |
isLinkedCollection()
Returns whether this collection set is a link collection set that points to another collection set.
|
boolean |
isPINCollection()
Returns whether this is a PIN collection.
|
boolean |
isSharingRestricted()
Returns whether the set visibility is restricted to a group of users or roles.
|
boolean |
isUploadCollection()
Returns whether this is a collection set for an upload collection.
|
boolean |
isUserCollection()
Returns whether this is a user created collection set (no auto or collection basket collection).
|
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 |
setModificationDate(java.util.Date modificationDate)
Set the date when this collection was modified last.
|
void |
setSharingRestricted(boolean value)
Sets whether the set visibility is restricted to a group of users or roles.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public static final java.lang.String COMMAND_OPEN_COLLECTION
public boolean isAutoCollection()
public boolean isCollectionBasketCollection()
public boolean isPINCollection()
public boolean isUserCollection()
public boolean isUploadCollection()
public CollectionType getCollectionType()
public java.lang.String getName()
public boolean getIsDefault()
public boolean isLinkedCollection()
public java.lang.String getLinkedCollection()
public CustomData getCustomData()
public java.net.URI getOpenCollectionURI(Server server)
server
- server for this collectionpublic java.lang.String getID()
Item
public boolean isDefault()
Item
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 no 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 java.util.Set<java.lang.String> getCatalogLocations()
Server.getCatalogIDs(boolean, boolean)
and Server.getCatalogInfo(int)
to get the location of a catalog currently opened at the server.public JPack exportSet()
JPack
.exportSet
in interface Item
JPack
MetadataTemplatesList.importSet(com.canto.cumulus.utils.JPack, SetImportDuplicatesMode)
public 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 java.util.Date getCreationDate()
null
is returned.public java.util.Date getModificationDate()
null
is returned.public void setModificationDate(java.util.Date modificationDate)
modificationDate
- The modification datepublic java.lang.String getCreatingUserUID()
null
is returned.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.