Class FastFailAccessRule
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.auth.rules.FastFailAccessRule
-
- All Implemented Interfaces:
AccessRule
public class FastFailAccessRule extends Object implements AccessRule
-
-
Constructor Summary
Constructors Constructor Description FastFailAccessRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCheck(Check attr)booleancontainsCheckUri(String uri)booleanequals(Object object)CheckgetCheck(String uri)List<Check>getChecks()Set<Check>getChecksByType(Attribute type)longgetChecksCount()Set<String>getCheckUris()StringgetRuleUri()inthashCode()booleanisAllowMatched()booleanmatch(AuthorizationRequest ar)voidsetAllowMatched(boolean allowMatched)voidsetRuleUri(String ruleUri)
-
-
-
Method Detail
-
isAllowMatched
public boolean isAllowMatched()
- Specified by:
isAllowMatchedin interfaceAccessRule
-
setAllowMatched
public void setAllowMatched(boolean allowMatched)
- Specified by:
setAllowMatchedin interfaceAccessRule
-
getRuleUri
public String getRuleUri()
- Specified by:
getRuleUriin interfaceAccessRule
-
setRuleUri
public void setRuleUri(String ruleUri)
- Specified by:
setRuleUriin interfaceAccessRule
-
getChecks
public List<Check> getChecks()
- Specified by:
getChecksin interfaceAccessRule
-
match
public boolean match(AuthorizationRequest ar)
- Specified by:
matchin interfaceAccessRule
-
addCheck
public void addCheck(Check attr)
- Specified by:
addCheckin interfaceAccessRule
-
getCheckUris
public Set<String> getCheckUris()
- Specified by:
getCheckUrisin interfaceAccessRule
-
containsCheckUri
public boolean containsCheckUri(String uri)
- Specified by:
containsCheckUriin interfaceAccessRule
-
getChecksByType
public Set<Check> getChecksByType(Attribute type)
- Specified by:
getChecksByTypein interfaceAccessRule
-
getChecksCount
public long getChecksCount()
- Specified by:
getChecksCountin interfaceAccessRule
-
getCheck
public Check getCheck(String uri)
- Specified by:
getCheckin interfaceAccessRule
-
-