2010-11-05 19:47:52 +01:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) 2010, Sebastian Sdorra
|
|
|
|
|
* All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
|
* modification, are permitted provided that the following conditions are met:
|
|
|
|
|
*
|
|
|
|
|
* 1. Redistributions of source code must retain the above copyright notice,
|
|
|
|
|
* this list of conditions and the following disclaimer.
|
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
|
|
|
* this list of conditions and the following disclaimer in the documentation
|
|
|
|
|
* and/or other materials provided with the distribution.
|
|
|
|
|
* 3. Neither the name of SCM-Manager; nor the names of its
|
|
|
|
|
* contributors may be used to endorse or promote products derived from this
|
|
|
|
|
* software without specific prior written permission.
|
|
|
|
|
*
|
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
|
|
|
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
|
* DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
|
|
|
|
|
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
|
|
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
|
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
|
|
|
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
|
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
*
|
|
|
|
|
* http://bitbucket.org/sdorra/scm-manager
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-11-07 15:19:00 +01:00
|
|
|
package sonia.scm.user.xml;
|
2010-11-05 19:47:52 +01:00
|
|
|
|
|
|
|
|
//~--- non-JDK imports --------------------------------------------------------
|
|
|
|
|
|
2010-11-28 11:32:41 +01:00
|
|
|
import com.google.inject.Inject;
|
|
|
|
|
import com.google.inject.Provider;
|
2010-11-05 19:47:52 +01:00
|
|
|
import com.google.inject.Singleton;
|
|
|
|
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
2011-01-02 14:04:51 +01:00
|
|
|
import sonia.scm.HandlerEvent;
|
2010-11-05 19:47:52 +01:00
|
|
|
import sonia.scm.SCMContextProvider;
|
2010-11-29 21:27:06 +01:00
|
|
|
import sonia.scm.security.ScmSecurityException;
|
2010-11-28 11:32:41 +01:00
|
|
|
import sonia.scm.security.SecurityContext;
|
2010-12-05 19:26:38 +01:00
|
|
|
import sonia.scm.store.Store;
|
|
|
|
|
import sonia.scm.store.StoreFactory;
|
2010-11-26 15:37:35 +01:00
|
|
|
import sonia.scm.user.AbstractUserManager;
|
2010-11-07 15:19:00 +01:00
|
|
|
import sonia.scm.user.User;
|
|
|
|
|
import sonia.scm.user.UserAllreadyExistException;
|
|
|
|
|
import sonia.scm.user.UserException;
|
2011-01-04 17:17:48 +01:00
|
|
|
import sonia.scm.util.AssertUtil;
|
2010-11-05 19:47:52 +01:00
|
|
|
import sonia.scm.util.IOUtil;
|
2010-11-28 11:32:41 +01:00
|
|
|
import sonia.scm.util.SecurityUtil;
|
2010-11-26 15:37:35 +01:00
|
|
|
import sonia.scm.util.Util;
|
2010-11-05 19:47:52 +01:00
|
|
|
|
|
|
|
|
//~--- JDK imports ------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
|
|
|
|
|
|
import java.util.Collection;
|
2010-11-07 15:19:00 +01:00
|
|
|
import java.util.LinkedList;
|
2010-11-05 19:47:52 +01:00
|
|
|
|
2010-12-30 13:03:01 +01:00
|
|
|
import javax.xml.bind.JAXBContext;
|
|
|
|
|
import javax.xml.bind.JAXBException;
|
|
|
|
|
import javax.xml.bind.Unmarshaller;
|
2010-11-05 19:47:52 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @author Sebastian Sdorra
|
|
|
|
|
*/
|
|
|
|
|
@Singleton
|
2010-11-26 15:37:35 +01:00
|
|
|
public class XmlUserManager extends AbstractUserManager
|
2010-11-05 19:47:52 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/** Field description */
|
2010-11-06 15:56:44 +01:00
|
|
|
public static final String ADMIN_PATH = "/sonia/scm/config/admin-account.xml";
|
2010-11-05 19:47:52 +01:00
|
|
|
|
2010-12-30 13:03:01 +01:00
|
|
|
/** Field description */
|
|
|
|
|
public static final String ANONYMOUS_PATH =
|
|
|
|
|
"/sonia/scm/config/anonymous-account.xml";
|
|
|
|
|
|
2010-11-05 19:47:52 +01:00
|
|
|
/** Field description */
|
2010-12-05 19:26:38 +01:00
|
|
|
public static final String STORE_NAME = "users";
|
2010-11-05 19:47:52 +01:00
|
|
|
|
2010-11-26 15:37:35 +01:00
|
|
|
/** Field description */
|
|
|
|
|
public static final String TYPE = "xml";
|
|
|
|
|
|
|
|
|
|
/** the logger for XmlUserManager */
|
2010-11-05 19:47:52 +01:00
|
|
|
private static final Logger logger =
|
2010-11-26 15:37:35 +01:00
|
|
|
LoggerFactory.getLogger(XmlUserManager.class);
|
2010-11-05 19:47:52 +01:00
|
|
|
|
2010-11-28 11:32:41 +01:00
|
|
|
//~--- constructors ---------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Constructs ...
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param scurityContextProvider
|
2010-12-05 19:26:38 +01:00
|
|
|
* @param storeFactory
|
2010-11-28 11:32:41 +01:00
|
|
|
*/
|
|
|
|
|
@Inject
|
2010-12-05 19:26:38 +01:00
|
|
|
public XmlUserManager(Provider<SecurityContext> scurityContextProvider,
|
|
|
|
|
StoreFactory storeFactory)
|
2010-11-28 11:32:41 +01:00
|
|
|
{
|
|
|
|
|
this.scurityContextProvider = scurityContextProvider;
|
2010-12-05 19:26:38 +01:00
|
|
|
this.store = storeFactory.getStore(XmlUserDatabase.class, STORE_NAME);
|
2010-11-28 11:32:41 +01:00
|
|
|
}
|
|
|
|
|
|
2010-11-05 19:47:52 +01:00
|
|
|
//~--- methods --------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Method description
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @throws IOException
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public void close() throws IOException
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
// do nothing
|
|
|
|
|
}
|
|
|
|
|
|
2010-12-04 15:58:13 +01:00
|
|
|
/**
|
|
|
|
|
* Method description
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param username
|
|
|
|
|
*
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public boolean contains(String username)
|
|
|
|
|
{
|
|
|
|
|
return userDB.contains(username);
|
|
|
|
|
}
|
|
|
|
|
|
2010-11-05 19:47:52 +01:00
|
|
|
/**
|
|
|
|
|
* Method description
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param user
|
|
|
|
|
*
|
|
|
|
|
* @throws IOException
|
|
|
|
|
* @throws UserException
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public void create(User user) throws UserException, IOException
|
|
|
|
|
{
|
2010-12-05 17:33:29 +01:00
|
|
|
if (logger.isInfoEnabled())
|
|
|
|
|
{
|
|
|
|
|
logger.info("create user {} of type {}", user.getName(), user.getType());
|
|
|
|
|
}
|
|
|
|
|
|
2010-11-29 21:27:06 +01:00
|
|
|
User currentUser = SecurityUtil.getCurrentUser(scurityContextProvider);
|
|
|
|
|
|
|
|
|
|
if (!user.equals(currentUser) &&!currentUser.isAdmin())
|
|
|
|
|
{
|
|
|
|
|
throw new ScmSecurityException("admin account is required");
|
|
|
|
|
}
|
2010-11-28 11:32:41 +01:00
|
|
|
|
2011-01-04 17:17:48 +01:00
|
|
|
AssertUtil.assertIsValid(user);
|
|
|
|
|
|
2010-11-07 15:19:00 +01:00
|
|
|
if (userDB.contains(user.getName()))
|
2010-11-05 19:47:52 +01:00
|
|
|
{
|
|
|
|
|
throw new UserAllreadyExistException();
|
|
|
|
|
}
|
|
|
|
|
|
2010-11-26 15:37:35 +01:00
|
|
|
String type = user.getType();
|
2010-11-07 15:19:00 +01:00
|
|
|
|
2010-11-26 15:37:35 +01:00
|
|
|
if (Util.isEmpty(type))
|
|
|
|
|
{
|
|
|
|
|
user.setType(TYPE);
|
|
|
|
|
}
|
|
|
|
|
|
2010-12-05 17:46:26 +01:00
|
|
|
user.setCreationDate(System.currentTimeMillis());
|
|
|
|
|
|
2010-11-26 15:37:35 +01:00
|
|
|
synchronized (XmlUserManager.class)
|
2010-11-07 15:19:00 +01:00
|
|
|
{
|
|
|
|
|
userDB.add(user.clone());
|
|
|
|
|
storeDB();
|
|
|
|
|
}
|
2011-01-02 14:04:51 +01:00
|
|
|
|
|
|
|
|
fireEvent(user, HandlerEvent.CREATE);
|
2010-11-05 19:47:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Method description
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param user
|
|
|
|
|
*
|
|
|
|
|
* @throws IOException
|
|
|
|
|
* @throws UserException
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public void delete(User user) throws UserException, IOException
|
|
|
|
|
{
|
2010-12-05 17:33:29 +01:00
|
|
|
if (logger.isInfoEnabled())
|
|
|
|
|
{
|
|
|
|
|
logger.info("delete user {} of type {}", user.getName(), user.getType());
|
|
|
|
|
}
|
|
|
|
|
|
2010-11-28 11:32:41 +01:00
|
|
|
SecurityUtil.assertIsAdmin(scurityContextProvider);
|
|
|
|
|
|
2010-11-07 15:19:00 +01:00
|
|
|
String name = user.getName();
|
2010-11-05 19:47:52 +01:00
|
|
|
|
2010-11-07 15:19:00 +01:00
|
|
|
if (userDB.contains(name))
|
2010-11-05 19:47:52 +01:00
|
|
|
{
|
2010-11-26 15:37:35 +01:00
|
|
|
synchronized (XmlUserManager.class)
|
2010-11-07 15:19:00 +01:00
|
|
|
{
|
|
|
|
|
userDB.remove(name);
|
|
|
|
|
storeDB();
|
|
|
|
|
}
|
2011-01-02 14:04:51 +01:00
|
|
|
|
|
|
|
|
fireEvent(user, HandlerEvent.DELETE);
|
2010-11-05 19:47:52 +01:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
throw new UserException("user does not exists");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Method description
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param context
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public void init(SCMContextProvider context)
|
|
|
|
|
{
|
2010-12-05 19:26:38 +01:00
|
|
|
userDB = store.get();
|
2010-11-05 19:47:52 +01:00
|
|
|
|
2010-12-05 19:26:38 +01:00
|
|
|
if (userDB == null)
|
2010-11-05 19:47:52 +01:00
|
|
|
{
|
2010-11-07 15:19:00 +01:00
|
|
|
userDB = new XmlUserDatabase();
|
|
|
|
|
userDB.setCreationTime(System.currentTimeMillis());
|
2010-12-30 13:03:01 +01:00
|
|
|
createDefaultAccounts();
|
2010-11-05 19:47:52 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Method description
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param user
|
|
|
|
|
*
|
|
|
|
|
* @throws IOException
|
|
|
|
|
* @throws UserException
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public void modify(User user) throws UserException, IOException
|
|
|
|
|
{
|
2010-12-05 17:33:29 +01:00
|
|
|
if (logger.isInfoEnabled())
|
|
|
|
|
{
|
|
|
|
|
logger.info("modify user {} of type {}", user.getName(), user.getType());
|
|
|
|
|
}
|
|
|
|
|
|
2010-12-04 16:18:47 +01:00
|
|
|
User currentUser = SecurityUtil.getCurrentUser(scurityContextProvider);
|
|
|
|
|
|
2010-12-05 17:33:29 +01:00
|
|
|
if (!user.getName().equals(currentUser.getName()) &&!currentUser.isAdmin())
|
2010-12-04 16:18:47 +01:00
|
|
|
{
|
|
|
|
|
throw new ScmSecurityException("admin account is required");
|
|
|
|
|
}
|
2010-11-28 11:32:41 +01:00
|
|
|
|
2011-01-04 17:17:48 +01:00
|
|
|
AssertUtil.assertIsValid(user);
|
|
|
|
|
|
2010-11-07 15:19:00 +01:00
|
|
|
String name = user.getName();
|
2010-11-05 19:47:52 +01:00
|
|
|
|
2010-11-07 15:19:00 +01:00
|
|
|
if (userDB.contains(name))
|
2010-11-05 19:47:52 +01:00
|
|
|
{
|
2010-11-26 15:37:35 +01:00
|
|
|
synchronized (XmlUserManager.class)
|
2010-11-07 15:19:00 +01:00
|
|
|
{
|
|
|
|
|
userDB.remove(name);
|
|
|
|
|
userDB.add(user.clone());
|
|
|
|
|
storeDB();
|
|
|
|
|
}
|
2011-01-02 14:04:51 +01:00
|
|
|
|
|
|
|
|
fireEvent(user, HandlerEvent.MODIFY);
|
2010-11-05 19:47:52 +01:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
throw new UserException("user does not exists");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Method description
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param user
|
|
|
|
|
*
|
|
|
|
|
* @throws IOException
|
|
|
|
|
* @throws UserException
|
|
|
|
|
*/
|
2010-11-26 15:37:35 +01:00
|
|
|
@Override
|
2010-11-05 19:47:52 +01:00
|
|
|
public void refresh(User user) throws UserException, IOException
|
|
|
|
|
{
|
2010-12-05 17:33:29 +01:00
|
|
|
if (logger.isInfoEnabled())
|
|
|
|
|
{
|
|
|
|
|
logger.info("refresh user {} of type {}", user.getName(), user.getType());
|
|
|
|
|
}
|
|
|
|
|
|
2010-11-28 11:32:41 +01:00
|
|
|
SecurityUtil.assertIsAdmin(scurityContextProvider);
|
|
|
|
|
|
2010-11-07 15:19:00 +01:00
|
|
|
User fresh = userDB.get(user.getName());
|
2010-11-05 19:47:52 +01:00
|
|
|
|
|
|
|
|
if (fresh == null)
|
|
|
|
|
{
|
|
|
|
|
throw new UserException("user does not exists");
|
|
|
|
|
}
|
|
|
|
|
|
2010-11-25 21:56:06 +01:00
|
|
|
fresh.copyProperties(user);
|
2010-11-05 19:47:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//~--- get methods ----------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Method description
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param id
|
|
|
|
|
*
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2010-11-26 15:37:35 +01:00
|
|
|
@Override
|
2010-11-05 19:47:52 +01:00
|
|
|
public User get(String id)
|
|
|
|
|
{
|
2010-11-28 11:32:41 +01:00
|
|
|
|
|
|
|
|
// SecurityUtil.assertIsAdmin(scurityContextProvider);
|
2010-11-07 15:19:00 +01:00
|
|
|
User user = userDB.get(id);
|
2010-11-05 19:47:52 +01:00
|
|
|
|
2010-11-07 15:19:00 +01:00
|
|
|
if (user != null)
|
2010-11-05 19:47:52 +01:00
|
|
|
{
|
2010-11-07 15:19:00 +01:00
|
|
|
user = user.clone();
|
2010-11-05 19:47:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return user;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Method description
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2010-11-26 15:37:35 +01:00
|
|
|
@Override
|
2010-11-05 19:47:52 +01:00
|
|
|
public Collection<User> getAll()
|
|
|
|
|
{
|
2010-11-28 11:32:41 +01:00
|
|
|
SecurityUtil.assertIsAdmin(scurityContextProvider);
|
|
|
|
|
|
2010-11-07 15:19:00 +01:00
|
|
|
LinkedList<User> users = new LinkedList<User>();
|
2010-11-05 19:47:52 +01:00
|
|
|
|
2010-11-07 15:19:00 +01:00
|
|
|
for (User user : userDB.values())
|
2010-11-05 19:47:52 +01:00
|
|
|
{
|
2010-11-07 15:19:00 +01:00
|
|
|
users.add(user.clone());
|
2010-11-05 19:47:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return users;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//~--- methods --------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Method description
|
|
|
|
|
*
|
2010-12-30 13:03:01 +01:00
|
|
|
*
|
|
|
|
|
* @param unmarshaller
|
|
|
|
|
* @param path
|
2010-11-05 19:47:52 +01:00
|
|
|
*/
|
2010-12-30 13:03:01 +01:00
|
|
|
private void createDefaultAccount(Unmarshaller unmarshaller, String path)
|
2010-11-05 19:47:52 +01:00
|
|
|
{
|
2010-12-30 13:03:01 +01:00
|
|
|
InputStream input = XmlUserManager.class.getResourceAsStream(path);
|
2010-11-05 19:47:52 +01:00
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
2010-12-30 13:03:01 +01:00
|
|
|
User user = (User) unmarshaller.unmarshal(input);
|
2010-11-07 15:19:00 +01:00
|
|
|
|
2010-12-31 14:58:11 +01:00
|
|
|
user.setCreationDate(System.currentTimeMillis());
|
2010-11-07 15:19:00 +01:00
|
|
|
userDB.add(user);
|
|
|
|
|
storeDB();
|
2010-11-05 19:47:52 +01:00
|
|
|
}
|
2010-11-07 15:19:00 +01:00
|
|
|
catch (Exception ex)
|
2010-11-05 19:47:52 +01:00
|
|
|
{
|
2010-12-30 13:03:01 +01:00
|
|
|
logger.error("could not create account", ex);
|
2010-11-05 19:47:52 +01:00
|
|
|
}
|
|
|
|
|
finally
|
|
|
|
|
{
|
|
|
|
|
IOUtil.close(input);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2010-12-30 13:03:01 +01:00
|
|
|
/**
|
|
|
|
|
* Method description
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
private void createDefaultAccounts()
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
JAXBContext context = JAXBContext.newInstance(User.class);
|
|
|
|
|
Unmarshaller unmarshaller = context.createUnmarshaller();
|
|
|
|
|
|
|
|
|
|
createDefaultAccount(unmarshaller, ADMIN_PATH);
|
|
|
|
|
createDefaultAccount(unmarshaller, ANONYMOUS_PATH);
|
|
|
|
|
}
|
|
|
|
|
catch (JAXBException ex)
|
|
|
|
|
{
|
|
|
|
|
logger.error(ex.getMessage(), ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2010-11-07 15:19:00 +01:00
|
|
|
/**
|
|
|
|
|
* Method description
|
2010-11-05 19:47:52 +01:00
|
|
|
*
|
|
|
|
|
*/
|
2010-11-07 15:19:00 +01:00
|
|
|
private void storeDB()
|
2010-11-05 19:47:52 +01:00
|
|
|
{
|
2010-12-05 19:26:38 +01:00
|
|
|
userDB.setLastModified(System.currentTimeMillis());
|
|
|
|
|
store.set(userDB);
|
2010-11-05 19:47:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//~--- fields ---------------------------------------------------------------
|
|
|
|
|
|
2010-11-28 11:32:41 +01:00
|
|
|
/** Field description */
|
|
|
|
|
private Provider<SecurityContext> scurityContextProvider;
|
|
|
|
|
|
2010-12-05 18:02:35 +01:00
|
|
|
/** Field description */
|
2010-12-05 19:26:38 +01:00
|
|
|
private Store<XmlUserDatabase> store;
|
2010-12-05 18:02:35 +01:00
|
|
|
|
2010-11-05 19:47:52 +01:00
|
|
|
/** Field description */
|
2010-11-07 15:19:00 +01:00
|
|
|
private XmlUserDatabase userDB;
|
2010-11-05 19:47:52 +01:00
|
|
|
}
|