/*******************************************************************************
 * Copyright 2016 Sistcoop, Inc. and/or its affiliates
 * and other contributors as indicated by the @author tags.
 * <p>
 * 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
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * 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 org.openfact.models;

/**
 * @author <a href="mailto:carlosthe19916@sistcoop.com">Carlos Feria</a>
 */
public class AdminRoles {

    public static String APP_SUFFIX = "-organization";

    public static String ADMIN = "admin";

    // for admin each organization
    public static String ORGANIZATION_ADMIN = "organization-admin";

    public static String CREATE_ORGANIZATION = "create-organization";

    public static String VIEW_ORGANIZATION = "view-organization";
    public static String VIEW_INVOICES = "view-invoices";
    public static String VIEW_CREDIT_NOTES = "view-credit-notes";
    public static String VIEW_DEBIT_NOTES = "view-debit-notes";
    public static String VIEW_EVENTS = "view-events";

    public static String MANAGE_ORGANIZATION = "manage-organization";
    public static String MANAGE_INVOICES = "manage-invoices";
    public static String MANAGE_CREDIT_NOTES = "manage-credit-notes";
    public static String MANAGE_DEBIT_NOTES = "manage-debit-notes";
    public static String MANAGE_EVENTS = "manage-events";

    public static String[] ALL_ORGANIZATION_ROLES = {
            /**
             * */
            VIEW_EVENTS, VIEW_INVOICES, VIEW_CREDIT_NOTES, VIEW_DEBIT_NOTES,

            /**
             * */
            MANAGE_ORGANIZATION, MANAGE_INVOICES, MANAGE_CREDIT_NOTES, MANAGE_DEBIT_NOTES, MANAGE_EVENTS};

}

@@ -1079,183 +1079,8 @@
 %22;%0A%0A
-    // for admin each organization%0A    public static String ORGANIZATION_ADMIN = %22organization-admin%22;%0A%0A    public static String CREATE_ORGANIZATION = %22create-organization%22;%0A%0A
     
@@ -1818,22 +1818,28 @@
    VIEW_
-EVENTS
+ORGANIZATION
 , VIEW_I
@@ -1883,16 +1883,29 @@
 T_NOTES,
+ VIEW_EVENTS,
 %0A%0A      

reorder roles