Class FieldAccessInjector

    • Constructor Detail

      • FieldAccessInjector

        public FieldAccessInjector()
    • 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.
      • 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