Class SessionFactoryImpl

    • Method Detail

      • setReference

        public void setReference​(Reference reference)
        Specified by:
        setReference in interface javax.resource.Referenceable
        See Also:
        Referenceable.setReference(javax.naming.Reference)
      • getSession

        public javax.jcr.Session getSession()
                                     throws javax.jcr.RepositoryException
        Description copied from interface: SessionFactory
        Get a JCR session corresponding to the repository defined in the configuration and the default workspace.
        Specified by:
        getSession in interface SessionFactory
        Returns:
        a JCR session corresponding to the criteria
        Throws:
        javax.jcr.RepositoryException - if the session could not be created
        See Also:
        SessionFactory.getSession()
      • getSession

        public javax.jcr.Session getSession​(String userName,
                                            String password)
                                     throws javax.jcr.RepositoryException
        Description copied from interface: SessionFactory
        Get a JCR session corresponding to the repository defined in the configuration and the default workspace, using the given user name and password.
        Specified by:
        getSession in interface SessionFactory
        Parameters:
        userName - the user name to use for the authentication
        password - the password to use for the authentication
        Returns:
        a JCR session corresponding to the criteria
        Throws:
        javax.jcr.RepositoryException - if the session could not be created
        See Also:
        SessionFactory.getSession(java.lang.String, java.lang.String)
      • getSession

        public javax.jcr.Session getSession​(String workspace)
                                     throws javax.jcr.RepositoryException
        Description copied from interface: SessionFactory
        Get a JCR session corresponding to the repository defined in the configuration and the given workspace.
        Specified by:
        getSession in interface SessionFactory
        Parameters:
        workspace - the name of the expected workspace
        Returns:
        a JCR session corresponding to the criteria
        Throws:
        javax.jcr.RepositoryException - if the session could not be created
        See Also:
        SessionFactory.getSession(java.lang.String)
      • getSession

        public javax.jcr.Session getSession​(String workspace,
                                            String userName,
                                            String password)
                                     throws javax.jcr.RepositoryException
        Description copied from interface: SessionFactory
        Get a JCR session corresponding to the repository defined in the configuration and the given workspace, using the given user name and password.
        Specified by:
        getSession in interface SessionFactory
        Parameters:
        workspace - the name of the expected workspace
        userName - the user name to use for the authentication
        password - the password to use for the authentication
        Returns:
        a JCR session corresponding to the criteria
        Throws:
        javax.jcr.RepositoryException - if the session could not be created
        See Also:
        SessionFactory.getSession(java.lang.String, java.lang.String, java.lang.String)