Interface ComposeLogic


  • public interface ComposeLogic
    • Method Detail

      • getGroupAwareRole

        String getGroupAwareRole()
        Get group-aware role which is set in sakai.properties e.g. "mailsender.group.aware.role=Student,access"
        Returns:
        return the String of group-aware role name
      • getGroupAwareRoleDefault

        String getGroupAwareRoleDefault()
        // OOTB(Out of the box) Sakai defaults
        Returns:
        return default group-aware role by type if type=course, return Student. if type=project, return access.
      • getUsersByRole

        List<User> getUsersByRole​(String role)
                           throws IdUnusedException
        Retrieve members for the current site that are of a certain role.
        Parameters:
        role -
        Returns:
        List of Users that are sorted by last name, first name.
        Throws:
        IdUnusedException
      • countUsersByRole

        int countUsersByRole​(String role)
        Gets the numbers of users in a role.
        Parameters:
        role -
        Returns:
      • countUsersByGroup

        int countUsersByGroup​(String groupId)
        Get the number of users in a group.
        Parameters:
        groupId -
        Returns: