| 
|||||||||
| 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,
               String username,
               String password)
Change the password for a user.  | 
 void | 
createPrincipal(Subject subject,
                String username,
                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(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.  | 
 Subject | 
getSubjectByNameAndSessionId(String username,
                             int sessionId)
Looks up the Subject for a current RHQ session by username and sessionId.  | 
 Subject | 
login(String username,
      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,
                    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(Subject subject,
                     String username,
                     String password)
                     throws org.rhq.enterprise.server.auth.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
org.rhq.enterprise.server.auth.SubjectException
Subject createSubject(Subject subject,
                      Subject subjectToCreate)
                      throws org.rhq.enterprise.server.auth.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
org.rhq.enterprise.server.auth.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
Exception - if failed to delete one or more usersSubject getSubjectByName(String username)
username - the name of the subject to look for
null if not found
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
Subject login(String username,
              String password)
              throws org.rhq.enterprise.server.exception.LoginException
username - The name of the user.password - The password.
org.rhq.enterprise.server.exception.LoginException - if the login failed for some reasonvoid logout(Subject subject)
subject - The Subject to log out. The sessionId must be valid.
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 | ||||||||