|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SubjectManagerRemote
| Method Summary | |
|---|---|
void |
changePassword(org.rhq.core.domain.auth.Subject subject,
String username,
String password)
Change the password for a user. |
void |
createPrincipal(org.rhq.core.domain.auth.Subject subject,
String username,
String password)
Creates a new principal (username and password) in the internal database. |
org.rhq.core.domain.auth.Subject |
createSubject(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.auth.Subject subjectToCreate)
Create a a new subject. |
void |
deleteSubjects(org.rhq.core.domain.auth.Subject subject,
int[] subjectIds)
Deletes the given set of users, including both the Subject and Principal objects associated with
those users. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.auth.Subject> |
findSubjectsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.SubjectCriteria criteria)
|
org.rhq.core.domain.auth.Subject |
getSubjectByName(String username)
Deprecated. This method should be avoided as it may be removed in a future release. Given that multiple sessions may exist for a single user the result of this call is non-deterministic. |
org.rhq.core.domain.auth.Subject |
getSubjectByNameAndSessionId(String username,
int sessionId)
Looks up the Subject for a current RHQ session by username and sessionId. |
org.rhq.core.domain.auth.Subject |
login(String username,
String password)
Logs a user into the system. |
void |
logout(org.rhq.core.domain.auth.Subject subject)
Logs out a user. |
org.rhq.core.domain.auth.Subject |
updateSubject(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.auth.Subject subjectToModify)
Updates an existing subject with new data. |
| Method Detail |
|---|
void changePassword(org.rhq.core.domain.auth.Subject subject,
String username,
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(org.rhq.core.domain.auth.Subject subject,
String username,
String password)
throws SubjectException
subject - The logged in user's subject.username - The username part of the principalpassword - The password part ofthe principal
Exception - if the principal could not be added
SubjectException
org.rhq.core.domain.auth.Subject createSubject(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.auth.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(org.rhq.core.domain.auth.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
Exception - if failed to delete one or more usersorg.rhq.core.domain.auth.Subject getSubjectByName(String username)
username - the name of the subject to look for
null if not found
org.rhq.core.domain.auth.Subject getSubjectByNameAndSessionId(String username,
int sessionId)
throws Exception
username - The name of the user.sessionId - The sessionId of the desired Subject.
Exception - if the sessionId is not valid
org.rhq.core.domain.auth.Subject login(String username,
String password)
throws LoginException
username - The name of the user.password - The password.
LoginException - if the login failed for some reasonvoid logout(org.rhq.core.domain.auth.Subject subject)
subject - The Subject to log out. The sessionId must be valid.
org.rhq.core.domain.auth.Subject updateSubject(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.auth.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
org.rhq.core.domain.util.PageList<org.rhq.core.domain.auth.Subject> findSubjectsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.SubjectCriteria criteria)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||