/** * Returns the value of the configuration property with specified * <code>name</code>. If the property does not exist <code>null</code> is * returned. * <p> * Configuration properties are defined in the file: * <code>repositoryStubImpl.properties</code>. * * @param name the name of the property to retrieve. * @return the value of the property or <code>null</code> if non existent. * @throws RepositoryException if the configuration file cannot be found. */ public String getProperty(String name) throws RepositoryException { // force assignment of repoStub getRepositoryService(); return repoServiceStub.getProperty(name); }
public SessionInfo getReadOnlySessionInfo() throws RepositoryException { // force assignment of repoStub getRepositoryService(); String propName = RepositoryServiceStub.PROP_PREFIX + "." + RepositoryServiceStub.PROP_WORKSPACE; String wspName = repoServiceStub.getProperty(propName); return getRepositoryService().obtain(getReadOnlyCredentials(), wspName); } }
public SessionInfo getAdminSessionInfo() throws RepositoryException { // force assignment of repoStub getRepositoryService(); String propName = RepositoryServiceStub.PROP_PREFIX + "." + RepositoryServiceStub.PROP_WORKSPACE; String wspName = repoServiceStub.getProperty(propName); return getRepositoryService().obtain(getAdminCredentials(), wspName); }