Class TabAccessInjector

    • Constructor Detail

      • TabAccessInjector

        public TabAccessInjector()
    • Method Detail

      • 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 class AccessTypeInjector
        Returns:
        an integer that represents the priority of this injector
      • getRole

        public Role getRole​(InheritedAccessEnabled access)
        Description copied from class: AccessTypeInjector
        Returns the role which the access given as parameter is assigned to. In general, the most part of inheritable accesses have Role as their parent entity. If not, this method must be overridden to retrieve the Role property for their particular case.
        Overrides:
        getRole in class AccessTypeInjector
        Parameters:
        access - An inheritable access
        Returns:
        the Role owner of the access
      • getRoleProperty

        public String getRoleProperty()
        Description copied from class: AccessTypeInjector
        Returns the role property related to the entity represented by the injector.
        Overrides:
        getRoleProperty in class AccessTypeInjector
        Returns:
        the role property that can be retrieved according to the entity of the injector.
      • 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 class AccessTypeInjector
        Parameters:
        access - The access to be removed from the parent list
        clearAll - Flag to indicate if the Inherited From field should be nullified in every child inherited access or not
      • removeReferenceInParentList

        public void removeReferenceInParentList​(InheritedAccessEnabled access)
        Description copied from class: AccessTypeInjector
        Removes references to child elements from the parent list. Using this method prevents the "deleted object would be re-saved by cascade" error. This can happen, for example, after deleting an inherited TabAccess or FieldAccess.
        Overrides:
        removeReferenceInParentList in class AccessTypeInjector
        Parameters:
        access - The access to be removed from the parent list