|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SubjectManagerRemote
| Method Summary | |
|---|---|
void |
changePassword(Subject subject,
java.lang.String username,
java.lang.String password)
Change the password for a user. |
void |
createPrincipal(Subject subject,
java.lang.String username,
java.lang.String password)
Creates a new principal (username and password) in the internal database. |
Subject |
createSubject(Subject subject,
Subject subjectToCreate)
Create a a new subject. |
void |
deleteSubjects(Subject subject,
int[] subjectIds)
Deletes the given set of users, including both the Subject and Principal objects associated with
those users. |
PageList<Subject> |
findSubjectsByCriteria(Subject subject,
SubjectCriteria criteria)
|
Subject |
getSubjectByName(java.lang.String username)
Looks up the existing of a subject by the given username. |
Subject |
login(java.lang.String username,
java.lang.String password)
Logs a user into the system. |
void |
logout(Subject subject)
Logs out a user. |
Subject |
updateSubject(Subject subject,
Subject subjectToModify)
Updates an existing subject with new data. |
| Method Detail |
|---|
void changePassword(Subject subject,
java.lang.String username,
java.lang.String password)
subject - The logged in user's subject.username - The user whose password will be changedpassword - The new password for the user
void createPrincipal(Subject subject,
java.lang.String username,
java.lang.String password)
throws SubjectException
subject - The logged in user's subject.username - The username part of the principalpassword - The password part ofthe principal
java.lang.Exception - if the principal could not be added
SubjectException
Subject createSubject(Subject subject,
Subject subjectToCreate)
throws SubjectException
subject. The created subject will not be
assigned to any roles; use the role manager to assign roles to a subject.
subject - The logged in user's subject.subjectToCreate - The subject to be created.
Subject
SubjectException
void deleteSubjects(Subject subject,
int[] subjectIds)
Subject and Principal objects associated with
those users.
subject - The logged in user's subject.subjectIds - identifies the subject IDs for all the users that are to be deleted
java.lang.Exception - if failed to delete one or more usersSubject getSubjectByName(java.lang.String username)
username - the name of the subject to look for
null if not found
Subject login(java.lang.String username,
java.lang.String password)
throws LoginException
username - The name of the user.password - The password.
LoginException - if the login failed for some reasonvoid logout(Subject subject)
username - The username for the current user
Subject updateSubject(Subject subject,
Subject subjectToModify)
subject - The logged in user's subject.subjectToModify - the subject whose data is to be updated (which may or may not be the same as user)
subjectToModify
PageList<Subject> findSubjectsByCriteria(Subject subject,
SubjectCriteria criteria)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||