public interface SakaiPersonManager
| Modifier and Type | Field and Description |
|---|---|
static String |
PROFILE_DELETE |
static String |
PROFILE_UPDATE |
| Modifier and Type | Method and Description |
|---|---|
SakaiPerson |
create(String agentUuid,
Type recordType)
Creates a persistent SakaiPerson record.
|
void |
delete(SakaiPerson sakaiPerson)
Removes SakaiPerson from persistent state.
|
List<SakaiPerson> |
findAllFerpaEnabled()
Find all SakaiPerson objects where ferpaEnabled == TRUE.
|
List<SakaiPerson> |
findSakaiPerson(SakaiPerson queryByExample)
Query-by-Example finder signature.
|
List<SakaiPerson> |
findSakaiPerson(String simpleSearchCriteria)
Search the "common" SakaiPerson fields for a given String.
|
List<SakaiPerson> |
findSakaiPersonByUid(String uid)
Retrieve SakaiPerson by uid (username).
|
SakaiPerson |
getPrototype()
Get a new instantiation of an empty SakaiPerson object (has no persistent state).
|
SakaiPerson |
getSakaiPerson(String agentUuid,
Type recordType)
Find all SakaiPerson objects with specified type.
|
SakaiPerson |
getSakaiPerson(Type recordType)
Assumes current user.
|
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.
|
Type |
getSystemMutableType()
Returns the systemMutableType constant.
|
Type |
getUserMutableType()
Returns the userMutableType constant.
|
List<String> |
isFerpaEnabled(Collection<String> agentUuids)
Composite call to determine if a Set of Agents have the FERPA flag enabled.
|
void |
save(SakaiPerson sakaiPerson)
Save or update the SakaiPerson bean.
|
static final String PROFILE_UPDATE
static final String PROFILE_DELETE
SakaiPerson create(String agentUuid, Type recordType)
agentUuid - recordType - getSystemMutableType() or getUserMutableType()SakaiPerson getPrototype()
List<SakaiPerson> findSakaiPersonByUid(String uid)
uid - usernameList<SakaiPerson> findSakaiPerson(SakaiPerson queryByExample)
queryByExample - A SakaiPerson protoype. All non-null preoperties will be searched using a logical AND.SakaiPerson getSakaiPerson(Type recordType)
#findSakaiPerson(String, Type).recordType - See getSystemMutableType() or getUserMutableType().SakaiPerson getSakaiPerson(String agentUuid, Type recordType)
agent - recordType - See getSystemMutableType() or getUserMutableType().Map<String,SakaiPerson> getSakaiPersons(Set<String> userIds, Type userMutableType)
userIds - userMutableType - Type getUserMutableType()
Type getSystemMutableType()
void save(SakaiPerson sakaiPerson)
sakaiPerson - void delete(SakaiPerson sakaiPerson)
sakaiPerson - List<SakaiPerson> findSakaiPerson(String simpleSearchCriteria)
simpleSearchCriteria - String used to search for SakaiPerson objects where the following properties are like this String: uid, givenName, surname.List<String> isFerpaEnabled(Collection<String> agentUuids)
agentUuids - List<SakaiPerson> findAllFerpaEnabled()
Copyright © 2004–2018 Sakai Project. All rights reserved.