Class AlertRecipientAccessInjector
- java.lang.Object
-
- org.openbravo.role.inheritance.access.AccessTypeInjector
-
- org.openbravo.role.inheritance.access.AlertRecipientAccessInjector
-
- All Implemented Interfaces:
Comparable<AccessTypeInjector>
@ApplicationScoped public class AlertRecipientAccessInjector extends AccessTypeInjector
AccessTypeInjector for the AlertRecipient 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 AlertRecipientAccessInjector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
addEntityWhereClause(String whereClause)
Includes in the where clause some filtering needed for same cases.void
checkAccessExistence(InheritedAccessEnabled access)
Checks if a particular access already existsString
getSecuredElementGetter()
Returns the secured object.String
getSecuredElementName()
Returns the secured element name.List<String>
getSkippedProperties()
Retrieves the properties of the entity related to the injector that will not be copied when updating an access by propagation.boolean
isInheritable(InheritedAccessEnabled access)
Determines if a particular access can be inherited according to this injector-
Methods inherited from class org.openbravo.role.inheritance.access.AccessTypeInjector
clearInheritedFromField, clearInheritedFromField, clearInheritFromFieldInChilds, compareTo, doEntityParameterReplacement, findAccess, getAccessList, getClassName, getPriority, getRole, getRoleProperty, getSecuredElementIdentifier, removeReferenceInParentList, setParent
-
-
-
-
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
-
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
-
isInheritable
public boolean isInheritable(InheritedAccessEnabled access)
Description copied from class:AccessTypeInjector
Determines if a particular access can be inherited according to this injector- Overrides:
isInheritable
in classAccessTypeInjector
- Parameters:
access
- the permission to decide whether is inheritable or not- Returns:
- true if the access is inheritable, false otherwise
-
checkAccessExistence
public void checkAccessExistence(InheritedAccessEnabled access)
Description copied from class:AccessTypeInjector
Checks if a particular access already exists- Overrides:
checkAccessExistence
in classAccessTypeInjector
- Parameters:
access
- the permission to decide whether exists or not
-
addEntityWhereClause
public String addEntityWhereClause(String whereClause)
Description copied from class:AccessTypeInjector
Includes in the where clause some filtering needed for same cases.- Overrides:
addEntityWhereClause
in classAccessTypeInjector
- Parameters:
whereClause
- The initial where clause- Returns:
- Entity where clause with the filtering included
-
getSkippedProperties
public List<String> getSkippedProperties()
Description copied from class:AccessTypeInjector
Retrieves the properties of the entity related to the injector that will not be copied when updating an access by propagation.- Overrides:
getSkippedProperties
in classAccessTypeInjector
- Returns:
- the list of the properties that will not be copied
-
-