## Uses of Class
org.silverpeas.components.community.model.CommunityOfUsers

- Packages that use CommunityOfUsers
  Package | Description
  --- | ---
  org.silverpeas.components.community.model | The business objects used to represent a community of users and its members.
  org.silverpeas.components.community.notification | Provides classes to notify other components in Silverpeas about the events triggered by some operations in a Community application instance.
  org.silverpeas.components.community.notification.user |
  org.silverpeas.components.community.repository | Persistence repository for the community of users and for the members of the communities.

- - ### Uses of CommunityOfUsers in org.silverpeas.components.community.model

    Methods in org.silverpeas.components.community.model that return CommunityOfUsers
    Modifier and Type | Method | Description
    --- | --- | ---
    `CommunityOfUsers` | CommunityMembership.`getCommunity()` | Gets the community to which this membership belongs.

    Methods in org.silverpeas.components.community.model that return types with arguments of type CommunityOfUsers
    Modifier and Type | Method | Description
    --- | --- | ---
    `static List<CommunityOfUsers>` | CommunityOfUsers.`getAll()` | Gets all the communities of users existing in Silverpeas.
    `static Optional<CommunityOfUsers>` | CommunityOfUsers.`getByComponentInstanceId​(String instanceId)` | Gets the community of users managed by the specified component instance.
    `static Optional<CommunityOfUsers>` | CommunityOfUsers.`getBySpaceId​(String spaceId)` | Gets the community of users of the specified collaborative space.

  - ### Uses of CommunityOfUsers in org.silverpeas.components.community.notification

    Methods in org.silverpeas.components.community.notification with parameters of type CommunityOfUsers
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected CommunityEvent` | CommunityEventNotifier.`createResourceEventFrom​(org.silverpeas.core.notification.system.ResourceEvent.Type type, CommunityOfUsers... resource)` |

    Constructors in org.silverpeas.components.community.notification with parameters of type CommunityOfUsers
    Constructor | Description
    --- | ---
    `CommunityEvent​(org.silverpeas.core.notification.system.ResourceEvent.Type type, CommunityOfUsers... contribution)` | Constructs a new event with the specified type and that implies the specified Community states, each of them representing by a different Community instance.

  - ### Uses of CommunityOfUsers in org.silverpeas.components.community.notification.user

    Methods in org.silverpeas.components.community.notification.user with parameters of type CommunityOfUsers
    Modifier and Type | Method | Description
    --- | --- | ---
    `static MembershipLeaveUserNotificationBuilder` | MembershipLeaveUserNotificationBuilder.`about​(CommunityOfUsers community)` | Initializing the user notification builder with given community.
    `static MembershipRequestUserNotificationBuilder` | MembershipRequestUserNotificationBuilder.`about​(CommunityOfUsers community)` | Initializing the user notification builder with given community.
    `static MembershipRequestValidationUserNotificationBuilder` | MembershipRequestValidationUserNotificationBuilder.`about​(CommunityOfUsers community)` | Initializing the user notification builder with given community.
    `protected String` | AbstractCommunityUserNotificationBuilder.`getResourceURL​(CommunityOfUsers resource)` |
    `protected String` | MembershipRequestUserNotificationBuilder.`getResourceURL​(CommunityOfUsers resource)` |
    `protected void` | MembershipLeaveUserNotificationBuilder.`perform​(CommunityOfUsers resource)` |
    `protected void` | MembershipRequestValidationUserNotificationBuilder.`perform​(CommunityOfUsers resource)` |
    `protected void` | AbstractCommunityUserNotificationBuilder.`performNotificationResource​(String language, CommunityOfUsers resource, org.silverpeas.core.notification.user.model.NotificationResourceData notificationResourceData)` |
    `protected void` | AbstractCommunityUserNotificationBuilder.`performTemplateData​(String language, CommunityOfUsers resource, org.silverpeas.core.template.SilverpeasTemplate template)` |
    `protected void` | MembershipLeaveUserNotificationBuilder.`performTemplateData​(String language, CommunityOfUsers resource, org.silverpeas.core.template.SilverpeasTemplate template)` |
    `protected void` | MembershipRequestUserNotificationBuilder.`performTemplateData​(String language, CommunityOfUsers resource, org.silverpeas.core.template.SilverpeasTemplate template)` |
    `protected void` | MembershipRequestValidationUserNotificationBuilder.`performTemplateData​(String language, CommunityOfUsers resource, org.silverpeas.core.template.SilverpeasTemplate template)` |

    Constructors in org.silverpeas.components.community.notification.user with parameters of type CommunityOfUsers
    Constructor | Description
    --- | ---
    `AbstractCommunityUserNotificationBuilder​(CommunityOfUsers resource)` |
    `MembershipLeaveUserNotificationBuilder​(CommunityOfUsers resource)` |
    `MembershipRequestUserNotificationBuilder​(CommunityOfUsers resource)` |
    `MembershipRequestValidationUserNotificationBuilder​(CommunityOfUsers resource)` |

  - ### Uses of CommunityOfUsers in org.silverpeas.components.community.repository

    Methods in org.silverpeas.components.community.repository that return types with arguments of type CommunityOfUsers
    Modifier and Type | Method | Description
    --- | --- | ---
    `List<CommunityOfUsers>` | CommunityOfUsersJpaRepository.`getAllByUserId​(String userId)` |
    `List<CommunityOfUsers>` | CommunityOfUsersRepository.`getAllByUserId​(String userId)` | Gets all the community of users the specified user is currently a member.
    `Optional<CommunityOfUsers>` | CommunityOfUsersJpaRepository.`getByComponentInstanceId​(String componentInstanceId)` |
    `Optional<CommunityOfUsers>` | CommunityOfUsersRepository.`getByComponentInstanceId​(String componentInstanceId)` | Gets the community of users managed by the specified component instance.
    `Optional<CommunityOfUsers>` | CommunityOfUsersJpaRepository.`getBySpaceId​(String spaceId)` |
    `Optional<CommunityOfUsers>` | CommunityOfUsersRepository.`getBySpaceId​(String spaceId)` | Gets the community of users of the specified collaborative space.

    Methods in org.silverpeas.components.community.repository with parameters of type CommunityOfUsers
    Modifier and Type | Method | Description
    --- | --- | ---
    `CommunityMembershipRepository.CommunityMembershipsTable` | CommunityMembershipJpaRepository.`getMembershipsTable​(CommunityOfUsers community)` |
    `CommunityMembershipRepository.CommunityMembershipsTable` | CommunityMembershipRepository.`getMembershipsTable​(CommunityOfUsers community)` | Gets the table of members of the specified community.