Class WikiAccessControlService

java.lang.Object
fr.paris.lutece.plugins.wiki.service.security.WikiAccessControlService

public final class WikiAccessControlService extends Object
Service for controlling access to wiki items based on user roles and permissions.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canCreateBook(fr.paris.lutece.portal.service.security.LuteceUser user)
    Checks if the user can create a book.
    static boolean
    canCreateSpace(fr.paris.lutece.portal.service.security.LuteceUser user)
    Checks if the user can create a space.
    static boolean
    canEdit(fr.paris.lutece.portal.service.security.LuteceUser user, AbstractWikiItem item)
    Checks if the user can edit the specified wiki item.
    static boolean
    canUseAiFeatures(fr.paris.lutece.portal.service.security.LuteceUser user)
    Checks if the user can use AI features.
    static boolean
    canView(fr.paris.lutece.portal.service.security.LuteceUser user, AbstractWikiItem item)
    Checks if the user can view the specified wiki item.
    static boolean
    isWikiAdmin(fr.paris.lutece.portal.service.security.LuteceUser user)
    Checks if the user is a wiki admin.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • canView

      public static boolean canView(fr.paris.lutece.portal.service.security.LuteceUser user, AbstractWikiItem item)
      Checks if the user can view the specified wiki item.
      Parameters:
      user - the Lutece user
      item - the wiki item to check
      Returns:
      true if the user can view the item, false otherwise
    • isWikiAdmin

      public static boolean isWikiAdmin(fr.paris.lutece.portal.service.security.LuteceUser user)
      Checks if the user is a wiki admin.
      Parameters:
      user - the Lutece user
      Returns:
      true if the user is a wiki admin, false otherwise
    • canCreateSpace

      public static boolean canCreateSpace(fr.paris.lutece.portal.service.security.LuteceUser user)
      Checks if the user can create a space.
      Parameters:
      user - the Lutece user
      Returns:
      true if the user can create a space, false otherwise
    • canCreateBook

      public static boolean canCreateBook(fr.paris.lutece.portal.service.security.LuteceUser user)
      Checks if the user can create a book.
      Parameters:
      user - the Lutece user
      Returns:
      true if the user can create a book, false otherwise
    • canUseAiFeatures

      public static boolean canUseAiFeatures(fr.paris.lutece.portal.service.security.LuteceUser user)
      Checks if the user can use AI features.
      Parameters:
      user - the Lutece user
      Returns:
      true if the user can use AI features, false otherwise
    • canEdit

      public static boolean canEdit(fr.paris.lutece.portal.service.security.LuteceUser user, AbstractWikiItem item)
      Checks if the user can edit the specified wiki item.
      Parameters:
      user - the Lutece user
      item - the wiki item to check
      Returns:
      true if the user can edit the item, false otherwise