|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.user.MCRUserPolicy
public class MCRUserPolicy
This class defines the policies of the MyCoRe user and group objects such as required fields or password policy. It is implemented as a singleton since there must not be two instances of this class.
| Method Summary | |
|---|---|
ArrayList<String> |
getRequiredGroupAttributes()
|
ArrayList<String> |
getRequiredUserAttributes()
|
static MCRUserPolicy |
instance()
This method is the only way to get an instance of this class. |
boolean |
isRequiredForGroup(String required)
This method returns true if the given field is a required group attribute. |
boolean |
isRequiredForUser(String required)
This method returns true if the given field is a required user attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final MCRUserPolicy instance()
MCRUserPolicypublic boolean isRequiredForUser(String required)
required - string value representing a user attribute to check whether it
is requiredpublic boolean isRequiredForGroup(String required)
required - string value representing a group attribute to check whether
it is requiredpublic ArrayList<String> getRequiredUserAttributes()
public ArrayList<String> getRequiredGroupAttributes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||