Class LocalPrivilege
- java.lang.Object
-
- org.apache.sling.jcr.contentloader.LocalPrivilege
-
public class LocalPrivilege extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LocalPrivilege(java.lang.String privilege)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckPrivilege(javax.jcr.security.AccessControlManager acm)booleanequals(java.lang.Object obj)java.util.Set<LocalRestriction>getAllowRestrictions()java.util.Set<LocalRestriction>getDenyRestrictions()java.lang.StringgetName()javax.jcr.security.PrivilegegetPrivilege()inthashCode()booleanisAllow()booleanisDeny()voidsetAllow(boolean allow)voidsetAllowRestrictions(java.util.Set<LocalRestriction> allowRestrictions)voidsetDeny(boolean deny)voidsetDenyRestrictions(java.util.Set<LocalRestriction> denyRestrictions)java.lang.StringtoString()
-
-
-
Method Detail
-
checkPrivilege
public void checkPrivilege(javax.jcr.security.AccessControlManager acm) throws javax.jcr.RepositoryException- Throws:
javax.jcr.RepositoryException
-
getPrivilege
public javax.jcr.security.Privilege getPrivilege()
-
getName
public java.lang.String getName()
-
isAllow
public boolean isAllow()
-
isDeny
public boolean isDeny()
-
setAllow
public void setAllow(boolean allow)
-
setDeny
public void setDeny(boolean deny)
-
getAllowRestrictions
public java.util.Set<LocalRestriction> getAllowRestrictions()
-
setAllowRestrictions
public void setAllowRestrictions(java.util.Set<LocalRestriction> allowRestrictions)
-
getDenyRestrictions
public java.util.Set<LocalRestriction> getDenyRestrictions()
-
setDenyRestrictions
public void setDenyRestrictions(java.util.Set<LocalRestriction> denyRestrictions)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-