Class GroupServiceImpl

    • Constructor Detail

      • GroupServiceImpl

        public GroupServiceImpl()
    • Method Detail

      • get

        public Group get​(String groupId)
        Description copied from interface: GroupService
        gets detailed information about a specified group by id
        Specified by:
        get in interface GroupService
        Parameters:
        groupId - the group id
        Returns:
        the group
      • getByName

        public List<? extends Group> getByName​(String groupName)
        Description copied from interface: GroupService
        get detailed information about groups matching specified by name and domain
        Specified by:
        getByName in interface GroupService
        Parameters:
        groupName - the group name
        Returns:
        the of list groups matching the name across all domains
      • getByName

        public Group getByName​(String groupName,
                               String domainId)
        Description copied from interface: GroupService
        get detailed information about groups matching specified by name and domain
        Specified by:
        getByName in interface GroupService
        Parameters:
        groupName - the group name
        domainId - the domain id
        Returns:
        the of list groups matching the name in a specific domain or null if not found
      • update

        public Group update​(Group group)
        Description copied from interface: GroupService
        updates an existing group
        Specified by:
        update in interface GroupService
        Parameters:
        group - the group set to update
        Returns:
        the updated group
      • create

        public Group create​(Group group)
        Description copied from interface: GroupService
        create a new group
        Specified by:
        create in interface GroupService
        Parameters:
        group - the group
        Returns:
        the newly created group
      • create

        public Group create​(String domainId,
                            String name,
                            String description)
        Description copied from interface: GroupService
        creates a new group
        Specified by:
        create in interface GroupService
        Parameters:
        domainId - the domain id
        name - the group name
        description - the description
        Returns:
        the newly created group
      • checkGroupUser

        public ActionResponse checkGroupUser​(String groupId,
                                             String userId)
        Description copied from interface: GroupService
        check whether a user belongs to a group
        Specified by:
        checkGroupUser in interface GroupService
        Parameters:
        groupId - the group id
        userId - the user id
        Returns:
        the ActionResponse
      • addUserToGroup

        public ActionResponse addUserToGroup​(String groupId,
                                             String userId)
        adds an existing user to a group
        Specified by:
        addUserToGroup in interface GroupService
        Parameters:
        groupId - the group id
        userId - the user id
        Returns:
        the ActionResponse
      • listProjectGroupRoles

        public List<? extends Role> listProjectGroupRoles​(String groupId,
                                                          String projectId)
        Description copied from interface: GroupService
        list role for group on a project
        Specified by:
        listProjectGroupRoles in interface GroupService
        Parameters:
        groupId - the group id
        projectId - the project id
        Returns:
        the list of project roles for the group
      • listDomainGroupRoles

        public List<? extends Role> listDomainGroupRoles​(String groupId,
                                                         String domainId)
        Description copied from interface: GroupService
        list roles for a group on a domain
        Specified by:
        listDomainGroupRoles in interface GroupService
        Parameters:
        groupId - the group id
        domainId - the domain id
        Returns:
        the list of domain roles for a group