java.lang.Object
ch.tocco.nice2.persist.security.api.exec.SecModes

public final class SecModes extends Object
  • Field Details

    • PRIVILEGED

      public static final Mode.Key<Boolean> PRIVILEGED
      Performs the task in privileged mode.
    • RUN_AS

      public static final Mode.Key<Principal> RUN_AS
      Performs the task using the security context of the specified user. Note, this will change the principal on the thread for the time the task is executing! This is useful when using CommandService.submit(Mode, PersistTask, Object) since there a new thread is used to execute the task.