001/* 002 * (C) Copyright 2006-2007 Nuxeo SAS (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * anguenot 016 * 017 * $Id: WSRemotingSessionImpl.java 19195 2007-05-23 06:43:21Z sfermigier $ 018 */ 019 020package org.nuxeo.ecm.platform.api.ws.session.impl; 021 022import org.nuxeo.ecm.core.api.CoreSession; 023import org.nuxeo.ecm.platform.api.ws.session.WSRemotingSession; 024import org.nuxeo.ecm.platform.usermanager.UserManager; 025 026/** 027 * Web service remoting session implementation. 028 * 029 * @author <a href="mailto:ja@nuxeo.com">Julien Anguenot</a> 030 */ 031public class WSRemotingSessionImpl implements WSRemotingSession { 032 033 private final CoreSession docMgr; 034 035 private final UserManager userMgr; 036 037 private final String repository; 038 039 private final String username; 040 041 private final String password; 042 043 public WSRemotingSessionImpl(CoreSession session, UserManager um, String repository, String username, 044 String password) { 045 docMgr = session; 046 userMgr = um; 047 this.repository = repository; 048 this.username = username; 049 this.password = password; 050 } 051 052 public CoreSession getDocumentManager() { 053 return docMgr; 054 } 055 056 public String getPassword() { 057 return password; 058 } 059 060 public String getRepository() { 061 return repository; 062 } 063 064 public UserManager getUserManager() { 065 return userMgr; 066 } 067 068 public String getUsername() { 069 return username; 070 } 071 072}