Class CommunityMembershipEntities
java.lang.Object
org.silverpeas.components.community.web.CommunityMembershipEntities
- All Implemented Interfaces:
Serializable,org.silverpeas.core.web.rs.WebEntity
public class CommunityMembershipEntities
extends Object
implements org.silverpeas.core.web.rs.WebEntity
A collection of web entities representing each a membership to a community. As the collection can
be just a window over a part of some memberships, the total number of memberships answering the
request is indicated whereas the collection provides just a part of them.
- Author:
- mmoquillon
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedCommunityMembershipEntities(org.silverpeas.core.util.SilverpeasList<CommunityMembershipEntity> memberships) -
Method Summary
-
Constructor Details
-
CommunityMembershipEntities
protected CommunityMembershipEntities() -
CommunityMembershipEntities
protected CommunityMembershipEntities(org.silverpeas.core.util.SilverpeasList<CommunityMembershipEntity> memberships)
-
-
Method Details
-
getURI
- Specified by:
getURIin interfaceorg.silverpeas.core.web.rs.WebEntity
-
getRealSize
public long getRealSize()Gets the total real count of memberships matching the request.- Returns:
- the real size of the collection, that is the size of the collection whether all the members matching the request have been contained by it.
-
getSize
public long getSize()Gets the actual count of memberships contained in this collection.- Returns:
- the actual size of this collection. If this collection contains all the memberships matching the request, then his actual size is equal to his real size.
-
getMemberships
Gets all the memberships contained in this collection.- Returns:
- the memberships (or a port of them) matching the request.
-