200 lines
4.4 KiB
Java
200 lines
4.4 KiB
Java
/*
|
|
* Copyright (c) 2010, 2011
|
|
*
|
|
* Robert von Burg <eitch@eitchnet.ch>
|
|
*
|
|
*/
|
|
|
|
/*
|
|
* This file is part of Privilege.
|
|
*
|
|
* Privilege is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* Privilege is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with Privilege. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
package ch.eitchnet.privilege.helper;
|
|
|
|
/**
|
|
* The constants used in parsing XML documents which contain the configuration for Privilege
|
|
*
|
|
* @author Robert von Burg <eitch@eitchnet.ch>
|
|
*/
|
|
public class XmlConstants {
|
|
|
|
/**
|
|
* XML_ROOT_PRIVILEGE_CONTAINER = "PrivilegeContainer" :
|
|
*/
|
|
public static final String XML_ROOT_PRIVILEGE = "Privilege";
|
|
|
|
/**
|
|
* XML_CONTAINER = "Container" :
|
|
*/
|
|
public static final String XML_CONTAINER = "Container";
|
|
|
|
/**
|
|
* XML_POLICIES = "Policies" :
|
|
*/
|
|
public static final String XML_POLICIES = "Policies";
|
|
|
|
/**
|
|
* XML_PRIVILEGES = "Privileges" :
|
|
*/
|
|
public static final String XML_PRIVILEGES = "Privileges";
|
|
|
|
/**
|
|
* XML_ROOT_PRIVILEGE_USERS_AND_ROLES = "UsersAndRoles" :
|
|
*/
|
|
public static final String XML_ROOT_PRIVILEGE_USERS_AND_ROLES = "UsersAndRoles";
|
|
|
|
/**
|
|
* XML_HANDLER_PERSISTENCE = "PersistenceHandler" :
|
|
*/
|
|
public static final String XML_HANDLER_PERSISTENCE = "PersistenceHandler";
|
|
|
|
/**
|
|
* XML_HANDLER_ENCRYPTION = "EncryptionHandler" :
|
|
*/
|
|
public static final String XML_HANDLER_ENCRYPTION = "EncryptionHandler";
|
|
|
|
/**
|
|
* XML_HANDLER_PRIVILEGE = "PrivilegeHandler" :
|
|
*/
|
|
public static final String XML_HANDLER_PRIVILEGE = "PrivilegeHandler";
|
|
|
|
/**
|
|
* XML_ROLES = "Roles" :
|
|
*/
|
|
public static final String XML_ROLES = "Roles";
|
|
|
|
/**
|
|
* XML_ROLE = "Role" :
|
|
*/
|
|
public static final String XML_ROLE = "Role";
|
|
|
|
/**
|
|
* XML_USERS = "Users" :
|
|
*/
|
|
public static final String XML_USERS = "Users";
|
|
|
|
/**
|
|
* XML_USER = "User"
|
|
*/
|
|
public static final String XML_USER = "User";
|
|
|
|
/**
|
|
* XML_PRIVILEGE = "Privilege" :
|
|
*/
|
|
public static final String XML_PRIVILEGE = "Privilege";
|
|
|
|
/**
|
|
* XML_POLICY = "Policy" :
|
|
*/
|
|
public static final String XML_POLICY = "Policy";
|
|
|
|
/**
|
|
* XML_PARAMETERS = "Parameters" :
|
|
*/
|
|
public static final String XML_PARAMETERS = "Parameters";
|
|
|
|
/**
|
|
* XML_PARAMETER = "Parameter" :
|
|
*/
|
|
public static final String XML_PARAMETER = "Parameter";
|
|
|
|
/**
|
|
* XML_ALL_ALLOWED = "AllAllowed" :
|
|
*/
|
|
public static final String XML_ALL_ALLOWED = "AllAllowed";
|
|
|
|
/**
|
|
* XML_DENY = "Deny" :
|
|
*/
|
|
public static final String XML_DENY = "Deny";
|
|
|
|
/**
|
|
* XML_ALLOW = "Allow" :
|
|
*/
|
|
public static final String XML_ALLOW = "Allow";
|
|
|
|
/**
|
|
* XML_FIRSTNAME = "Firstname" :
|
|
*/
|
|
public static final String XML_FIRSTNAME = "Firstname";
|
|
|
|
/**
|
|
* XML_SURNAME = "Surname" :
|
|
*/
|
|
public static final String XML_SURNAME = "Surname";
|
|
|
|
/**
|
|
* XML_STATE = "State" :
|
|
*/
|
|
public static final String XML_STATE = "State";
|
|
|
|
/**
|
|
* XML_LOCALE = "Locale" :
|
|
*/
|
|
public static final String XML_LOCALE = "Locale";
|
|
|
|
/**
|
|
* XML_ATTR_CLASS = "class" :
|
|
*/
|
|
public static final String XML_ATTR_CLASS = "class";
|
|
|
|
/**
|
|
* XML_ATTR_NAME = "name" :
|
|
*/
|
|
public static final String XML_ATTR_NAME = "name";
|
|
|
|
/**
|
|
* XML_ATTR_VALUE = "value" :
|
|
*/
|
|
public static final String XML_ATTR_VALUE = "value";
|
|
|
|
/**
|
|
* XML_ATTR_POLICY = "policy" :
|
|
*/
|
|
public static final String XML_ATTR_POLICY = "policy";
|
|
|
|
/**
|
|
* XML_ATTR_USER_ID = "userId" :
|
|
*/
|
|
public static final String XML_ATTR_USER_ID = "userId";
|
|
|
|
/**
|
|
* XML_ATTR_USERNAME = "username" :
|
|
*/
|
|
public static final String XML_ATTR_USERNAME = "username";
|
|
|
|
/**
|
|
* XML_ATTR_PASSWORD = "password" :
|
|
*/
|
|
public static final String XML_ATTR_PASSWORD = "password";
|
|
|
|
/**
|
|
* XML_PARAM_HASH_ALGORITHM = "hashAlgorithm" :
|
|
*/
|
|
public static final String XML_PARAM_HASH_ALGORITHM = "hashAlgorithm";
|
|
|
|
/**
|
|
* XML_PARAM_MODEL_FILE = "modelXmlFile" :
|
|
*/
|
|
public static final String XML_PARAM_MODEL_FILE = "modelXmlFile";
|
|
|
|
/**
|
|
* XML_PARAM_BASE_PATH = "basePath" :
|
|
*/
|
|
public static final String XML_PARAM_BASE_PATH = "basePath";
|
|
}
|