Interface SakaiPersonManager

    • Method Detail

      • getPrototype

        SakaiPerson getPrototype()
        Get a new instantiation of an empty SakaiPerson object (has no persistent state). For example, useful if you query-by-example finder method.
        Returns:
      • findSakaiPersonByUid

        List<SakaiPerson> findSakaiPersonByUid​(String uid)
        Retrieve SakaiPerson by uid (username).
        Parameters:
        uid - username
        Returns:
        List of SakaiPerson objects incuding both system and user mutable Types.
      • findSakaiPerson

        List<SakaiPerson> findSakaiPerson​(SakaiPerson queryByExample)
        Query-by-Example finder signature.
        Parameters:
        queryByExample - A SakaiPerson protoype. All non-null preoperties will be searched using a logical AND.
        Returns:
      • getSakaiPersons

        Map<String,​SakaiPerson> getSakaiPersons​(Set<String> userIds,
                                                      Type userMutableType)
        Finds all SakaiPerson objects with the specified type, whos IDs are contained in the userIds collection.
        Parameters:
        userIds -
        userMutableType -
        Returns:
      • getUserMutableType

        Type getUserMutableType()
        Returns the userMutableType constant. SakaiPerson's of this Type allow the user to modify all attributes.
        Returns:
      • getSystemMutableType

        Type getSystemMutableType()
        Returns the systemMutableType constant. SakaiPerson's of this Type can only be modified by the "system", i.e. not the end user, and would normally consist of enterprise data (e.g. LDAP, etc).
        Returns:
      • save

        void save​(SakaiPerson sakaiPerson)
        Save or update the SakaiPerson bean.
        Parameters:
        sakaiPerson -
      • delete

        void delete​(SakaiPerson sakaiPerson)
        Removes SakaiPerson from persistent state.
        Parameters:
        sakaiPerson -
      • findSakaiPerson

        List<SakaiPerson> findSakaiPerson​(String simpleSearchCriteria)
        Search the "common" SakaiPerson fields for a given String.
        Parameters:
        simpleSearchCriteria - String used to search for SakaiPerson objects where the following properties are like this String: uid, givenName, surname.
        Returns:
      • isFerpaEnabled

        List<String> isFerpaEnabled​(Collection<String> agentUuids)
        Composite call to determine if a Set of Agents have the FERPA flag enabled.
        Parameters:
        agentUuids -
        Returns:
        A List of agentUuid Strings where FERPA is enabled.
      • findAllFerpaEnabled

        List<SakaiPerson> findAllFerpaEnabled()
        Find all SakaiPerson objects where ferpaEnabled == TRUE.
        Returns:
        A List of SakaiPerson objects where ferpaEnabled == TRUE.