Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2010-2013 Ning, Inc.
  *
  * Ning licenses this file to you 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 org.killbill.billing.security;
public enum Permission {
    /*
     * Account
     */
    ACCOUNT_CAN_CHARGE("account""charge"),
    ACCOUNT_CAN_CREDIT("account""credit"),
    /*
     * Bundle
     */
    /*
     * Entitlement
     */
    ENTITLEMENT_CAN_CREATE("entitlement""create"),
    /*
     * Invoice
     */
    INVOICE_CAN_CREDIT("invoice""credit"),
    INVOICE_CAN_ADJUST("invoice""adjust"),
    INVOICE_CAN_ITEM_ADJUST("invoice""item_adjust"),
    INVOICE_CAN_DELETE_CBA("invoice""delete_cba"),
    /*
     * Payment
     */
    PAYMENT_CAN_TRIGGER_PAYMENT("payment""trigger"),
    PAYMENT_CAN_REFUND("payment""refund"),
    PAYMENT_CAN_CHARGEBACK("payment""chargeback"),
    PAYMENT_CAN_CREATE_EXTERNAL_PAYMENT("payment""external_payment"),
    /*
     * Tag
     */
    TAG_CAN_CREATE_TAG_DEFINITION("tag""create_tag_definition"),
    TAG_CAN_DELETE_TAG_DEFINITION("tag""delete_tag_definition"),
    TAG_CAN_ADD("tag""add"),
    TAG_CAN_REMOVE("tag""remove");
    private final String group;
    private final String value;
    Permission(final String groupfinal String value) {
        this. = group;
        this. = value;
    }
    public String getGroup() {
        return ;
    }
    public String getValue() {
        return ;
    }
    @Override
    public String toString() {
        return String.format("%s:%s");
    }
New to GrepCode? Check out our FAQ X