Class TransientUserPermissionHelper


  • public class TransientUserPermissionHelper
    extends Object
    Since:
    8.1
    • Method Detail

      • addToken

        public static void addToken​(String username)
        Adds a token for the given username.

        Does nothing if username is not a transient username or if a token already exists.

        Since:
        10.3
      • getToken

        public static String getToken​(String username)
        Returns the token linked to the given transient username, or null if no token can be found.
        Since:
        10.3
      • hasOtherPermission

        protected static boolean hasOtherPermission​(String username,
                                                    DocumentModel doc)
        Returns true if the given username has a non-archived ACE on another document than doc, false otherwise.

        Always returns false if the configuration property NuxeoPrincipal.TRANSIENT_USERNAME_UNIQUE_PROP is true.

        Since:
        10.3