org.sakaiproject.mock.domain
Class Role
java.lang.Object
org.sakaiproject.mock.domain.Role
- All Implemented Interfaces:
- Serializable, Comparable, org.sakaiproject.authz.api.Role
public class Role
- extends Object
- implements org.sakaiproject.authz.api.Role
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Role
public Role()
Role
public Role(String id)
allowFunction
public void allowFunction(String lock)
- Specified by:
allowFunction in interface org.sakaiproject.authz.api.Role
allowFunctions
public void allowFunctions(Collection functions)
- Specified by:
allowFunctions in interface org.sakaiproject.authz.api.Role
allowsNoFunctions
public boolean allowsNoFunctions()
- Specified by:
allowsNoFunctions in interface org.sakaiproject.authz.api.Role
disallowAll
public void disallowAll()
- Specified by:
disallowAll in interface org.sakaiproject.authz.api.Role
disallowFunction
public void disallowFunction(String lock)
- Specified by:
disallowFunction in interface org.sakaiproject.authz.api.Role
disallowFunctions
public void disallowFunctions(Collection functions)
- Specified by:
disallowFunctions in interface org.sakaiproject.authz.api.Role
getAllowedFunctions
public Set getAllowedFunctions()
- Specified by:
getAllowedFunctions in interface org.sakaiproject.authz.api.Role
isAllowed
public boolean isAllowed(String function)
- Specified by:
isAllowed in interface org.sakaiproject.authz.api.Role
isProviderOnly
public boolean isProviderOnly()
- Specified by:
isProviderOnly in interface org.sakaiproject.authz.api.Role
setProviderOnly
public void setProviderOnly(boolean providerOnly)
- Specified by:
setProviderOnly in interface org.sakaiproject.authz.api.Role
compareTo
public int compareTo(Object o)
- Specified by:
compareTo in interface Comparable
getDescription
public String getDescription()
- Specified by:
getDescription in interface org.sakaiproject.authz.api.Role
setDescription
public void setDescription(String description)
- Specified by:
setDescription in interface org.sakaiproject.authz.api.Role
getId
public String getId()
- Specified by:
getId in interface org.sakaiproject.authz.api.Role
setId
public void setId(String id)
getLocks
public Set<String> getLocks()
setLocks
public void setLocks(Set<String> locks)
Copyright © 2003-2012 Sakai Project. All Rights Reserved.