APISonar


com.haulmont.cuba.security.entity.PermissionType.UI

> com > haulmont > cuba > security > entity > PermissionType > UI
com APIs haulmont APIs cuba APIs security APIs entity APIs PermissionType APIs UI APIs

Example 1
protected Map<String, Object> getParamsForDatasource() {
        Map<String, Object> params = new HashMap<>();

        params.put("role", roleDs.getItem());
        params.put("permissionType", PermissionType.UI);

        return params;
    }
Example 2
private static PermissionType getPermissionType(Permissions permissions) {
        if (permissions instanceof EntityPermissions) {
            return PermissionType.ENTITY_OP;
        } else if (permissions instanceof EntityAttributePermissions) {
            return PermissionType.ENTITY_ATTR;
        } else if (permissions instanceof ScreenPermissions) {
            return PermissionType.SCREEN;
        } else if (permissions instanceof ScreenElementsPermissions) {
            return PermissionType.UI;
        } else if (permissions instanceof SpecificPermissions) {
            return PermissionType.SPECIFIC;
        }
        return null;
    }