Class UpdateReferenceFilePermission

    • Field Detail

      • PERMISSION_PROVIDED

        public static final java.lang.String PERMISSION_PROVIDED
        See Also:
        Constant Field Values
    • Method Detail

      • getPermissionProvided

        public java.lang.String getPermissionProvided()
        Description copied from interface: BasePermission
        Get the implementation-specific permission provided.
        Returns:
        the permission provided by the permission class.
      • customPermissionAllowed

        protected boolean customPermissionAllowed​(org.springframework.security.core.Authentication authentication,
                                                  ReferenceFile targetDomainObject)
        This method is called by RepositoryBackedPermission to evaluate the custom permissions provided by implementing classes.
        Specified by:
        customPermissionAllowed in class RepositoryBackedPermission<ReferenceFile,​java.lang.Long>
        Parameters:
        authentication - the authenticated user.
        targetDomainObject - the object that the user is attempting to access.
        Returns:
        true if permitted, false otherwise.