Class ReadProjectPermission

    • Field Detail

      • PERMISSION_PROVIDED

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

      • customPermissionAllowed

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