001/**
002 * Copyright 2014 Tampere University of Technology, Pori Department
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 */
016package service.tut.pori.users;
017
018/**
019 * Definitions for users package.
020 *
021 */
022public final class Definitions {
023  /* elements */
024  /** xml element declaration */
025  public static final String ELEMENT_EXTERNAL_ACCOUNT_CONNECTION_LIST = "externalAccountConnectionList";
026  /** xml element declaration */
027  public static final String ELEMENT_PASSWORD = "password";
028  /** xml element declaration */
029  public static final String ELEMENT_REGISTER_PASSWORD = "registerPassword";
030  /** xml element declaration */
031  public static final String ELEMENT_REGISTRATION = "registration";
032  /** xml element declaration */
033  public static final String ELEMENT_USER_IDENTITY_LIST = "userDetailsList";
034  
035  /* local methods */
036  /** local service method declaration */
037  public static final String METHOD_DELETE_EXTERNAL_ACCOUNT_CONNECTION = "deleteExternalAccountConnection";
038  /** local service method declaration */
039  public static final String METHOD_GET_EXTERNAL_ACCOUNT_CONNECTIONS = "getExternalAccountConnections";
040  /** local service method declaration */
041  public static final String METHOD_GET_USER_DETAILS = "getUserDetails";
042  /** local service method declaration */
043  public static final String METHOD_REGISTER = "register";
044  /** local service method declaration */
045  public static final String METHOD_UNREGISTER = "unregister";
046  
047  /* common */
048  /** value coding separator in randomly generated nonce */
049  protected static final String NONCE_SEPARATOR = ".-.";
050  
051  /* parameters */
052  /** method parameter declaration */
053  public static final String PARAMETER_SERVICE_TYPE = "service_type";
054  /** method parameter declaration */
055  public static final String PARAMETER_USER_ID = "user_id";
056  
057  /* services */
058  /** service name declaration */
059  public static final String SERVICE_USERS = "user";
060  
061  /**
062   * 
063   */
064  private Definitions(){
065    // nothing needed
066  }
067}