@Entity public class Collection extends DSpaceObject implements DSpaceObjectLegacySupport
The collection's metadata (name, introductory text etc), workflow groups, and
default group of submitters are loaded into memory. Changes to metadata are
not written to the database until update is called. If you
create or remove a workflow group, the change is only reflected in the
database after calling update. The default group of
submitters is slightly different - creating or removing this has instant
effect.
| Modifier and Type | Field and Description |
|---|---|
static String |
COPYRIGHT_TEXT |
static String |
INTRODUCTORY_TEXT |
static String |
PROVENANCE_TEXT |
static String |
SHORT_DESCRIPTION |
static String |
SIDEBAR_TEXT |
id| Modifier | Constructor and Description |
|---|---|
protected |
Collection()
Protected constructor, create object using:
CollectionService.create(Context, Community)
or
CollectionService.create(Context, Community, String) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Return
true if other is the same Collection
as this object, false otherwise |
Group |
getAdministrators()
Get the default group of administrators, if there is one.
|
List<Community> |
getCommunities()
Get the communities this collection appears in
|
Integer |
getLegacyId() |
String |
getLicenseCollection()
Get the license that users must grant before submitting to this
collection.
|
Bitstream |
getLogo()
Get the logo for the collection.
|
String |
getName() |
Group |
getSubmitters()
Get the default group of submitters, if there is one.
|
Item |
getTemplateItem()
Get the template item for this collection.
|
int |
getType()
return type found in Constants
|
Group |
getWorkflowStep1() |
Group |
getWorkflowStep2() |
Group |
getWorkflowStep3() |
int |
hashCode() |
void |
setLicense(Context context,
String license)
Set the license for this collection.
|
protected void |
setLogo(Bitstream logo) |
void |
setWorkflowGroup(int step,
Group g) |
addDetails, addHandle, addMetadata, clearDetails, clearModified, getDetails, getHandle, getHandles, getID, getMetadata, getResourcePolicies, isMetadataModified, isModified, removeMetadata, removeMetadata, setMetadata, setMetadataModified, setModifiedpublic static final String COPYRIGHT_TEXT
public static final String INTRODUCTORY_TEXT
public static final String SHORT_DESCRIPTION
public static final String SIDEBAR_TEXT
public static final String PROVENANCE_TEXT
protected Collection()
CollectionService.create(Context, Community)
or
CollectionService.create(Context, Community, String)public String getName()
getName in class DSpaceObjectpublic Bitstream getLogo()
null is returned if the
collection does not have a logo.nullprotected void setLogo(Bitstream logo)
public Group getSubmitters()
The default group of submitters for collection 100 is the one called
collection_100_submit.
null if there
is no default group.public Group getAdministrators()
The default group of administrators for collection 100 is the one called
collection_100_admin.
null if there is no
default group.public Group getWorkflowStep1()
public Group getWorkflowStep2()
public Group getWorkflowStep3()
public String getLicenseCollection()
public void setLicense(Context context, String license) throws SQLException
null means
that the site-wide default will be used.context - contextlicense - the license, or nullSQLException - if database errorpublic Item getTemplateItem() throws SQLException
null is
returned if the collection does not have a template. Submission
mechanisms may copy this template to provide a convenient starting point
for a submission.nullSQLException - if database errorpublic List<Community> getCommunities() throws SQLException
Community objectsSQLException - if database errorpublic boolean equals(Object other)
true if other is the same Collection
as this object, false otherwisepublic int getType()
getType in class DSpaceObjectpublic void setWorkflowGroup(int step,
Group g)
public Integer getLegacyId()
getLegacyId in interface DSpaceObjectLegacySupportCopyright © 2016 DuraSpace. All rights reserved.