public class PropertyRestrictionBeanImpl extends PropertyRestrictionBean
PropertyRestrictionBean.Setupinstance, PERMITTED_EXCEPTIONS, PROHIBITED_NAMESPACES| Constructor and Description |
|---|
PropertyRestrictionBeanImpl(Collection<String> prohibitedNamespaces,
Collection<String> permittedExceptions,
ContextModelAccess models) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDisplayPredicate(Property predicate,
BaseResourceBean.RoleLevel userRole)
If display of a predicate is restricted, the user's role must be at least
as high as the restriction level.
|
boolean |
canDisplayResource(String resourceUri,
BaseResourceBean.RoleLevel userRole)
Any resource can be displayed.
|
boolean |
canModifyPredicate(Property predicate,
BaseResourceBean.RoleLevel userRole)
A predicate cannot be modified if its namespace is in the prohibited list
(some exceptions are allowed).
|
boolean |
canModifyResource(String resourceUri,
BaseResourceBean.RoleLevel userRole)
A resource cannot be modified if its namespace is in the prohibited list
(but some exceptions are allowed).
|
boolean |
canPublishPredicate(Property predicate,
BaseResourceBean.RoleLevel userRole)
If publishing of a predicate is restricted, the user's role must be at
least as high as the restriction level.
|
boolean |
canPublishResource(String resourceUri,
BaseResourceBean.RoleLevel userRole)
Any resource can be published.
|
String |
toString() |
void |
updateProperty(PropertyRestrictionLevels levels)
The threshold values for this property may have changed.
|
getBeanpublic PropertyRestrictionBeanImpl(Collection<String> prohibitedNamespaces, Collection<String> permittedExceptions, ContextModelAccess models)
public boolean canDisplayResource(String resourceUri, BaseResourceBean.RoleLevel userRole)
PropertyRestrictionBeancanDisplayResource in class PropertyRestrictionBeanpublic boolean canModifyResource(String resourceUri, BaseResourceBean.RoleLevel userRole)
PropertyRestrictionBeancanModifyResource in class PropertyRestrictionBeanpublic boolean canPublishResource(String resourceUri, BaseResourceBean.RoleLevel userRole)
PropertyRestrictionBeancanPublishResource in class PropertyRestrictionBeanpublic boolean canDisplayPredicate(Property predicate, BaseResourceBean.RoleLevel userRole)
PropertyRestrictionBeancanDisplayPredicate in class PropertyRestrictionBeanpublic boolean canModifyPredicate(Property predicate, BaseResourceBean.RoleLevel userRole)
PropertyRestrictionBeancanModifyPredicate in class PropertyRestrictionBeanpublic boolean canPublishPredicate(Property predicate, BaseResourceBean.RoleLevel userRole)
PropertyRestrictionBeancanPublishPredicate in class PropertyRestrictionBeanpublic void updateProperty(PropertyRestrictionLevels levels)
PropertyRestrictionBeanupdateProperty in class PropertyRestrictionBeanCopyright © 2021. All rights reserved.