Interface InstancePermissionAdvisor<T>

Type Parameters:
T - desired type object to handle. Implementations of InstancePermissionAdvisor#isApplicableTo(java.lang.Object) should return true only if type T is assignable from the instance's type.
All Known Implementing Classes:
LanguageInstancePermissionAdvisor, LockedItemPermissionAdvisor, ViewResultItemPermissionAdvisor

public interface InstancePermissionAdvisor<T>
Interface for providing custom strategies for instance permissions. Used by DefaultPlatformPermissionFacadeStrategy and possible to use by any other implementation of PermissionFacadeStrategy. Should be used carefully while too many implementations may be harmful to performance.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canDelete(T instance)
     
    boolean
    canModify(T instance)
     
    boolean
     
  • Method Details

    • canModify

      boolean canModify(T instance)
      Parameters:
      instance - instance to be checked
      Returns:
      true if the instance can be modified
    • canDelete

      boolean canDelete(T instance)
      Parameters:
      instance - instance to be checked
      Returns:
      true if the instance can be deleted
    • isApplicableTo

      boolean isApplicableTo(Object instance)
      Parameters:
      instance - instance to be checked
      Returns:
      true if the instance can be checked by the strategy