Class EntityPath<E extends EntityReference>

java.lang.Object
ch.tocco.nice2.persist.security.api.provider.EntityPath<E>

public class EntityPath<E extends EntityReference> extends Object
Represents a certain field or relation of a specific entity
  • Method Details

    • create

      public static <T extends EntityReference> EntityPath<T> create(T entity, String path)
    • create

      public static <T extends EntityReference> EntityPath<T> create(T entity, String path, boolean checkPathOnly)
      If checkPathOnly is set to true, it is assumed that the access to the entity is granted and only the rules regarding the field itself are evaluated. This can be useful for performance reasons when entity permission is already checked to avoid entity rules being evaluated multiple times.
    • getEntity

      public E getEntity()
    • getPath

      public String getPath()
    • isCheckPathOnly

      public boolean isCheckPathOnly()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object