/*
 * Copyright 2011 DTO Solutions, Inc. (http://dtosolutions.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.
 */

/*
* AuthConstants.java
* 
* User: Greg Schueler <a href="mailto:greg@dtosolutions.com">greg@dtosolutions.com</a>
* Created: 9/1/11 9:20 AM
* 
*/
package com.dtolabs.rundeck.server.authorization;

import java.util.*;

/**
 * AuthConstants is ...
 *
 * @author Greg Schueler <a href="mailto:greg@dtosolutions.com">greg@dtosolutions.com</a>
 */
public class AuthConstants {
    public static final String ACTION_CREATE = "create";
    public static final String ACTION_READ = "read";
    public static final String ACTION_UPDATE = "update";
    public static final String ACTION_DELETE = "delete";
    public static final String ACTION_RUN = "run";
    public static final String ACTION_KILL = "kill";
    public static final String ACTION_ADMIN = "admin";
    public static final String ACTION_REFRESH = "refresh";
    public static final String ACTION_RUNAS = "runAs";
    public static final String ACTION_KILLAS = "killAs";
    public static final String ACTION_CONFIGURE = "configure";
    public static final String ACTION_IMPORT= "import";
    public static final String ACTION_EXPORT= "export";

}

@@ -823,16 +823,82 @@
 ation;%0A%0A
+import com.dtolabs.rundeck.core.authorization.AuthorizationUtil;%0A%0A
 import j
@@ -909,16 +909,16 @@
 util.*;%0A
-
 %0A/**%0A * 
@@ -1725,16 +1725,17 @@
 N_IMPORT
+ 
 = %22impor
@@ -1782,16 +1782,17 @@
 N_EXPORT
+ 
 = %22expor
@@ -1796,10 +1796,967 @@
 port%22;%0A%0A
+    public static final String TYPE_SYSTEM = %22system%22;%0A    public static final String TYPE_NODE = %22node%22;%0A    public static final String TYPE_JOB = %22job%22;%0A    public static final String TYPE_ADHOC = %22adhoc%22;%0A    public static final String TYPE_PROJECT = %22project%22;%0A    public static final String TYPE_EVENT = %22event%22;%0A%0A    private static Map%3CString, String%3E resType(String type) %7B%0A        return Collections.unmodifiableMap(AuthorizationUtil.resourceType(type));%0A    %7D%0A%0A    public static final Map%3CString, String%3E RESOURCE_TYPE_SYSTEM = resType(TYPE_SYSTEM);%0A    public static final Map%3CString, String%3E RESOURCE_TYPE_NODE = resType(TYPE_NODE);%0A    public static final Map%3CString, String%3E RESOURCE_TYPE_JOB = resType(TYPE_JOB);%0A    public static final Map%3CString, String%3E RESOURCE_TYPE_EVENT = resType(TYPE_EVENT);%0A    public static final Map%3CString, String%3E RESOURCE_ADHOC = Collections.unmodifiableMap(AuthorizationUtil%0A            .resource(TYPE_ADHOC));%0A
 %7D%0A

Define constants for resource types and maps