Interface PermissionDelegate<TARGET>

    • Method Detail

      • canView

        @Deprecated(forRemoval=true)
        default boolean canView​(com.atlassian.user.User user,
                                TARGET target)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns:
        true if user can view the specified target.
      • canView

        boolean canView​(ConfluenceUser user,
                        TARGET target)
        Returns:
        true if user can view the specified target.
        Since:
        8.8
      • canView

        @Deprecated(forRemoval=true)
        default boolean canView​(com.atlassian.user.User user)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns:
        true if the user can view all instances of targets handled by this permission delegate
      • canView

        boolean canView​(ConfluenceUser user)
        Returns:
        true if the user can view all instances of targets handled by this permission delegate
        Since:
        8.8
      • canRemoveHierarchy

        default boolean canRemoveHierarchy​(ConfluenceUser user,
                                           TARGET target)
        Since:
        8.8
      • canCreate

        @Deprecated(forRemoval=true)
        default boolean canCreate​(com.atlassian.user.User user,
                                  Object container)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns:
        true if the specified user can create new instances of the target type in the specified container.
      • canCreate

        boolean canCreate​(ConfluenceUser user,
                          Object container)
        Returns:
        true if the specified user can create new instances of the target type in the specified container.
        Since:
        8.8
      • canCreateInTarget

        @Deprecated(forRemoval=true)
        default boolean canCreateInTarget​(com.atlassian.user.User user,
                                          Class typeToCreate)
        Deprecated, for removal: This API element is subject to removal in a future version.
        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.
      • canCreateInTarget

        boolean canCreateInTarget​(ConfluenceUser user,
                                  Class typeToCreate)
        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.
        Since:
        8.8