Class NoPermissionDelegate<T>

    • Constructor Detail

      • NoPermissionDelegate

        public NoPermissionDelegate()
    • Method Detail

      • canView

        public boolean canView​(com.atlassian.user.User user,
                               T target)
        Specified by:
        canView in interface PermissionDelegate<T>
        Returns:
        true if user can view the specified target.
      • canView

        public boolean canView​(com.atlassian.user.User user)
        Specified by:
        canView in interface PermissionDelegate<T>
        Returns:
        true if the user can view all instances of targets handled by this permission delegate
      • canEdit

        public boolean canEdit​(com.atlassian.user.User user,
                               T target)
        Specified by:
        canEdit in interface PermissionDelegate<T>
      • canCreate

        public boolean canCreate​(com.atlassian.user.User user,
                                 Object container)
        Specified by:
        canCreate in interface PermissionDelegate<T>
        Returns:
        true if the specified user can create new instances of the target type in the specified container.
      • canCreateInTarget

        public boolean canCreateInTarget​(com.atlassian.user.User user,
                                         Class typeToCreate)
        Specified by:
        canCreateInTarget in interface PermissionDelegate<T>
        Parameters:
        user - the user performing the create
        typeToCreate - the class of the entity to create
        Returns:
        true if the specified user can create new instances of the specified typeToCreate within instances of target handled by this PermissionDelegate.