Class AlfrescoSecureContextImpl

  • All Implemented Interfaces:
    java.io.Serializable, net.sf.acegisecurity.context.Context, net.sf.acegisecurity.context.security.SecureContext, AlfrescoSecureContext

    public class AlfrescoSecureContextImpl
    extends java.lang.Object
    implements AlfrescoSecureContext
    Hold an Alfresco extended security context
    Author:
    andyh
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      net.sf.acegisecurity.Authentication getAuthentication()
      ACEGI
      net.sf.acegisecurity.Authentication getEffectiveAuthentication()
      Get the effective authentication - used for permission checks
      net.sf.acegisecurity.Authentication getRealAuthentication()
      Get the real authenticaiton - used for auditing and everything else
      int hashCode()  
      void setAuthentication​(net.sf.acegisecurity.Authentication newAuthentication)
      ACEGI
      void setEffectiveAuthentication​(net.sf.acegisecurity.Authentication effictiveAuthentication)
      Set the effective authentication held by the context
      void setRealAuthentication​(net.sf.acegisecurity.Authentication realAuthentication)
      Set the real authentication held by the context
      java.lang.String toString()  
      void validate()
      ACEGI
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AlfrescoSecureContextImpl

        public AlfrescoSecureContextImpl()
    • Method Detail

      • getAuthentication

        public net.sf.acegisecurity.Authentication getAuthentication()
        ACEGI
        Specified by:
        getAuthentication in interface net.sf.acegisecurity.context.security.SecureContext
      • setAuthentication

        public void setAuthentication​(net.sf.acegisecurity.Authentication newAuthentication)
        ACEGI
        Specified by:
        setAuthentication in interface net.sf.acegisecurity.context.security.SecureContext
      • validate

        public void validate()
                      throws net.sf.acegisecurity.context.ContextInvalidException
        ACEGI
        Specified by:
        validate in interface net.sf.acegisecurity.context.Context
        Throws:
        net.sf.acegisecurity.context.ContextInvalidException
      • getRealAuthentication

        public net.sf.acegisecurity.Authentication getRealAuthentication()
        Description copied from interface: AlfrescoSecureContext
        Get the real authenticaiton - used for auditing and everything else
        Specified by:
        getRealAuthentication in interface AlfrescoSecureContext
        Returns:
        Authentication
      • setEffectiveAuthentication

        public void setEffectiveAuthentication​(net.sf.acegisecurity.Authentication effictiveAuthentication)
        Description copied from interface: AlfrescoSecureContext
        Set the effective authentication held by the context
        Specified by:
        setEffectiveAuthentication in interface AlfrescoSecureContext
        Parameters:
        effictiveAuthentication - Authentication
      • setRealAuthentication

        public void setRealAuthentication​(net.sf.acegisecurity.Authentication realAuthentication)
        Description copied from interface: AlfrescoSecureContext
        Set the real authentication held by the context
        Specified by:
        setRealAuthentication in interface AlfrescoSecureContext
        Parameters:
        realAuthentication - Authentication
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object