@Entity public class Community extends DSpaceObject implements DSpaceObjectLegacySupport, IndexableObject<UUID>
The community's metadata (name, introductory text etc.) is loaded into'
memory. Changes to this metadata are only reflected in the database after
update is called.
| Modifier and Type | Field and Description |
|---|---|
protected CommunityService |
communityService |
static String |
COPYRIGHT_TEXT |
static String |
INTRODUCTORY_TEXT |
static String |
SHORT_DESCRIPTION |
static String |
SIDEBAR_TEXT |
id| Modifier | Constructor and Description |
|---|---|
protected |
Community()
Protected constructor, create object using:
CommunityService.create(Community, Context)
or
CommunityService.create(Community, Context, String) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Return
true if other is the same Community
as this object, false otherwise |
Group |
getAdministrators()
Get the default group of administrators, if there is one.
|
List<Collection> |
getCollections()
Get the collections in this community.
|
Integer |
getLegacyId() |
Bitstream |
getLogo()
Get the logo for the community.
|
String |
getName() |
List<Community> |
getParentCommunities()
Return the parent community of this community, or null if the community
is top-level
|
List<Community> |
getSubcommunities()
Get the immediate sub-communities of this community.
|
int |
getType()
return type found in Constants
|
String |
getTypeText() |
int |
hashCode() |
void |
removeParentCommunity(Community parentCommunity) |
void |
removeSubCommunity(Community subCommunity) |
addDetails, addHandle, addMetadata, clearDetails, clearModified, getDetails, getHandle, getHandles, getID, getMetadata, getResourcePolicies, isMetadataModified, isModified, removeMetadata, removeMetadata, setMetadata, setMetadataModified, setModifiedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetUniqueIndexIDgetIDpublic static final String COPYRIGHT_TEXT
public static final String INTRODUCTORY_TEXT
public static final String SHORT_DESCRIPTION
public static final String SIDEBAR_TEXT
protected transient CommunityService communityService
protected Community()
CommunityService.create(Community, Context)
or
CommunityService.create(Community, Context, String)public void removeSubCommunity(Community subCommunity)
public Bitstream getLogo()
null is return if the
community does not have a logo.nullpublic Group getAdministrators()
The default group of administrators for community 100 is the one called
community_100_admin.
null if there is no
default group.public List<Collection> getCollections()
public List<Community> getSubcommunities()
public List<Community> getParentCommunities()
public void removeParentCommunity(Community parentCommunity)
public boolean equals(Object other)
true if other is the same Community
as this object, false otherwisepublic int getType()
getType in interface IndexableObject<UUID>getType in class DSpaceObjectpublic String getTypeText()
getTypeText in interface IndexableObject<UUID>IndexableObject.getType()public String getName()
getName in class DSpaceObjectpublic Integer getLegacyId()
getLegacyId in interface DSpaceObjectLegacySupportCopyright © 2019 DuraSpace. All rights reserved.