GUAC-1101: Reorganize everything into org.glyptodon.guacamole.auth.mysql packages based on related guacamole-ext type.

This commit is contained in:
Michael Jumper
2015-02-27 16:15:26 -08:00
parent 872607eb2c
commit c19b43ce95
64 changed files with 332 additions and 184 deletions

View File

@@ -23,33 +23,43 @@
package net.sourceforge.guacamole.net.auth.mysql; package net.sourceforge.guacamole.net.auth.mysql;
import org.glyptodon.guacamole.auth.mysql.user.MySQLUserContext;
import org.glyptodon.guacamole.auth.mysql.connectiongroup.MySQLRootConnectionGroup;
import org.glyptodon.guacamole.auth.mysql.connectiongroup.MySQLConnectionGroup;
import org.glyptodon.guacamole.auth.mysql.connectiongroup.ConnectionGroupDirectory;
import org.glyptodon.guacamole.auth.mysql.connection.ConnectionDirectory;
import org.glyptodon.guacamole.auth.mysql.connection.MySQLGuacamoleConfiguration;
import org.glyptodon.guacamole.auth.mysql.connection.MySQLConnection;
import org.glyptodon.guacamole.auth.mysql.permission.MySQLSystemPermissionSet;
import org.glyptodon.guacamole.auth.mysql.user.MySQLUser;
import org.glyptodon.guacamole.auth.mysql.user.UserDirectory;
import com.google.inject.Binder; import com.google.inject.Binder;
import com.google.inject.Guice; import com.google.inject.Guice;
import com.google.inject.Injector; import com.google.inject.Injector;
import com.google.inject.Module; import com.google.inject.Module;
import com.google.inject.name.Names; import com.google.inject.name.Names;
import java.util.Properties; import java.util.Properties;
import net.sourceforge.guacamole.net.auth.mysql.dao.ConnectionGroupMapper; import org.glyptodon.guacamole.auth.mysql.connectiongroup.ConnectionGroupMapper;
import net.sourceforge.guacamole.net.auth.mysql.dao.ConnectionMapper; import org.glyptodon.guacamole.auth.mysql.connection.ConnectionMapper;
import net.sourceforge.guacamole.net.auth.mysql.dao.ConnectionRecordMapper; import org.glyptodon.guacamole.auth.mysql.connection.ConnectionRecordMapper;
import net.sourceforge.guacamole.net.auth.mysql.dao.ParameterMapper; import org.glyptodon.guacamole.auth.mysql.connection.ParameterMapper;
import net.sourceforge.guacamole.net.auth.mysql.dao.SystemPermissionMapper; import org.glyptodon.guacamole.auth.mysql.permission.SystemPermissionMapper;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.net.auth.AuthenticationProvider; import org.glyptodon.guacamole.net.auth.AuthenticationProvider;
import org.glyptodon.guacamole.net.auth.Credentials; import org.glyptodon.guacamole.net.auth.Credentials;
import org.glyptodon.guacamole.net.auth.UserContext; import org.glyptodon.guacamole.net.auth.UserContext;
import net.sourceforge.guacamole.net.auth.mysql.dao.UserMapper; import org.glyptodon.guacamole.auth.mysql.user.UserMapper;
import net.sourceforge.guacamole.net.auth.mysql.properties.MySQLGuacamoleProperties; import org.glyptodon.guacamole.auth.mysql.conf.MySQLGuacamoleProperties;
import net.sourceforge.guacamole.net.auth.mysql.service.ConnectionGroupService; import org.glyptodon.guacamole.auth.mysql.connectiongroup.ConnectionGroupService;
import net.sourceforge.guacamole.net.auth.mysql.service.ConnectionService; import org.glyptodon.guacamole.auth.mysql.connection.ConnectionService;
import net.sourceforge.guacamole.net.auth.mysql.service.GuacamoleSocketService; import org.glyptodon.guacamole.auth.mysql.socket.GuacamoleSocketService;
import net.sourceforge.guacamole.net.auth.mysql.service.PasswordEncryptionService; import org.glyptodon.guacamole.auth.mysql.security.PasswordEncryptionService;
import net.sourceforge.guacamole.net.auth.mysql.service.SHA256PasswordEncryptionService; import org.glyptodon.guacamole.auth.mysql.security.SHA256PasswordEncryptionService;
import net.sourceforge.guacamole.net.auth.mysql.service.SaltService; import org.glyptodon.guacamole.auth.mysql.security.SaltService;
import net.sourceforge.guacamole.net.auth.mysql.service.SecureRandomSaltService; import org.glyptodon.guacamole.auth.mysql.security.SecureRandomSaltService;
import net.sourceforge.guacamole.net.auth.mysql.service.SystemPermissionService; import org.glyptodon.guacamole.auth.mysql.permission.SystemPermissionService;
import net.sourceforge.guacamole.net.auth.mysql.service.UnrestrictedGuacamoleSocketService; import org.glyptodon.guacamole.auth.mysql.socket.UnrestrictedGuacamoleSocketService;
import net.sourceforge.guacamole.net.auth.mysql.service.UserService; import org.glyptodon.guacamole.auth.mysql.user.UserService;
import org.apache.ibatis.transaction.jdbc.JdbcTransactionFactory; import org.apache.ibatis.transaction.jdbc.JdbcTransactionFactory;
import org.glyptodon.guacamole.environment.Environment; import org.glyptodon.guacamole.environment.Environment;
import org.glyptodon.guacamole.environment.LocalEnvironment; import org.glyptodon.guacamole.environment.LocalEnvironment;

View File

@@ -21,8 +21,8 @@
*/ */
/** /**
* Base classes which support the MySQL authentication provider, including * The MySQL authentication provider. This package exists purely for backwards-
* the authentication provider itself. * compatibility. All other classes have been moved to packages within
* org.glyptodon.guacamole.auth.mysql.
*/ */
package net.sourceforge.guacamole.net.auth.mysql; package net.sourceforge.guacamole.net.auth.mysql;

View File

@@ -20,9 +20,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql; package org.glyptodon.guacamole.auth.mysql.base;
import net.sourceforge.guacamole.net.auth.mysql.model.ObjectModel;
import org.glyptodon.guacamole.net.auth.Identifiable; import org.glyptodon.guacamole.net.auth.Identifiable;
/** /**

View File

@@ -20,11 +20,11 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.dao; package org.glyptodon.guacamole.auth.mysql.base;
import java.util.Collection; import java.util.Collection;
import java.util.Set; import java.util.Set;
import net.sourceforge.guacamole.net.auth.mysql.model.UserModel; import org.glyptodon.guacamole.auth.mysql.user.UserModel;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
/** /**

View File

@@ -20,16 +20,13 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.service; package org.glyptodon.guacamole.auth.mysql.base;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.Set; import java.util.Set;
import net.sourceforge.guacamole.net.auth.mysql.AuthenticatedUser; import org.glyptodon.guacamole.auth.mysql.user.AuthenticatedUser;
import net.sourceforge.guacamole.net.auth.mysql.DirectoryObject;
import net.sourceforge.guacamole.net.auth.mysql.dao.DirectoryObjectMapper;
import net.sourceforge.guacamole.net.auth.mysql.model.ObjectModel;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.GuacamoleSecurityException; import org.glyptodon.guacamole.GuacamoleSecurityException;
import org.glyptodon.guacamole.net.auth.permission.ObjectPermission; import org.glyptodon.guacamole.net.auth.permission.ObjectPermission;

View File

@@ -20,7 +20,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.model; package org.glyptodon.guacamole.auth.mysql.base;
/** /**
* Object representation of a Guacamole object, such as a user or connection, * Object representation of a Guacamole object, such as a user or connection,

View File

@@ -20,7 +20,9 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql; package org.glyptodon.guacamole.auth.mysql.base;
import org.glyptodon.guacamole.auth.mysql.user.AuthenticatedUser;
/** /**
* Common base class for objects that are associated with the users that * Common base class for objects that are associated with the users that

View File

@@ -0,0 +1,28 @@
/*
* Copyright (C) 2015 Glyptodon LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
/**
* Base classes supporting the MySQL authentication provider and defining the
* relationships between the model and the implementations of guacamole-ext
* classes.
*/
package org.glyptodon.guacamole.auth.mysql.base;

View File

@@ -20,7 +20,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.properties; package org.glyptodon.guacamole.auth.mysql.conf;
import org.glyptodon.guacamole.properties.BooleanGuacamoleProperty; import org.glyptodon.guacamole.properties.BooleanGuacamoleProperty;
import org.glyptodon.guacamole.properties.IntegerGuacamoleProperty; import org.glyptodon.guacamole.properties.IntegerGuacamoleProperty;

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2013 Glyptodon LLC * Copyright (C) 2015 Glyptodon LLC
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@@ -21,8 +21,6 @@
*/ */
/** /**
* Service classes which help fill the needs of the MySQL authentication * Classes related to the configuration of the MySQL authentication provider.
* provider.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.service; package org.glyptodon.guacamole.auth.mysql.conf;

View File

@@ -20,14 +20,14 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql; package org.glyptodon.guacamole.auth.mysql.connection;
import com.google.inject.Inject; import com.google.inject.Inject;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.Set; import java.util.Set;
import net.sourceforge.guacamole.net.auth.mysql.service.ConnectionService; import org.glyptodon.guacamole.auth.mysql.user.AuthenticatedUser;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.net.auth.Connection; import org.glyptodon.guacamole.net.auth.Connection;
import org.glyptodon.guacamole.net.auth.Directory; import org.glyptodon.guacamole.net.auth.Directory;

View File

@@ -20,11 +20,11 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.dao; package org.glyptodon.guacamole.auth.mysql.connection;
import java.util.Set; import java.util.Set;
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionModel; import org.glyptodon.guacamole.auth.mysql.base.DirectoryObjectMapper;
import net.sourceforge.guacamole.net.auth.mysql.model.UserModel; import org.glyptodon.guacamole.auth.mysql.user.UserModel;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
/** /**

View File

@@ -20,7 +20,9 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.model; package org.glyptodon.guacamole.auth.mysql.connection;
import org.glyptodon.guacamole.auth.mysql.base.ObjectModel;
/** /**
* Object representation of a Guacamole connection, as represented in the * Object representation of a Guacamole connection, as represented in the

View File

@@ -20,10 +20,9 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.dao; package org.glyptodon.guacamole.auth.mysql.connection;
import java.util.List; import java.util.List;
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionRecordModel;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
/** /**

View File

@@ -20,7 +20,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.model; package org.glyptodon.guacamole.auth.mysql.connection;
import java.util.Date; import java.util.Date;

View File

@@ -20,7 +20,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.service; package org.glyptodon.guacamole.auth.mysql.connection;
import com.google.inject.Inject; import com.google.inject.Inject;
import com.google.inject.Provider; import com.google.inject.Provider;
@@ -30,16 +30,10 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import net.sourceforge.guacamole.net.auth.mysql.AuthenticatedUser; import org.glyptodon.guacamole.auth.mysql.user.AuthenticatedUser;
import net.sourceforge.guacamole.net.auth.mysql.MySQLConnection; import org.glyptodon.guacamole.auth.mysql.base.DirectoryObjectMapper;
import net.sourceforge.guacamole.net.auth.mysql.MySQLConnectionRecord; import org.glyptodon.guacamole.auth.mysql.base.DirectoryObjectService;
import net.sourceforge.guacamole.net.auth.mysql.dao.ConnectionMapper; import org.glyptodon.guacamole.auth.mysql.socket.GuacamoleSocketService;
import net.sourceforge.guacamole.net.auth.mysql.dao.ConnectionRecordMapper;
import net.sourceforge.guacamole.net.auth.mysql.dao.DirectoryObjectMapper;
import net.sourceforge.guacamole.net.auth.mysql.dao.ParameterMapper;
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionModel;
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionRecordModel;
import net.sourceforge.guacamole.net.auth.mysql.model.ParameterModel;
import org.glyptodon.guacamole.GuacamoleClientException; import org.glyptodon.guacamole.GuacamoleClientException;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.GuacamoleSecurityException; import org.glyptodon.guacamole.GuacamoleSecurityException;

View File

@@ -20,14 +20,14 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql; package org.glyptodon.guacamole.auth.mysql.connection;
import com.google.inject.Inject; import com.google.inject.Inject;
import com.google.inject.Provider; import com.google.inject.Provider;
import java.util.List; import java.util.List;
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionModel; import org.glyptodon.guacamole.auth.mysql.base.DirectoryObject;
import net.sourceforge.guacamole.net.auth.mysql.service.ConnectionService; import org.glyptodon.guacamole.auth.mysql.connectiongroup.MySQLRootConnectionGroup;
import net.sourceforge.guacamole.net.auth.mysql.service.GuacamoleSocketService; import org.glyptodon.guacamole.auth.mysql.socket.GuacamoleSocketService;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.net.GuacamoleSocket; import org.glyptodon.guacamole.net.GuacamoleSocket;
import org.glyptodon.guacamole.net.auth.Connection; import org.glyptodon.guacamole.net.auth.Connection;

View File

@@ -20,11 +20,10 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql; package org.glyptodon.guacamole.auth.mysql.connection;
import java.util.Date; import java.util.Date;
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionRecordModel;
import org.glyptodon.guacamole.net.auth.ConnectionRecord; import org.glyptodon.guacamole.net.auth.ConnectionRecord;
/** /**

View File

@@ -20,12 +20,11 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql; package org.glyptodon.guacamole.auth.mysql.connection;
import com.google.inject.Inject; import com.google.inject.Inject;
import java.util.Map; import java.util.Map;
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionModel; import org.glyptodon.guacamole.auth.mysql.user.AuthenticatedUser;
import net.sourceforge.guacamole.net.auth.mysql.service.ConnectionService;
import org.glyptodon.guacamole.protocol.GuacamoleConfiguration; import org.glyptodon.guacamole.protocol.GuacamoleConfiguration;
/** /**

View File

@@ -20,10 +20,9 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.dao; package org.glyptodon.guacamole.auth.mysql.connection;
import java.util.Collection; import java.util.Collection;
import net.sourceforge.guacamole.net.auth.mysql.model.ParameterModel;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
/** /**

View File

@@ -20,7 +20,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.model; package org.glyptodon.guacamole.auth.mysql.connection;
/** /**
* A single parameter name/value pair belonging to a connection. * A single parameter name/value pair belonging to a connection.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2013 Glyptodon LLC * Copyright (C) 2015 Glyptodon LLC
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@@ -21,8 +21,6 @@
*/ */
/** /**
* Properties which control the configuration of the MySQL authentication * Classes related to connections and their parameters and history.
* provider.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.properties; package org.glyptodon.guacamole.auth.mysql.connection;

View File

@@ -20,14 +20,14 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql; package org.glyptodon.guacamole.auth.mysql.connectiongroup;
import com.google.inject.Inject; import com.google.inject.Inject;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.Set; import java.util.Set;
import net.sourceforge.guacamole.net.auth.mysql.service.ConnectionGroupService; import org.glyptodon.guacamole.auth.mysql.user.AuthenticatedUser;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.net.auth.ConnectionGroup; import org.glyptodon.guacamole.net.auth.ConnectionGroup;
import org.glyptodon.guacamole.net.auth.Directory; import org.glyptodon.guacamole.net.auth.Directory;

View File

@@ -20,11 +20,11 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.dao; package org.glyptodon.guacamole.auth.mysql.connectiongroup;
import java.util.Set; import java.util.Set;
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionGroupModel; import org.glyptodon.guacamole.auth.mysql.base.DirectoryObjectMapper;
import net.sourceforge.guacamole.net.auth.mysql.model.UserModel; import org.glyptodon.guacamole.auth.mysql.user.UserModel;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
/** /**

View File

@@ -20,8 +20,9 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.model; package org.glyptodon.guacamole.auth.mysql.connectiongroup;
import org.glyptodon.guacamole.auth.mysql.base.ObjectModel;
import org.glyptodon.guacamole.net.auth.ConnectionGroup; import org.glyptodon.guacamole.net.auth.ConnectionGroup;
/** /**

View File

@@ -20,16 +20,15 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.service; package org.glyptodon.guacamole.auth.mysql.connectiongroup;
import com.google.inject.Inject; import com.google.inject.Inject;
import com.google.inject.Provider; import com.google.inject.Provider;
import java.util.Set; import java.util.Set;
import net.sourceforge.guacamole.net.auth.mysql.AuthenticatedUser; import org.glyptodon.guacamole.auth.mysql.user.AuthenticatedUser;
import net.sourceforge.guacamole.net.auth.mysql.MySQLConnectionGroup; import org.glyptodon.guacamole.auth.mysql.base.DirectoryObjectMapper;
import net.sourceforge.guacamole.net.auth.mysql.dao.ConnectionGroupMapper; import org.glyptodon.guacamole.auth.mysql.base.DirectoryObjectService;
import net.sourceforge.guacamole.net.auth.mysql.dao.DirectoryObjectMapper; import org.glyptodon.guacamole.auth.mysql.socket.GuacamoleSocketService;
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionGroupModel;
import org.glyptodon.guacamole.GuacamoleClientException; import org.glyptodon.guacamole.GuacamoleClientException;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.GuacamoleSecurityException; import org.glyptodon.guacamole.GuacamoleSecurityException;

View File

@@ -20,14 +20,13 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql; package org.glyptodon.guacamole.auth.mysql.connectiongroup;
import com.google.inject.Inject; import com.google.inject.Inject;
import java.util.Set; import java.util.Set;
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionGroupModel; import org.glyptodon.guacamole.auth.mysql.base.DirectoryObject;
import net.sourceforge.guacamole.net.auth.mysql.service.ConnectionGroupService; import org.glyptodon.guacamole.auth.mysql.connection.ConnectionService;
import net.sourceforge.guacamole.net.auth.mysql.service.ConnectionService; import org.glyptodon.guacamole.auth.mysql.socket.GuacamoleSocketService;
import net.sourceforge.guacamole.net.auth.mysql.service.GuacamoleSocketService;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.net.GuacamoleSocket; import org.glyptodon.guacamole.net.GuacamoleSocket;
import org.glyptodon.guacamole.net.auth.ConnectionGroup; import org.glyptodon.guacamole.net.auth.ConnectionGroup;

View File

@@ -20,12 +20,12 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql; package org.glyptodon.guacamole.auth.mysql.connectiongroup;
import com.google.inject.Inject; import com.google.inject.Inject;
import java.util.Set; import java.util.Set;
import net.sourceforge.guacamole.net.auth.mysql.service.ConnectionGroupService; import org.glyptodon.guacamole.auth.mysql.user.AuthenticatedUser;
import net.sourceforge.guacamole.net.auth.mysql.service.ConnectionService; import org.glyptodon.guacamole.auth.mysql.connection.ConnectionService;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.GuacamoleSecurityException; import org.glyptodon.guacamole.GuacamoleSecurityException;
import org.glyptodon.guacamole.net.GuacamoleSocket; import org.glyptodon.guacamole.net.GuacamoleSocket;

View File

@@ -0,0 +1,26 @@
/*
* Copyright (C) 2015 Glyptodon LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
/**
* Classes related to connection groups.
*/
package org.glyptodon.guacamole.auth.mysql.connectiongroup;

View File

@@ -20,12 +20,13 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql; package org.glyptodon.guacamole.auth.mysql.permission;
import org.glyptodon.guacamole.auth.mysql.user.MySQLUser;
import com.google.inject.Inject; import com.google.inject.Inject;
import java.util.Collections; import java.util.Collections;
import java.util.Set; import java.util.Set;
import net.sourceforge.guacamole.net.auth.mysql.service.SystemPermissionService; import org.glyptodon.guacamole.auth.mysql.user.AuthenticatedUser;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.net.auth.permission.SystemPermission; import org.glyptodon.guacamole.net.auth.permission.SystemPermission;
import org.glyptodon.guacamole.net.auth.permission.SystemPermissionSet; import org.glyptodon.guacamole.net.auth.permission.SystemPermissionSet;

View File

@@ -20,9 +20,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.dao; package org.glyptodon.guacamole.auth.mysql.permission;
import net.sourceforge.guacamole.net.auth.mysql.model.ObjectPermissionModel;
/** /**
* Mapper for object-related permissions. * Mapper for object-related permissions.

View File

@@ -20,7 +20,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.model; package org.glyptodon.guacamole.auth.mysql.permission;
import org.glyptodon.guacamole.net.auth.permission.ObjectPermission; import org.glyptodon.guacamole.net.auth.permission.ObjectPermission;

View File

@@ -20,13 +20,13 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.service; package org.glyptodon.guacamole.auth.mysql.permission;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.HashSet; import java.util.HashSet;
import net.sourceforge.guacamole.net.auth.mysql.AuthenticatedUser; import org.glyptodon.guacamole.auth.mysql.user.AuthenticatedUser;
import net.sourceforge.guacamole.net.auth.mysql.MySQLUser; import org.glyptodon.guacamole.auth.mysql.user.MySQLUser;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.GuacamoleSecurityException; import org.glyptodon.guacamole.GuacamoleSecurityException;
import org.glyptodon.guacamole.net.auth.permission.ObjectPermission; import org.glyptodon.guacamole.net.auth.permission.ObjectPermission;

View File

@@ -20,10 +20,10 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.dao; package org.glyptodon.guacamole.auth.mysql.permission;
import java.util.Collection; import java.util.Collection;
import net.sourceforge.guacamole.net.auth.mysql.model.UserModel; import org.glyptodon.guacamole.auth.mysql.user.UserModel;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
/** /**

View File

@@ -20,7 +20,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.model; package org.glyptodon.guacamole.auth.mysql.permission;
/** /**
* Generic base permission model which grants a permission of a particular type * Generic base permission model which grants a permission of a particular type

View File

@@ -20,15 +20,14 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.service; package org.glyptodon.guacamole.auth.mysql.permission;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;
import net.sourceforge.guacamole.net.auth.mysql.AuthenticatedUser; import org.glyptodon.guacamole.auth.mysql.user.AuthenticatedUser;
import net.sourceforge.guacamole.net.auth.mysql.MySQLUser; import org.glyptodon.guacamole.auth.mysql.user.MySQLUser;
import net.sourceforge.guacamole.net.auth.mysql.dao.PermissionMapper;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.GuacamoleSecurityException; import org.glyptodon.guacamole.GuacamoleSecurityException;
import org.glyptodon.guacamole.net.auth.permission.Permission; import org.glyptodon.guacamole.net.auth.permission.Permission;

View File

@@ -20,10 +20,9 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.dao; package org.glyptodon.guacamole.auth.mysql.permission;
import net.sourceforge.guacamole.net.auth.mysql.model.SystemPermissionModel; import org.glyptodon.guacamole.auth.mysql.user.UserModel;
import net.sourceforge.guacamole.net.auth.mysql.model.UserModel;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.glyptodon.guacamole.net.auth.permission.SystemPermission; import org.glyptodon.guacamole.net.auth.permission.SystemPermission;

View File

@@ -20,7 +20,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.model; package org.glyptodon.guacamole.auth.mysql.permission;
import org.glyptodon.guacamole.net.auth.permission.SystemPermission; import org.glyptodon.guacamole.net.auth.permission.SystemPermission;

View File

@@ -20,16 +20,13 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.service; package org.glyptodon.guacamole.auth.mysql.permission;
import com.google.inject.Inject; import com.google.inject.Inject;
import com.google.inject.Provider; import com.google.inject.Provider;
import java.util.Collection; import java.util.Collection;
import net.sourceforge.guacamole.net.auth.mysql.AuthenticatedUser; import org.glyptodon.guacamole.auth.mysql.user.AuthenticatedUser;
import net.sourceforge.guacamole.net.auth.mysql.MySQLSystemPermissionSet; import org.glyptodon.guacamole.auth.mysql.user.MySQLUser;
import net.sourceforge.guacamole.net.auth.mysql.MySQLUser;
import net.sourceforge.guacamole.net.auth.mysql.dao.SystemPermissionMapper;
import net.sourceforge.guacamole.net.auth.mysql.model.SystemPermissionModel;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.GuacamoleSecurityException; import org.glyptodon.guacamole.GuacamoleSecurityException;
import org.glyptodon.guacamole.net.auth.permission.SystemPermission; import org.glyptodon.guacamole.net.auth.permission.SystemPermission;

View File

@@ -0,0 +1,26 @@
/*
* Copyright (C) 2015 Glyptodon LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
/**
* Classes related to object- and system-level permissions.
*/
package org.glyptodon.guacamole.auth.mysql.permission;

View File

@@ -20,7 +20,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.service; package org.glyptodon.guacamole.auth.mysql.security;
/** /**
* A service to perform password encryption and checking. * A service to perform password encryption and checking.

View File

@@ -20,7 +20,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.service; package org.glyptodon.guacamole.auth.mysql.security;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
import java.security.MessageDigest; import java.security.MessageDigest;

View File

@@ -20,7 +20,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.service; package org.glyptodon.guacamole.auth.mysql.security;
/** /**
* A service to generate password salts. * A service to generate password salts.

View File

@@ -20,7 +20,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.service; package org.glyptodon.guacamole.auth.mysql.security;
import java.security.SecureRandom; import java.security.SecureRandom;

View File

@@ -0,0 +1,26 @@
/*
* Copyright (C) 2015 Glyptodon LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
/**
* Classes related to hashing or encryption.
*/
package org.glyptodon.guacamole.auth.mysql.security;

View File

@@ -20,7 +20,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.service; package org.glyptodon.guacamole.auth.mysql.socket;
import com.google.inject.Inject; import com.google.inject.Inject;
import java.util.Collection; import java.util.Collection;
@@ -30,15 +30,15 @@ import java.util.HashMap;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import net.sourceforge.guacamole.net.auth.mysql.AuthenticatedUser; import org.glyptodon.guacamole.auth.mysql.user.AuthenticatedUser;
import net.sourceforge.guacamole.net.auth.mysql.MySQLConnection; import org.glyptodon.guacamole.auth.mysql.connection.MySQLConnection;
import net.sourceforge.guacamole.net.auth.mysql.MySQLConnectionGroup; import org.glyptodon.guacamole.auth.mysql.connectiongroup.MySQLConnectionGroup;
import net.sourceforge.guacamole.net.auth.mysql.dao.ConnectionRecordMapper; import org.glyptodon.guacamole.auth.mysql.connection.ConnectionRecordMapper;
import net.sourceforge.guacamole.net.auth.mysql.dao.ParameterMapper; import org.glyptodon.guacamole.auth.mysql.connection.ParameterMapper;
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionModel; import org.glyptodon.guacamole.auth.mysql.connection.ConnectionModel;
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionRecordModel; import org.glyptodon.guacamole.auth.mysql.connection.ConnectionRecordModel;
import net.sourceforge.guacamole.net.auth.mysql.model.ParameterModel; import org.glyptodon.guacamole.auth.mysql.connection.ParameterModel;
import net.sourceforge.guacamole.net.auth.mysql.model.UserModel; import org.glyptodon.guacamole.auth.mysql.user.UserModel;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.environment.Environment; import org.glyptodon.guacamole.environment.Environment;
import org.glyptodon.guacamole.net.GuacamoleSocket; import org.glyptodon.guacamole.net.GuacamoleSocket;

View File

@@ -20,10 +20,10 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.service; package org.glyptodon.guacamole.auth.mysql.socket;
import java.util.Date; import java.util.Date;
import net.sourceforge.guacamole.net.auth.mysql.AuthenticatedUser; import org.glyptodon.guacamole.auth.mysql.user.AuthenticatedUser;
import org.glyptodon.guacamole.net.auth.ConnectionRecord; import org.glyptodon.guacamole.net.auth.ConnectionRecord;

View File

@@ -20,12 +20,12 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.service; package org.glyptodon.guacamole.auth.mysql.socket;
import java.util.List; import java.util.List;
import net.sourceforge.guacamole.net.auth.mysql.AuthenticatedUser; import org.glyptodon.guacamole.auth.mysql.user.AuthenticatedUser;
import net.sourceforge.guacamole.net.auth.mysql.MySQLConnection; import org.glyptodon.guacamole.auth.mysql.connection.MySQLConnection;
import net.sourceforge.guacamole.net.auth.mysql.MySQLConnectionGroup; import org.glyptodon.guacamole.auth.mysql.connectiongroup.MySQLConnectionGroup;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.net.GuacamoleSocket; import org.glyptodon.guacamole.net.GuacamoleSocket;
import org.glyptodon.guacamole.net.auth.Connection; import org.glyptodon.guacamole.net.auth.Connection;

View File

@@ -20,11 +20,11 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.service; package org.glyptodon.guacamole.auth.mysql.socket;
import com.google.inject.Singleton; import com.google.inject.Singleton;
import net.sourceforge.guacamole.net.auth.mysql.AuthenticatedUser; import org.glyptodon.guacamole.auth.mysql.user.AuthenticatedUser;
import net.sourceforge.guacamole.net.auth.mysql.MySQLConnection; import org.glyptodon.guacamole.auth.mysql.connection.MySQLConnection;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;

View File

@@ -0,0 +1,27 @@
/*
* Copyright (C) 2015 Glyptodon LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
/**
* Classes related to obtaining/configuring Guacamole sockets, and restricting
* access to those sockets.
*/
package org.glyptodon.guacamole.auth.mysql.socket;

View File

@@ -20,7 +20,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql; package org.glyptodon.guacamole.auth.mysql.user;
import org.glyptodon.guacamole.net.auth.Credentials; import org.glyptodon.guacamole.net.auth.Credentials;

View File

@@ -20,13 +20,13 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql; package org.glyptodon.guacamole.auth.mysql.user;
import com.google.inject.Inject; import com.google.inject.Inject;
import net.sourceforge.guacamole.net.auth.mysql.model.UserModel; import org.glyptodon.guacamole.auth.mysql.base.DirectoryObject;
import net.sourceforge.guacamole.net.auth.mysql.service.PasswordEncryptionService; import org.glyptodon.guacamole.auth.mysql.security.PasswordEncryptionService;
import net.sourceforge.guacamole.net.auth.mysql.service.SaltService; import org.glyptodon.guacamole.auth.mysql.security.SaltService;
import net.sourceforge.guacamole.net.auth.mysql.service.SystemPermissionService; import org.glyptodon.guacamole.auth.mysql.permission.SystemPermissionService;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.net.auth.User; import org.glyptodon.guacamole.net.auth.User;
import org.glyptodon.guacamole.net.auth.permission.ObjectPermissionSet; import org.glyptodon.guacamole.net.auth.permission.ObjectPermissionSet;

View File

@@ -20,9 +20,12 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql; package org.glyptodon.guacamole.auth.mysql.user;
import org.glyptodon.guacamole.auth.mysql.connectiongroup.MySQLRootConnectionGroup;
import org.glyptodon.guacamole.auth.mysql.connectiongroup.ConnectionGroupDirectory;
import org.glyptodon.guacamole.auth.mysql.connection.ConnectionDirectory;
import com.google.inject.Inject; import com.google.inject.Inject;
import com.google.inject.Provider; import com.google.inject.Provider;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;

View File

@@ -20,16 +20,14 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql; package org.glyptodon.guacamole.auth.mysql.user;
import com.google.inject.Inject; import com.google.inject.Inject;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.Set; import java.util.Set;
import net.sourceforge.guacamole.net.auth.mysql.service.UserService;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.GuacamoleSecurityException;
import org.glyptodon.guacamole.net.auth.Directory; import org.glyptodon.guacamole.net.auth.Directory;
import org.glyptodon.guacamole.net.auth.User; import org.glyptodon.guacamole.net.auth.User;
import org.mybatis.guice.transactional.Transactional; import org.mybatis.guice.transactional.Transactional;

View File

@@ -20,9 +20,9 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.dao; package org.glyptodon.guacamole.auth.mysql.user;
import net.sourceforge.guacamole.net.auth.mysql.model.UserModel; import org.glyptodon.guacamole.auth.mysql.base.DirectoryObjectMapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
/** /**

View File

@@ -20,7 +20,9 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.model; package org.glyptodon.guacamole.auth.mysql.user;
import org.glyptodon.guacamole.auth.mysql.base.ObjectModel;
/** /**
* Object representation of a Guacamole user, as represented in the database. * Object representation of a Guacamole user, as represented in the database.

View File

@@ -20,18 +20,15 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
package net.sourceforge.guacamole.net.auth.mysql.service; package org.glyptodon.guacamole.auth.mysql.user;
import com.google.inject.Inject; import com.google.inject.Inject;
import com.google.inject.Provider; import com.google.inject.Provider;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import net.sourceforge.guacamole.net.auth.mysql.AuthenticatedUser;
import org.glyptodon.guacamole.net.auth.Credentials; import org.glyptodon.guacamole.net.auth.Credentials;
import net.sourceforge.guacamole.net.auth.mysql.MySQLUser; import org.glyptodon.guacamole.auth.mysql.base.DirectoryObjectMapper;
import net.sourceforge.guacamole.net.auth.mysql.dao.DirectoryObjectMapper; import org.glyptodon.guacamole.auth.mysql.base.DirectoryObjectService;
import net.sourceforge.guacamole.net.auth.mysql.dao.UserMapper;
import net.sourceforge.guacamole.net.auth.mysql.model.UserModel;
import org.glyptodon.guacamole.GuacamoleClientException; import org.glyptodon.guacamole.GuacamoleClientException;
import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.net.auth.User; import org.glyptodon.guacamole.net.auth.User;

View File

@@ -0,0 +1,26 @@
/*
* Copyright (C) 2015 Glyptodon LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
/**
* Classes related to Guacamole users.
*/
package org.glyptodon.guacamole.auth.mysql.user;

View File

@@ -24,10 +24,10 @@
THE SOFTWARE. THE SOFTWARE.
--> -->
<mapper namespace="net.sourceforge.guacamole.net.auth.mysql.dao.ConnectionMapper" > <mapper namespace="org.glyptodon.guacamole.auth.mysql.connection.ConnectionMapper" >
<!-- Result mapper for connection objects --> <!-- Result mapper for connection objects -->
<resultMap id="ConnectionResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionModel" > <resultMap id="ConnectionResultMap" type="org.glyptodon.guacamole.auth.mysql.connection.ConnectionModel" >
<id column="connection_id" property="objectID" jdbcType="INTEGER"/> <id column="connection_id" property="objectID" jdbcType="INTEGER"/>
<result column="connection_name" property="name" jdbcType="VARCHAR"/> <result column="connection_name" property="name" jdbcType="VARCHAR"/>
<result column="parent_id" property="parentIdentifier" jdbcType="INTEGER"/> <result column="parent_id" property="parentIdentifier" jdbcType="INTEGER"/>
@@ -115,7 +115,7 @@
<!-- Insert single connection --> <!-- Insert single connection -->
<insert id="insert" useGeneratedKeys="true" keyProperty="object.objectID" <insert id="insert" useGeneratedKeys="true" keyProperty="object.objectID"
parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionModel"> parameterType="org.glyptodon.guacamole.auth.mysql.connection.ConnectionModel">
INSERT INTO guacamole_connection ( INSERT INTO guacamole_connection (
connection_name, connection_name,
@@ -131,7 +131,7 @@
</insert> </insert>
<!-- Update single connection --> <!-- Update single connection -->
<update id="update" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionModel"> <update id="update" parameterType="org.glyptodon.guacamole.auth.mysql.connection.ConnectionModel">
UPDATE guacamole_connection UPDATE guacamole_connection
SET connection_name = #{object.name,jdbcType=VARCHAR}, SET connection_name = #{object.name,jdbcType=VARCHAR},
parent_id = #{object.parentIdentifier,jdbcType=VARCHAR}, parent_id = #{object.parentIdentifier,jdbcType=VARCHAR},

View File

@@ -24,10 +24,10 @@
THE SOFTWARE. THE SOFTWARE.
--> -->
<mapper namespace="net.sourceforge.guacamole.net.auth.mysql.dao.ConnectionRecordMapper" > <mapper namespace="org.glyptodon.guacamole.auth.mysql.connection.ConnectionRecordMapper" >
<!-- Result mapper for system permissions --> <!-- Result mapper for system permissions -->
<resultMap id="ConnectionRecordResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionRecordModel"> <resultMap id="ConnectionRecordResultMap" type="org.glyptodon.guacamole.auth.mysql.connection.ConnectionRecordModel">
<result column="connection_id" property="connectionIdentifier" jdbcType="INTEGER"/> <result column="connection_id" property="connectionIdentifier" jdbcType="INTEGER"/>
<result column="user_id" property="userID" jdbcType="INTEGER"/> <result column="user_id" property="userID" jdbcType="INTEGER"/>
<result column="username" property="username" jdbcType="VARCHAR"/> <result column="username" property="username" jdbcType="VARCHAR"/>
@@ -55,7 +55,7 @@
</select> </select>
<!-- Insert the given connection record --> <!-- Insert the given connection record -->
<insert id="insert" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionRecordModel"> <insert id="insert" parameterType="org.glyptodon.guacamole.auth.mysql.connection.ConnectionRecordModel">
INSERT INTO guacamole_connection_history ( INSERT INTO guacamole_connection_history (
connection_id, connection_id,

View File

@@ -24,10 +24,10 @@
THE SOFTWARE. THE SOFTWARE.
--> -->
<mapper namespace="net.sourceforge.guacamole.net.auth.mysql.dao.ParameterMapper"> <mapper namespace="org.glyptodon.guacamole.auth.mysql.connection.ParameterMapper">
<!-- Result mapper for connection parameters --> <!-- Result mapper for connection parameters -->
<resultMap id="ParameterResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.ParameterModel"> <resultMap id="ParameterResultMap" type="org.glyptodon.guacamole.auth.mysql.connection.ParameterModel">
<result column="connection_id" property="connectionIdentifier" jdbcType="INTEGER"/> <result column="connection_id" property="connectionIdentifier" jdbcType="INTEGER"/>
<result column="parameter_name" property="name" jdbcType="VARCHAR"/> <result column="parameter_name" property="name" jdbcType="VARCHAR"/>
<result column="parameter_value" property="value" jdbcType="VARCHAR"/> <result column="parameter_value" property="value" jdbcType="VARCHAR"/>
@@ -51,7 +51,7 @@
</delete> </delete>
<!-- Insert all given parameters --> <!-- Insert all given parameters -->
<insert id="insert" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ParameterModel"> <insert id="insert" parameterType="org.glyptodon.guacamole.auth.mysql.connection.ParameterModel">
INSERT INTO guacamole_connection_parameter ( INSERT INTO guacamole_connection_parameter (
connection_id, connection_id,

View File

@@ -24,10 +24,10 @@
THE SOFTWARE. THE SOFTWARE.
--> -->
<mapper namespace="net.sourceforge.guacamole.net.auth.mysql.dao.ConnectionGroupMapper" > <mapper namespace="org.glyptodon.guacamole.auth.mysql.connectiongroup.ConnectionGroupMapper" >
<!-- Result mapper for connection objects --> <!-- Result mapper for connection objects -->
<resultMap id="ConnectionGroupResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionGroupModel" > <resultMap id="ConnectionGroupResultMap" type="org.glyptodon.guacamole.auth.mysql.connectiongroup.ConnectionGroupModel" >
<id column="connection_group_id" property="objectID" jdbcType="INTEGER"/> <id column="connection_group_id" property="objectID" jdbcType="INTEGER"/>
<result column="connection_group_name" property="name" jdbcType="VARCHAR"/> <result column="connection_group_name" property="name" jdbcType="VARCHAR"/>
<result column="parent_id" property="parentIdentifier" jdbcType="INTEGER"/> <result column="parent_id" property="parentIdentifier" jdbcType="INTEGER"/>
@@ -116,7 +116,7 @@
<!-- Insert single connection --> <!-- Insert single connection -->
<insert id="insert" useGeneratedKeys="true" keyProperty="object.objectID" <insert id="insert" useGeneratedKeys="true" keyProperty="object.objectID"
parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionGroupModel"> parameterType="org.glyptodon.guacamole.auth.mysql.connectiongroup.ConnectionGroupModel">
INSERT INTO guacamole_connection_group ( INSERT INTO guacamole_connection_group (
connection_group_name, connection_group_name,
@@ -132,7 +132,7 @@
</insert> </insert>
<!-- Update single connection group --> <!-- Update single connection group -->
<update id="update" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionGroupModel"> <update id="update" parameterType="org.glyptodon.guacamole.auth.mysql.connectiongroup.ConnectionGroupModel">
UPDATE guacamole_connection_group UPDATE guacamole_connection_group
SET connection_group_name = #{object.name,jdbcType=VARCHAR}, SET connection_group_name = #{object.name,jdbcType=VARCHAR},
parent_id = #{object.parentIdentifier,jdbcType=VARCHAR}, parent_id = #{object.parentIdentifier,jdbcType=VARCHAR},

View File

@@ -24,10 +24,10 @@
THE SOFTWARE. THE SOFTWARE.
--> -->
<mapper namespace="net.sourceforge.guacamole.net.auth.mysql.dao.SystemPermissionMapper" > <mapper namespace="org.glyptodon.guacamole.auth.mysql.permission.SystemPermissionMapper" >
<!-- Result mapper for system permissions --> <!-- Result mapper for system permissions -->
<resultMap id="SystemPermissionResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.SystemPermissionModel"> <resultMap id="SystemPermissionResultMap" type="org.glyptodon.guacamole.auth.mysql.permission.SystemPermissionModel">
<result column="user_id" property="userID" jdbcType="INTEGER"/> <result column="user_id" property="userID" jdbcType="INTEGER"/>
<result column="username" property="username" jdbcType="VARCHAR"/> <result column="username" property="username" jdbcType="VARCHAR"/>
<result column="permission" property="type" jdbcType="VARCHAR" <result column="permission" property="type" jdbcType="VARCHAR"
@@ -63,7 +63,7 @@
</select> </select>
<!-- Delete all given permissions --> <!-- Delete all given permissions -->
<delete id="delete" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.SystemPermissionModel"> <delete id="delete" parameterType="org.glyptodon.guacamole.auth.mysql.permission.SystemPermissionModel">
DELETE FROM guacamole_system_permission DELETE FROM guacamole_system_permission
WHERE (user_id, permission) IN WHERE (user_id, permission) IN
@@ -76,7 +76,7 @@
</delete> </delete>
<!-- Insert all given permissions --> <!-- Insert all given permissions -->
<insert id="insert" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.SystemPermissionModel"> <insert id="insert" parameterType="org.glyptodon.guacamole.auth.mysql.permission.SystemPermissionModel">
INSERT IGNORE INTO guacamole_system_permission ( INSERT IGNORE INTO guacamole_system_permission (
user_id, user_id,

View File

@@ -24,10 +24,10 @@
THE SOFTWARE. THE SOFTWARE.
--> -->
<mapper namespace="net.sourceforge.guacamole.net.auth.mysql.dao.UserMapper" > <mapper namespace="org.glyptodon.guacamole.auth.mysql.user.UserMapper" >
<!-- Result mapper for user objects --> <!-- Result mapper for user objects -->
<resultMap id="UserResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.UserModel" > <resultMap id="UserResultMap" type="org.glyptodon.guacamole.auth.mysql.user.UserModel" >
<id column="user_id" property="objectID" jdbcType="INTEGER"/> <id column="user_id" property="objectID" jdbcType="INTEGER"/>
<result column="username" property="identifier" jdbcType="VARCHAR"/> <result column="username" property="identifier" jdbcType="VARCHAR"/>
<result column="password_hash" property="passwordHash" jdbcType="BINARY"/> <result column="password_hash" property="passwordHash" jdbcType="BINARY"/>
@@ -108,7 +108,7 @@
<!-- Insert single user --> <!-- Insert single user -->
<insert id="insert" useGeneratedKeys="true" keyProperty="object.objectID" <insert id="insert" useGeneratedKeys="true" keyProperty="object.objectID"
parameterType="net.sourceforge.guacamole.net.auth.mysql.model.UserModel"> parameterType="org.glyptodon.guacamole.auth.mysql.user.UserModel">
INSERT INTO guacamole_user ( INSERT INTO guacamole_user (
username, username,
@@ -124,7 +124,7 @@
</insert> </insert>
<!-- Update single user --> <!-- Update single user -->
<update id="update" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.UserModel"> <update id="update" parameterType="org.glyptodon.guacamole.auth.mysql.user.UserModel">
UPDATE guacamole_user UPDATE guacamole_user
SET password_hash = #{object.passwordHash,jdbcType=BINARY}, SET password_hash = #{object.passwordHash,jdbcType=BINARY},
password_salt = #{object.passwordSalt,jdbcType=BINARY} password_salt = #{object.passwordSalt,jdbcType=BINARY}