|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ragic.s3.service.workflow.ScriptUser
public class ScriptUser
ScriptUser is a class employed in Ragic Workflow, which allows the program to access and manipulate user data.
User: liberation
Date: 2010/12/1
Time: 10:38:37 pm
Constructor Summary | |
---|---|
ScriptUser(com.ragic.s3.nui.User user,
java.lang.String apname,
com.ragic.s3.nui.RagicBundle bundle)
Class constructor specifying user ID, AP name and a RagicBundle class. |
Method Summary | |
---|---|
int |
createUser(java.lang.String email,
java.lang.String fullName,
java.lang.String password)
Create a new account and returns a number to specify the condition it meets. |
java.lang.String |
getEmail()
Returns e-mail of this user, which is also his/her account ID as well. |
java.util.List<java.lang.String> |
getGroups()
Returns a list of group names in this AP that this user belongs to. |
java.lang.String |
getUserName()
Returns this user's name in this AP. |
boolean |
isChangePassword()
Returns if necessary to inform this user to change password when he/she logs in next time or not. |
boolean |
isIdentifiable()
Returns whether Ragic can recognize this user or not. |
boolean |
isPassivelyAddedUser()
Returns whether this user is passively joined by AP manager or not. |
boolean |
isValid()
Returns whether this account is in the valid period or not. |
boolean |
registerUserToMainAccountDatabase(java.lang.String email)
For internal use only. |
void |
setUserGroup(java.lang.String email,
java.util.List<java.lang.String> groups)
Adds a specific user into one or more than one groups at the same time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptUser(com.ragic.s3.nui.User user, java.lang.String apname, com.ragic.s3.nui.RagicBundle bundle)
user
- value to be registered to the class variable user.apname
- value to be registered to the class variable apname.bundle
- value to be registered to the class variable bundle.Method Detail |
---|
public java.lang.String getEmail()
public java.lang.String getUserName()
public boolean isValid()
true
if this account is valid.
false
otherwise.public boolean isIdentifiable()
true
if this user can be recognized by Ragic.
false
otherwise.public boolean isPassivelyAddedUser()
true
if this user is passively added.
false
otherwise.public java.util.List<java.lang.String> getGroups()
public boolean isChangePassword()
true
if required to inform this to change password.
false
otherwise.public int createUser(java.lang.String email, java.lang.String fullName, java.lang.String password)
email
- e-mail address and login ID of this new user.fullName
- fullName this user would like to be called in Ragic.password
- password for login.
public boolean registerUserToMainAccountDatabase(java.lang.String email)
public void setUserGroup(java.lang.String email, java.util.List<java.lang.String> groups)
email
- the ID of the usergroups
- the list of groups that this user is going to be added to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |