Class RootUserPolicy
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.auth.policy.RootUserPolicy
-
- All Implemented Interfaces:
PolicyIface
public class RootUserPolicy extends Object implements PolicyIface
If the user has an IsRootUser identifier, they can do anything! On setup, check to see that the specified root user exists. If not, create it. If we can't create it, abort. If any other root users exist, warn about them.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRootUserPolicy.Setup
-
Constructor Summary
Constructors Constructor Description RootUserPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyDecisionisAuthorized(IdentifierBundle whoToAuth, RequestedAction whatToAuth)This is the entire policy.StringtoString()
-
-
-
Method Detail
-
isAuthorized
public PolicyDecision isAuthorized(IdentifierBundle whoToAuth, RequestedAction whatToAuth)
This is the entire policy. If you are a root user, you are authorized.- Specified by:
isAuthorizedin interfacePolicyIface
-
-