Constants.java :  » REST » dyuproject » com » dyuproject » demos » todolist » Java Open Source

Java Open Source » REST » dyuproject 
dyuproject » com » dyuproject » demos » todolist » Constants.java
//========================================================================
//Copyright 2007-2008 David Yu dyuproject@gmail.com
//------------------------------------------------------------------------
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at 
//http://www.apache.org/licenses/LICENSE-2.0
//Unless required by applicable law or agreed to in writing, software
//distributed under the License is distributed on an "AS IS" BASIS,
//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//See the License for the specific language governing permissions and
//limitations under the License.
//========================================================================

package com.dyuproject.demos.todolist;

/**
 * @author David Yu
 * @created May 22, 2008
 */

public class Constants
{
    
    public static final String XML = "xml";
    public static final String JSON = "json";
    
    public static final String TEXT_PLAIN = "text/plain";
    public static final String TEXT_HTML = "text/html";
    public static final String TEXT_XML = "text/xml";
    
    public static final String ID = "id";
    public static final String CALLBACK = "callback";
    public static final String MSG = "msg";
    
    public static final String ACTION = "action";
    public static final String ACTION_EDIT = "Edit";
    public static final String ACTION_CREATE = "New";
    public static final String ACTION_DELETE = "Delete";
    
    public static final String DISABLED = "disabled";
    
    // account constants
    
    public static final String ACCOUNT = "account";
    
    // todos constants
    
    public static final String TODO = "todo";
    public static final String TODOS = "todos";
    
    public static final String TITLE = "title";
    public static final String CONTENT = "content";
    public static final String COMPLETED = "completed";
    
    // users constants
    
    public static final String USER = "user";
    public static final String USERS = "users";
    
    public static final String FIRST_NAME = "firstName";
    public static final String LAST_NAME = "lastName";
    public static final String EMAIL = "email";
    public static final String USERNAME = "username";
    public static final String PASSWORD = "password";
    public static final String CONFIRM_PASSWORD = "confirmPassword";
    public static final String OLD_PASSWORD = "oldPassword";
    public static final String NEW_PASSWORD = "newPassword";
    

    

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.