Class Community

    • Method Detail

      • removeSubCommunity

        public void removeSubCommunity​(Community subCommunity)
      • getLogo

        public Bitstream getLogo()
        Get the logo for the community. null is return if the community does not have a logo.
        Returns:
        the logo of the community, or null
      • getAdministrators

        public Group getAdministrators()
        Get the default group of administrators, if there is one. Note that the authorization system may allow others to be administrators for the community.

        The default group of administrators for community 100 is the one called community_100_admin.

        Returns:
        group of administrators, or null if there is no default group.
      • getCollections

        public List<Collection> getCollections()
        Get the collections in this community. Throws an SQLException because creating a community object won't load in all collections.
        Returns:
        array of Collection objects
      • getSubcommunities

        public List<Community> getSubcommunities()
        Get the immediate sub-communities of this community. Throws an SQLException because creating a community object won't load in all collections.
        Returns:
        array of Community objects
      • getParentCommunities

        public List<Community> getParentCommunities()
        Return the parent community of this community, or null if the community is top-level
        Returns:
        the immediate parent community, or null if top-level
      • removeParentCommunity

        public void removeParentCommunity​(Community parentCommunity)
      • equals

        public boolean equals​(Object other)
        Return true if other is the same Community as this object, false otherwise
        Overrides:
        equals in class Object
        Parameters:
        other - object to compare to
        Returns:
        true if object passed in represents the same community as this object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getType

        public int getType()
        return type found in Constants
        Specified by:
        getType in class DSpaceObject
        Returns:
        Community type