001/* 002 * (C) Copyright 2006-2007 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 * Contributors: 017 * anguenot 018 * 019 * $Id: WSRemotingSessionImpl.java 19195 2007-05-23 06:43:21Z sfermigier $ 020 */ 021 022package org.nuxeo.ecm.platform.api.ws.session.impl; 023 024import org.nuxeo.ecm.core.api.CoreSession; 025import org.nuxeo.ecm.platform.api.ws.session.WSRemotingSession; 026import org.nuxeo.ecm.platform.usermanager.UserManager; 027 028/** 029 * Web service remoting session implementation. 030 * 031 * @author <a href="mailto:ja@nuxeo.com">Julien Anguenot</a> 032 */ 033public class WSRemotingSessionImpl implements WSRemotingSession { 034 035 private final CoreSession docMgr; 036 037 private final UserManager userMgr; 038 039 private final String repository; 040 041 private final String username; 042 043 private final String password; 044 045 public WSRemotingSessionImpl(CoreSession session, UserManager um, String repository, String username, 046 String password) { 047 docMgr = session; 048 userMgr = um; 049 this.repository = repository; 050 this.username = username; 051 this.password = password; 052 } 053 054 public CoreSession getDocumentManager() { 055 return docMgr; 056 } 057 058 public String getPassword() { 059 return password; 060 } 061 062 public String getRepository() { 063 return repository; 064 } 065 066 public UserManager getUserManager() { 067 return userMgr; 068 } 069 070 public String getUsername() { 071 return username; 072 } 073 074}