Class ImpersonationRequestUtil


  • @Deprecated
    @Service(ImpersonationRequestUtil.class)
    public class ImpersonationRequestUtil
    extends java.lang.Object
    Deprecated.
    as of 5.3.4
    This class/service is deprecated and should not be used any more. It will be removed in a future version.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      javax.servlet.http.Cookie createCookie​(java.lang.String id, java.lang.String sudo)
      Deprecated.
      with no replacement.
      boolean isImpersonated​(javax.servlet.http.HttpServletRequest request)
      Deprecated.
      check "impersonator" attribute of the session to see whether the session is impersonated or not.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImpersonationRequestUtil

        public ImpersonationRequestUtil()
        Deprecated.
    • Method Detail

      • isImpersonated

        @Deprecated
        public boolean isImpersonated​(javax.servlet.http.HttpServletRequest request)
        Deprecated.
        check "impersonator" attribute of the session to see whether the session is impersonated or not.
        Returns true if the JCR Session underlying the current request is impersonated. Otherwise false is returned. false is als returned if the request is not a SlingHttpServletRequest or the request's resource resolver is not based on a JCR session.
      • createCookie

        @Deprecated
        public javax.servlet.http.Cookie createCookie​(java.lang.String id,
                                                      java.lang.String sudo)
        Deprecated.
        with no replacement. To initiate impersonation send a request with the sudo request parameter set to the target user id.
        Throws:
        java.lang.UnsupportedOperationException - because this is not implemented and supported any longer.