public abstract class PropertyRestrictionBean extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PropertyRestrictionBean.Setup
Create the bean at startup and remove it at shutdown.
|
| Modifier and Type | Field and Description |
|---|---|
protected static PropertyRestrictionBean |
instance |
protected static Collection<String> |
PERMITTED_EXCEPTIONS |
protected static Collection<String> |
PROHIBITED_NAMESPACES |
| Constructor and Description |
|---|
PropertyRestrictionBean() |
| Modifier and Type | Method and Description |
|---|---|
abstract 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.
|
abstract boolean |
canDisplayResource(String resourceUri,
BaseResourceBean.RoleLevel userRole)
Any resource can be displayed.
|
abstract boolean |
canModifyPredicate(Property predicate,
BaseResourceBean.RoleLevel userRole)
A predicate cannot be modified if its namespace is in the prohibited list
(some exceptions are allowed).
|
abstract 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).
|
abstract 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.
|
abstract boolean |
canPublishResource(String resourceUri,
BaseResourceBean.RoleLevel userRole)
Any resource can be published.
|
static PropertyRestrictionBean |
getBean() |
abstract void |
updateProperty(PropertyRestrictionLevels levels)
The threshold values for this property may have changed.
|
protected static volatile PropertyRestrictionBean instance
protected static final Collection<String> PROHIBITED_NAMESPACES
protected static final Collection<String> PERMITTED_EXCEPTIONS
public static PropertyRestrictionBean getBean()
public abstract boolean canDisplayResource(String resourceUri, BaseResourceBean.RoleLevel userRole)
public abstract boolean canModifyResource(String resourceUri, BaseResourceBean.RoleLevel userRole)
public abstract boolean canPublishResource(String resourceUri, BaseResourceBean.RoleLevel userRole)
public abstract boolean canDisplayPredicate(Property predicate, BaseResourceBean.RoleLevel userRole)
public abstract boolean canModifyPredicate(Property predicate, BaseResourceBean.RoleLevel userRole)
public abstract boolean canPublishPredicate(Property predicate, BaseResourceBean.RoleLevel userRole)
public abstract void updateProperty(PropertyRestrictionLevels levels)
Copyright © 2021. All rights reserved.