|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RemoteUserService
The UserService provides functionality for operating on CARNOT users.
This includes:
| Method Summary | |
|---|---|
void |
closeSession(java.lang.String sessionId)
Tracks the ending of a user session. |
User |
createUser(java.lang.String account,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String description,
java.lang.String password,
java.lang.String eMail,
java.util.Date validFrom,
java.util.Date validTo)
Creates a new user with default realm ID. |
User |
createUser(java.lang.String realm,
java.lang.String account,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String description,
java.lang.String password,
java.lang.String eMail,
java.util.Date validFrom,
java.util.Date validTo)
Creates a new user. |
UserGroup |
createUserGroup(java.lang.String id,
java.lang.String name,
java.lang.String description,
java.util.Date validFrom,
java.util.Date validTo)
Creates a new user group. |
UserRealm |
createUserRealm(java.lang.String id,
java.lang.String name,
java.lang.String description)
Creates a new user realm. |
void |
dropUserRealm(java.lang.String id)
Drops the user realm associated with the given ID. |
User |
getUser()
Retrieves information on the current user. |
User |
getUser(long userOID)
Retrieves the specified user. |
User |
getUser(java.lang.String account)
Retrieves the user associated with the given account. |
User |
getUser(java.lang.String realm,
java.lang.String account)
Retrieves the user associated with the given account. |
UserGroup |
getUserGroup(long oid)
Retrieves the specified user group. |
UserGroup |
getUserGroup(java.lang.String id)
Retrieves the user group associated with the given ID. |
java.util.List |
getUserRealms()
Retrives all existing user realms. |
User |
invalidate(java.lang.String account)
Deprecated. Please use invalidateUser(String) instead. |
User |
invalidateUser(java.lang.String account)
Invalidates the user with the specified account. |
User |
invalidateUser(java.lang.String realm,
java.lang.String account)
Invalidates the user with the specified account. |
UserGroup |
invalidateUserGroup(long oid)
Invalidates the specified user group. |
UserGroup |
invalidateUserGroup(java.lang.String id)
Invalidates the user group associated with the given ID. |
boolean |
isInternalAuthentication()
Checks if internal authentication is used. |
boolean |
isInternalAuthentified()
Deprecated. Superseded by isInternalAuthentication(). |
boolean |
isInternalAuthorization()
Checks if internal authorization is used. |
void |
login(java.lang.String userId,
java.lang.String password)
|
void |
login(java.lang.String userId,
java.lang.String password,
java.util.Map properties)
|
void |
logout()
|
User |
modifyLoginUser(java.lang.String oldPassword,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String newPassword,
java.lang.String eMail)
Modifies the current user. |
User |
modifyUser(User user)
Modifies the specified user. |
User |
modifyUser(User user,
boolean generatePassword)
Modifies the specified user. |
UserGroup |
modifyUserGroup(UserGroup userGroup)
Modifies the specified user group. |
void |
resetPassword(java.lang.String account,
java.util.Map properties)
Resets the password of specified user by generated password according to configured password rules. |
java.lang.String |
startSession(java.lang.String clientId)
Tracks the starting of a new user session. |
| Methods inherited from interface javax.ejb.EJBObject |
|---|
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
| Method Detail |
|---|
java.lang.String startSession(java.lang.String clientId)
throws WorkflowException,
java.rmi.RemoteException
clientId - the client starting the session.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.startSession(
java.lang.String clientId)
void closeSession(java.lang.String sessionId)
throws WorkflowException,
java.rmi.RemoteException
sessionId - the id of the ending session.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.closeSession(
java.lang.String sessionId)
boolean isInternalAuthentified()
throws WorkflowException,
java.rmi.RemoteException
isInternalAuthentication().
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.isInternalAuthentified()
boolean isInternalAuthentication()
throws WorkflowException,
java.rmi.RemoteException
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.isInternalAuthentication()
boolean isInternalAuthorization()
throws WorkflowException,
java.rmi.RemoteException
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.isInternalAuthorization()
User getUser()
throws WorkflowException,
java.rmi.RemoteException
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.getUser()
User modifyLoginUser(java.lang.String oldPassword,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String newPassword,
java.lang.String eMail)
throws WorkflowException,
java.rmi.RemoteException
oldPassword - the current password.firstName - first name of the user.lastName - last name of the user.newPassword - the new password.eMail - email address of the user.
org.eclipse.stardust.common.error.ConcurrencyException - if another user operates on the current user.
Instances of ConcurrencyException will
be wrapped inside WorkflowException.
IllegalOperationException - if the authentication is not internal.
Instances of IllegalOperationException will be wrapped
inside WorkflowException.
org.eclipse.stardust.common.security.InvalidPasswordException - if the new password does not match the given rules.
Instances of InvalidPasswordException
will be wrapped inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.modifyLoginUser(
java.lang.String oldPassword, java.lang.String firstName, java.lang.String lastName,
java.lang.String newPassword, java.lang.String eMail)
User modifyUser(User user)
throws WorkflowException,
java.rmi.RemoteException
user - the user to be modified.
org.eclipse.stardust.common.error.ConcurrencyException - if another user operates on the specified one.
Instances of ConcurrencyException will
be wrapped inside WorkflowException.
org.eclipse.stardust.common.error.ObjectNotFoundException - if the user or a given grant is not found.
Instances of ObjectNotFoundException
will be wrapped inside WorkflowException.
IllegalOperationException - if the authentication is not internal.
Instances of IllegalOperationException will be wrapped
inside WorkflowException.
org.eclipse.stardust.common.security.InvalidPasswordException - if the new password does not match the given rules.
Instances of InvalidPasswordException
will be wrapped inside WorkflowException.
org.eclipse.stardust.common.error.AccessForbiddenException - if the current user is not allowed for operation.
Instances of AccessForbiddenException
will be wrapped inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.modifyUser(
org.eclipse.stardust.engine.api.runtime.User user)
void resetPassword(java.lang.String account,
java.util.Map properties)
throws WorkflowException,
java.rmi.RemoteException
account - the user account to be modified.properties - Map providing further login properties.
org.eclipse.stardust.common.error.ConcurrencyException - if another user operates on the specified one.
Instances of ConcurrencyException will
be wrapped inside WorkflowException.
org.eclipse.stardust.common.error.ObjectNotFoundException - if the user or a given grant is not found.
Instances of ObjectNotFoundException
will be wrapped inside WorkflowException.
IllegalOperationException - if the authentication is not internal.
Instances of IllegalOperationException will be wrapped
inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.resetPassword(
java.lang.String account, java.util.Map properties)
User modifyUser(User user,
boolean generatePassword)
throws WorkflowException,
java.rmi.RemoteException
user - the user to be modified.generatePassword - if set to true a password will be generated and send by mail to the user.
org.eclipse.stardust.common.error.ConcurrencyException - if another user operates on the specified one.
Instances of ConcurrencyException will
be wrapped inside WorkflowException.
org.eclipse.stardust.common.error.ObjectNotFoundException - if the user or a given grant is not found.
Instances of ObjectNotFoundException
will be wrapped inside WorkflowException.
IllegalOperationException - if the authentication is not internal.
Instances of IllegalOperationException will be wrapped
inside WorkflowException.
org.eclipse.stardust.common.security.InvalidPasswordException - if the new password does not match the given rules.
Instances of InvalidPasswordException
will be wrapped inside WorkflowException.
org.eclipse.stardust.common.error.AccessForbiddenException - if the current user is not allowed for operation.
Instances of AccessForbiddenException
will be wrapped inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.modifyUser(
org.eclipse.stardust.engine.api.runtime.User user, boolean generatePassword)
User createUser(java.lang.String account,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String description,
java.lang.String password,
java.lang.String eMail,
java.util.Date validFrom,
java.util.Date validTo)
throws WorkflowException,
java.rmi.RemoteException
account - the account name.firstName - first name of the user.lastName - last name of the user.description - short description.password - the user password.eMail - email address of the user.validFrom - validity start time or null if unlimited.validTo - validity end time or null if unlimited.
UserExistsException - if another user with the specified account already exists.
Instances of UserExistsException
will be wrapped inside WorkflowException.
IllegalOperationException - if the authentication is not internal.
Instances of IllegalOperationException will be wrapped
inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.createUser(
java.lang.String account, java.lang.String firstName, java.lang.String lastName,
java.lang.String description, java.lang.String password, java.lang.String eMail,
java.util.Date validFrom, java.util.Date validTo)
User createUser(java.lang.String realm,
java.lang.String account,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String description,
java.lang.String password,
java.lang.String eMail,
java.util.Date validFrom,
java.util.Date validTo)
throws WorkflowException,
java.rmi.RemoteException
realm - the user's realm ID.account - the account name.firstName - first name of the user.lastName - last name of the user.description - short description.password - the user password.eMail - email address of the user.validFrom - validity start time or null if unlimited.validTo - validity end time or null if unlimited.
UserExistsException - if another user with the specified account already exists.
Instances of UserExistsException
will be wrapped inside WorkflowException.
IllegalOperationException - if the authentication is not internal.
Instances of IllegalOperationException will be wrapped
inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.createUser(
java.lang.String realm, java.lang.String account, java.lang.String firstName,
java.lang.String lastName, java.lang.String description, java.lang.String password,
java.lang.String eMail, java.util.Date validFrom, java.util.Date validTo)
User getUser(java.lang.String account)
throws WorkflowException,
java.rmi.RemoteException
account - the account name of the user to retrieve.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no user with the specified account.
Instances of ObjectNotFoundException
will be wrapped inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.getUser(java.lang.String account)
User getUser(java.lang.String realm,
java.lang.String account)
throws WorkflowException,
java.rmi.RemoteException
realm - the realm ID of the user to retrieve.account - the account name of the user to retrieve.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no user with the specified account.
Instances of ObjectNotFoundException
will be wrapped inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.getUser(
java.lang.String realm, java.lang.String account)
User getUser(long userOID)
throws WorkflowException,
java.rmi.RemoteException
userOID - the OID of the user to retrieve.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no user with the specified oid.
Instances of ObjectNotFoundException
will be wrapped inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.getUser(long userOID)
User invalidate(java.lang.String account)
throws WorkflowException,
java.rmi.RemoteException
invalidateUser(String) instead.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.invalidate(
java.lang.String account)
User invalidateUser(java.lang.String account)
throws WorkflowException,
java.rmi.RemoteException
account - the account name of the user to invalidate.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no user with the specified account.
Instances of ObjectNotFoundException
will be wrapped inside WorkflowException.
IllegalOperationException - if the authentication is not internal.
Instances of IllegalOperationException will be wrapped
inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.invalidateUser(
java.lang.String account)
User invalidateUser(java.lang.String realm,
java.lang.String account)
throws WorkflowException,
java.rmi.RemoteException
realm - the realm ID of the user to invalidate.account - the account name of the user to invalidate.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no user with the specified account.
Instances of ObjectNotFoundException
will be wrapped inside WorkflowException.
IllegalOperationException - if the authentication is not internal.
Instances of IllegalOperationException will be wrapped
inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.invalidateUser(
java.lang.String realm, java.lang.String account)
UserGroup createUserGroup(java.lang.String id,
java.lang.String name,
java.lang.String description,
java.util.Date validFrom,
java.util.Date validTo)
throws WorkflowException,
java.rmi.RemoteException
id - the user group ID. Must not be null or empty and must be unique.name - the user group name. Must not be null or empty.description - short description. Must not be null.validFrom - validity start time or null if unlimited.validTo - validity end time or null if unlimited.
UserGroupExistsException - if another user group with the specified ID already exists.
Instances of UserGroupExistsException will be wrapped
inside WorkflowException.
InvalidArgumentException - if ID is empty
if name is empty
if description is empty
Instances of InvalidArgumentException
will be wrapped inside WorkflowException.
IllegalOperationException - if operation is not allowed in this context.
Instances of IllegalOperationException will be wrapped
inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.createUserGroup(
java.lang.String id, java.lang.String name, java.lang.String description,
java.util.Date validFrom, java.util.Date validTo)
UserGroup getUserGroup(java.lang.String id)
throws WorkflowException,
java.rmi.RemoteException
id - the id of the user group to retrieve.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no user group with the specified ID.
Instances of ObjectNotFoundException
will be wrapped inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.getUserGroup(java.lang.String id)
UserGroup getUserGroup(long oid)
throws WorkflowException,
java.rmi.RemoteException
oid - the OID of the user group to retrieve.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no user group with the specified OID.
Instances of ObjectNotFoundException
will be wrapped inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.getUserGroup(long oid)
UserGroup modifyUserGroup(UserGroup userGroup)
throws WorkflowException,
java.rmi.RemoteException
userGroup - the user group to be modified.
org.eclipse.stardust.common.error.ConcurrencyException - if another user operates on the specified user group.
Instances of ConcurrencyException will
be wrapped inside WorkflowException.
org.eclipse.stardust.common.error.ObjectNotFoundException - if the user group is not found.
Instances of ObjectNotFoundException
will be wrapped inside WorkflowException.
IllegalOperationException - if operation is not allowed in this context.
Instances of IllegalOperationException will be wrapped
inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.modifyUserGroup(
org.eclipse.stardust.engine.api.runtime.UserGroup userGroup)
UserGroup invalidateUserGroup(java.lang.String id)
throws WorkflowException,
java.rmi.RemoteException
id - the ID of the user group to be invalidated.
org.eclipse.stardust.common.error.ConcurrencyException - if another user operates on the specified user group.
Instances of ConcurrencyException will
be wrapped inside WorkflowException.
org.eclipse.stardust.common.error.ObjectNotFoundException - if the user group is not found.
Instances of ObjectNotFoundException
will be wrapped inside WorkflowException.
IllegalOperationException - if operation is not allowed in this context.
Instances of IllegalOperationException will be wrapped
inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.invalidateUserGroup(
java.lang.String id)
UserGroup invalidateUserGroup(long oid)
throws WorkflowException,
java.rmi.RemoteException
oid - the OID of the user group to invalidate.
org.eclipse.stardust.common.error.ConcurrencyException - if another user operates on the specified user group.
Instances of ConcurrencyException will
be wrapped inside WorkflowException.
org.eclipse.stardust.common.error.ObjectNotFoundException - if the user group is not found.
Instances of ObjectNotFoundException
will be wrapped inside WorkflowException.
IllegalOperationException - if operation is not allowed in this context.
Instances of IllegalOperationException will be wrapped
inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.invalidateUserGroup(long oid)
UserRealm createUserRealm(java.lang.String id,
java.lang.String name,
java.lang.String description)
throws WorkflowException,
java.rmi.RemoteException
id - the user realm ID.name - the user realm name.description - short description.
org.eclipse.stardust.engine.api.runtime.UserRealmExistsException - if another user realm with the specified ID already exists.
Instances of UserRealmExistsException will be wrapped
inside WorkflowException.
IllegalOperationException - if operation is not allowed in this context.
Instances of IllegalOperationException will be wrapped
inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.createUserRealm(
java.lang.String id, java.lang.String name, java.lang.String description)
void dropUserRealm(java.lang.String id)
throws WorkflowException,
java.rmi.RemoteException
id - the ID of the user realm to be dropped.
org.eclipse.stardust.common.error.ConcurrencyException - if another user operates on the specified user realm.
Instances of ConcurrencyException will
be wrapped inside WorkflowException.
org.eclipse.stardust.common.error.ObjectNotFoundException - if the user realm is not found.
Instances of ObjectNotFoundException
will be wrapped inside WorkflowException.
IllegalOperationException - if at least one user is assigned to the user realm.
Instances of IllegalOperationException will be wrapped
inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.dropUserRealm(java.lang.String id)
java.util.List getUserRealms()
throws WorkflowException,
java.rmi.RemoteException
org.eclipse.stardust.common.error.ConcurrencyException - if another user operates on the user realms.
Instances of ConcurrencyException will
be wrapped inside WorkflowException.
IllegalOperationException - if operation is not allowed in this context.
Instances of IllegalOperationException will be wrapped
inside WorkflowException.
WorkflowException - as a wrapper for
org.eclipse.stardust.engine.api.ejb2.PublicExceptions and org.eclipse.stardust.engine.api.ejb2.ResourceExceptions
java.rmi.RemoteExceptionUserService.getUserRealms()
void login(java.lang.String userId,
java.lang.String password)
throws WorkflowException,
java.rmi.RemoteException
WorkflowException
java.rmi.RemoteException
void login(java.lang.String userId,
java.lang.String password,
java.util.Map properties)
throws WorkflowException,
java.rmi.RemoteException
WorkflowException
java.rmi.RemoteException
void logout()
throws java.rmi.RemoteException
java.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||