Class WindowAccessInjector
- java.lang.Object
-
- org.openbravo.role.inheritance.access.AccessTypeInjector
-
- org.openbravo.role.inheritance.access.WindowAccessInjector
-
- All Implemented Interfaces:
Comparable<AccessTypeInjector>
public class WindowAccessInjector extends AccessTypeInjector
AccessTypeInjector for the WindowAccess class
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openbravo.role.inheritance.access.AccessTypeInjector
AccessTypeInjector.Qualifier, AccessTypeInjector.Selector
-
-
Constructor Summary
Constructors Constructor Description WindowAccessInjector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearInheritFromFieldInChilds(InheritedAccessEnabled access, boolean clearAll)
Sets to null the Inherited From field to child elements when applies (for example, this is used for TabAccess and FieldAccess).int
getPriority()
Returns the priority of this injector.String
getSecuredElementGetter()
Returns the secured object.String
getSecuredElementName()
Returns the secured element name.void
setParent(InheritedAccessEnabled newAccess, InheritedAccessEnabled parentAccess, Role role)
Sets the parent for an inheritable access object.-
Methods inherited from class org.openbravo.role.inheritance.access.AccessTypeInjector
addEntityWhereClause, checkAccessExistence, clearInheritedFromField, clearInheritedFromField, compareTo, doEntityParameterReplacement, findAccess, getAccessList, getClassName, getRole, getRoleProperty, getSecuredElementIdentifier, getSkippedProperties, isInheritable, removeReferenceInParentList
-
-
-
-
Method Detail
-
getSecuredElementGetter
public String getSecuredElementGetter()
Description copied from class:AccessTypeInjector
Returns the secured object.- Specified by:
getSecuredElementGetter
in classAccessTypeInjector
- Returns:
- a String with the name of the method to retrieve the secured element
-
getPriority
public int getPriority()
Description copied from class:AccessTypeInjector
Returns the priority of this injector. It is used to determine the order when adding, updating or removing a particular access, if needed.- Overrides:
getPriority
in classAccessTypeInjector
- Returns:
- an integer that represents the priority of this injector
-
getSecuredElementName
public String getSecuredElementName()
Description copied from class:AccessTypeInjector
Returns the secured element name.- Specified by:
getSecuredElementName
in classAccessTypeInjector
- Returns:
- a String with the name of the secured element
-
setParent
public void setParent(InheritedAccessEnabled newAccess, InheritedAccessEnabled parentAccess, Role role)
Description copied from class:AccessTypeInjector
Sets the parent for an inheritable access object.- Overrides:
setParent
in classAccessTypeInjector
- Parameters:
newAccess
- Access whose parent object will be setparentAccess
- Access that is used in some cases to find the correct parentrole
- Parent role to set directly when applies
-
clearInheritFromFieldInChilds
public void clearInheritFromFieldInChilds(InheritedAccessEnabled access, boolean clearAll)
Description copied from class:AccessTypeInjector
Sets to null the Inherited From field to child elements when applies (for example, this is used for TabAccess and FieldAccess). This allows the cascade deletion of these elements when removing an inherited Window Access or Tab Access.- Overrides:
clearInheritFromFieldInChilds
in classAccessTypeInjector
- Parameters:
access
- The access to be removed from the parent listclearAll
- Flag to indicate if the Inherited From field should be nullified in every child inherited access or not
-
-