|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.jsurveyor.AccessControl
Class that handles privilegies for the User class. If the User, which is assigned an instance of this class, is a questionnaire administrator, AccessControl also keeps track of the UserGroups this User can deploy questionnaires for.
| Constructor Summary | |
AccessControl(java.lang.String userType)
Constructor that sets the userType, use this for new objects. |
|
AccessControl(java.lang.String userType,
java.util.ArrayList adminUserGroup)
Constructor that sets all attributes, only for use through DataAccess |
|
| Method Summary | |
void |
addAdminUserGroup(UserGroup userGroup)
Adds a userGroup |
java.util.ArrayList |
getAdminUserGroup()
Retrieves the ArrayList of added userGroups. |
java.lang.String |
getUserType()
Returns the userType |
void |
removeAdminUserGroup(UserGroup userGroup)
Removes a usergroup from the list. |
void |
setUserType(java.lang.String userType)
Sets the userType. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AccessControl(java.lang.String userType)
userType - String
public AccessControl(java.lang.String userType,
java.util.ArrayList adminUserGroup)
userType - StringadminUserGroup - ArrayList| Method Detail |
public void setUserType(java.lang.String userType)
userType - Stringpublic java.lang.String getUserType()
public void addAdminUserGroup(UserGroup userGroup)
userGroup - UserGrouppublic void removeAdminUserGroup(UserGroup userGroup)
userGroup - UserGrouppublic java.util.ArrayList getAdminUserGroup()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||