public class DefaultPermissionFacade extends Object implements PermissionFacade
| Constructor and Description |
|---|
DefaultPermissionFacade() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canChangeInstance(Object instance)
Returns true if the current user is allowed to change this instance.
|
boolean |
canChangeInstanceProperty(Object instance,
String property)
Returns true if the current user is allowed to change the specified property at the given instance.
|
boolean |
canChangeInstances(Collection<Object> instances)
Returns true if the current user is allowed to change all instances.
|
boolean |
canChangeInstancesProperty(Collection<Object> instances,
String qualifier)
Returns true if the current user is granted change permission to the given property.
|
boolean |
canChangeProperty(String typeCode,
String property)
Returns true if the current user is granted change permission to the given property.
|
boolean |
canChangePropertyPermission(String typeCode,
String property)
Returns true if the current user is granted "change permission" permission to the given property.
|
boolean |
canChangeType(String typeCode)
Returns true if the current user is granted change permission to the given type.
|
boolean |
canChangeTypePermission(String typeCode)
Returns true if the current user is granted "change permission" permission to the given type.
|
boolean |
canCreateTypeInstance(String typeCode)
Returns true if the current user is granted create permission to instances of the given type.
|
boolean |
canReadInstance(Object instance)
Returns true if the current user is allowed to read this instance.
|
boolean |
canReadInstanceProperty(Object instance,
String property)
Returns true if the current user is allowed to read the specified property at the given instance.
|
boolean |
canReadProperty(String typeCode,
String property)
Returns true if the current user is granted read permission to the given property.
|
boolean |
canReadType(String typeCode)
Returns true if the current user is granted read permission to the given type.
|
boolean |
canRemoveInstance(Object instance)
Returns true if the current user is allowed to delete this instance.
|
boolean |
canRemoveTypeInstance(String typeCode)
Returns true if the current user is granted delete permission to an instance of the given type.
|
Set<Locale> |
getAllReadableLocalesForCurrentUser()
Returns a set of locales for which the current user has permission to read localized property values.
|
Set<Locale> |
getAllWritableLocalesForCurrentUser()
Returns a set of locales for which the current user has permission to write localized property values of given
instance.
|
Set<Locale> |
getReadableLocalesForInstance(Object instance)
Returns a set of locales for which the current user has permission to read localized property values of given
instance.
|
Set<Locale> |
getWritableLocalesForInstance(Object instance)
Returns a set of locales for which the current user has permission to write localized property values of given
instance.
|
void |
setDefaultAccess(boolean defaultAccess) |
void |
setPermissionFacadeStrategyRegistry(PermissionFacadeStrategyRegistry permissionFacadeStrategyRegistry) |
public boolean canReadType(String typeCode)
PermissionFacadecanReadType in interface PermissionFacadetypeCode - typepublic boolean canReadProperty(String typeCode, String property)
PermissionFacadePermissionFacade.canReadInstanceProperty(Object, String) if there is an instance available.canReadProperty in interface PermissionFacadetypeCode - type of object which property is readproperty - property of objectpublic boolean canChangeType(String typeCode)
PermissionFacadecanChangeType in interface PermissionFacadetypeCode - typepublic boolean canChangeProperty(String typeCode, String property)
PermissionFacadePermissionFacade.canChangeInstanceProperty(Object, String) if there is an instance available.canChangeProperty in interface PermissionFacadetypeCode - type of object which property is changeproperty - property of objectpublic boolean canCreateTypeInstance(String typeCode)
PermissionFacadecanCreateTypeInstance in interface PermissionFacadetypeCode - typepublic boolean canRemoveTypeInstance(String typeCode)
PermissionFacadePermissionFacade.canRemoveInstance(Object) if there is an instance available.canRemoveTypeInstance in interface PermissionFacadetypeCode - type of objectpublic boolean canChangeTypePermission(String typeCode)
PermissionFacadecanChangeTypePermission in interface PermissionFacadetypeCode - type of objectpublic boolean canChangePropertyPermission(String typeCode, String property)
PermissionFacadecanChangePropertyPermission in interface PermissionFacadetypeCode - type of objectproperty - property to changepublic Set<Locale> getReadableLocalesForInstance(Object instance)
PermissionFacadegetReadableLocalesForInstance in interface PermissionFacadeinstance - object to read localized propertypublic Set<Locale> getWritableLocalesForInstance(Object instance)
PermissionFacadegetWritableLocalesForInstance in interface PermissionFacadeinstance - object to write localized propertypublic boolean canReadInstanceProperty(Object instance, String property)
PermissionFacadePermissionFacade.canChangeProperty(String, String).canReadInstanceProperty in interface PermissionFacadeinstance - object which property is readproperty - property of objectpublic boolean canChangeInstanceProperty(Object instance, String property)
PermissionFacadePermissionFacade.canChangeProperty(String, String).canChangeInstanceProperty in interface PermissionFacadeinstance - object which property is changeproperty - property of objectpublic boolean canChangeInstancesProperty(Collection<Object> instances, String qualifier)
PermissionFacadecanChangeInstancesProperty in interface PermissionFacadeinstances - objects to changequalifier - property of objectspublic boolean canRemoveInstance(Object instance)
PermissionFacadePermissionFacade.canRemoveTypeInstance(String).canRemoveInstance in interface PermissionFacadeinstance - object to deletepublic boolean canReadInstance(Object instance)
PermissionFacadecanReadInstance in interface PermissionFacadeinstance - object to readpublic boolean canChangeInstance(Object instance)
PermissionFacadecanChangeInstance in interface PermissionFacadeinstance - object to changepublic boolean canChangeInstances(Collection<Object> instances)
PermissionFacadecanChangeInstances in interface PermissionFacadeinstances - objects to changepublic Set<Locale> getAllReadableLocalesForCurrentUser()
PermissionFacadegetAllReadableLocalesForCurrentUser in interface PermissionFacadepublic Set<Locale> getAllWritableLocalesForCurrentUser()
PermissionFacadegetAllWritableLocalesForCurrentUser in interface PermissionFacadepublic void setPermissionFacadeStrategyRegistry(PermissionFacadeStrategyRegistry permissionFacadeStrategyRegistry)
public void setDefaultAccess(boolean defaultAccess)
Copyright © 2018. All rights reserved.