All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.luoshu.open.id.ui.IdUiViewPermission Maven / Gradle / Ivy

There is a newer version: 0.32
Show newest version
package com.luoshu.open.id.ui;

/**
 * @author inme
 */
public interface IdUiViewPermission {

    PermTypeEnum getPerm();


    public static enum PermTypeEnum{
        SELECT,
        EDIT;

        /**
         *  是否有查询权限
         * @return
         */
        public static boolean hasSelectPerm(PermTypeEnum permTypeEnum){
            return permTypeEnum != null;
        }

        /**
         * 是否有编辑权限
         * @param permTypeEnum
         * @return
         */
        public static boolean hasEditPerm(PermTypeEnum permTypeEnum){
            return EDIT.equals(permTypeEnum);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy