public class BundleUIAccessRightService extends DefaultUIAccessRightService
DefaultUIAccessRightService to add/evaluate a generic handling for the display (writable or not)
of an attribute that is dependent on the another attribute (null or not null) of the same type, e.g. the attribute
'description' of an item is only writable if the attribute 'name' is not null. The list of dependencies is injected
via Spring.cockpitUIComponentAccessRightDaomodelService, typeService| Constructor and Description |
|---|
BundleUIAccessRightService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fillDependencyMap()
Creates a map based on the injected list of dependencies.
|
protected java.util.List<UIAccessRightDependency> |
getDependencies() |
protected boolean |
isAttributeWritable(TypedObject item,
UIAccessRightDependency dependency) |
boolean |
isWritable(ObjectType type,
TypedObject item,
PropertyDescriptor propDescr,
boolean creationMode)
Overrides the super method to evaluate the injected list of dependencies before the standard method is called.
|
void |
setDependencies(java.util.List<UIAccessRightDependency> dependencies) |
canRead, canWrite, canWrite, getBaseTypeCode, getSessionContext, getSystemService, getUserService, isReadable, isReadable, isWritable, isWritable, isWritable, restricts, setCockpitUIComponentAccessRightDao, setSystemService, setUserServicegetEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getModelService, getTypeService, setCockpitTypeService, setLabelResolver, setModelServicepublic boolean isWritable(ObjectType type, TypedObject item, PropertyDescriptor propDescr, boolean creationMode)
isWritable in interface UIAccessRightServiceisWritable in class DefaultUIAccessRightServicetype - item typeitem - item instancepropDescr - item attribute to check access forcreationMode - creation mode or nottrue if user has write access, false otherwiseprotected boolean isAttributeWritable(TypedObject item, UIAccessRightDependency dependency)
protected void fillDependencyMap()
protected java.util.List<UIAccessRightDependency> getDependencies()
public void setDependencies(java.util.List<UIAccessRightDependency> dependencies)
Copyright © 2018 SAP SE. All Rights Reserved.