Java Code Examples for org.jeecg.modules.system.entity.SysPermission#getComponent()
The following examples show how to use
org.jeecg.modules.system.entity.SysPermission#getComponent() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SysPermissionTree.java From jeecg-cloud with Apache License 2.0 | 5 votes |
public SysPermissionTree(SysPermission permission) { this.key = permission.getId(); this.id = permission.getId(); this.perms = permission.getPerms(); this.permsType = permission.getPermsType(); this.component = permission.getComponent(); this.createBy = permission.getCreateBy(); this.createTime = permission.getCreateTime(); this.delFlag = permission.getDelFlag(); this.description = permission.getDescription(); this.icon = permission.getIcon(); this.isLeaf = permission.isLeaf(); this.menuType = permission.getMenuType(); this.name = permission.getName(); this.parentId = permission.getParentId(); this.sortNo = permission.getSortNo(); this.updateBy = permission.getUpdateBy(); this.updateTime = permission.getUpdateTime(); this.redirect = permission.getRedirect(); this.url = permission.getUrl(); this.hidden = permission.isHidden(); this.route = permission.isRoute(); this.keepAlive = permission.isKeepAlive(); this.alwaysShow= permission.isAlwaysShow(); /*update_begin author:wuxianquan date:20190908 for:赋值 */ this.internalOrExternal = permission.isInternalOrExternal(); /*update_end author:wuxianquan date:20190908 for:赋值 */ this.title=permission.getName(); if (!permission.isLeaf()) { this.children = new ArrayList<SysPermissionTree>(); } this.status = permission.getStatus(); }
Example 2
Source File: SysPermissionTree.java From jeecg-boot-with-activiti with MIT License | 5 votes |
public SysPermissionTree(SysPermission permission) { this.key = permission.getId(); this.id = permission.getId(); this.perms = permission.getPerms(); this.permsType = permission.getPermsType(); this.component = permission.getComponent(); this.createBy = permission.getCreateBy(); this.createTime = permission.getCreateTime(); this.delFlag = permission.getDelFlag(); this.description = permission.getDescription(); this.icon = permission.getIcon(); this.isLeaf = permission.isLeaf(); this.menuType = permission.getMenuType(); this.name = permission.getName(); this.parentId = permission.getParentId(); this.sortNo = permission.getSortNo(); this.updateBy = permission.getUpdateBy(); this.updateTime = permission.getUpdateTime(); this.redirect = permission.getRedirect(); this.url = permission.getUrl(); this.hidden = permission.isHidden(); this.route = permission.isRoute(); this.keepAlive = permission.isKeepAlive(); this.alwaysShow= permission.isAlwaysShow(); /*update_begin author:wuxianquan date:20190908 for:赋值 */ this.internalOrExternal = permission.isInternalOrExternal(); /*update_end author:wuxianquan date:20190908 for:赋值 */ this.title=permission.getName(); if (!permission.isLeaf()) { this.children = new ArrayList<SysPermissionTree>(); } this.status = permission.getStatus(); }
Example 3
Source File: SysPermissionTree.java From teaching with Apache License 2.0 | 5 votes |
public SysPermissionTree(SysPermission permission) { this.key = permission.getId(); this.id = permission.getId(); this.perms = permission.getPerms(); this.permsType = permission.getPermsType(); this.component = permission.getComponent(); this.createBy = permission.getCreateBy(); this.createTime = permission.getCreateTime(); this.delFlag = permission.getDelFlag(); this.description = permission.getDescription(); this.icon = permission.getIcon(); this.isLeaf = permission.isLeaf(); this.menuType = permission.getMenuType(); this.name = permission.getName(); this.parentId = permission.getParentId(); this.sortNo = permission.getSortNo(); this.updateBy = permission.getUpdateBy(); this.updateTime = permission.getUpdateTime(); this.redirect = permission.getRedirect(); this.url = permission.getUrl(); this.hidden = permission.isHidden(); this.route = permission.isRoute(); this.keepAlive = permission.isKeepAlive(); this.alwaysShow= permission.isAlwaysShow(); /*update_begin author:wuxianquan date:20190908 for:赋值 */ this.internalOrExternal = permission.isInternalOrExternal(); /*update_end author:wuxianquan date:20190908 for:赋值 */ this.title=permission.getName(); if (!permission.isLeaf()) { this.children = new ArrayList<SysPermissionTree>(); } this.status = permission.getStatus(); }
Example 4
Source File: SysPermissionTree.java From jeecg-boot with Apache License 2.0 | 5 votes |
public SysPermissionTree(SysPermission permission) { this.key = permission.getId(); this.id = permission.getId(); this.perms = permission.getPerms(); this.permsType = permission.getPermsType(); this.component = permission.getComponent(); this.createBy = permission.getCreateBy(); this.createTime = permission.getCreateTime(); this.delFlag = permission.getDelFlag(); this.description = permission.getDescription(); this.icon = permission.getIcon(); this.isLeaf = permission.isLeaf(); this.menuType = permission.getMenuType(); this.name = permission.getName(); this.parentId = permission.getParentId(); this.sortNo = permission.getSortNo(); this.updateBy = permission.getUpdateBy(); this.updateTime = permission.getUpdateTime(); this.redirect = permission.getRedirect(); this.url = permission.getUrl(); this.hidden = permission.isHidden(); this.route = permission.isRoute(); this.keepAlive = permission.isKeepAlive(); this.alwaysShow= permission.isAlwaysShow(); /*update_begin author:wuxianquan date:20190908 for:赋值 */ this.internalOrExternal = permission.isInternalOrExternal(); /*update_end author:wuxianquan date:20190908 for:赋值 */ this.title=permission.getName(); if (!permission.isLeaf()) { this.children = new ArrayList<SysPermissionTree>(); } this.status = permission.getStatus(); }
Example 5
Source File: PermissionDataUtil.java From jeecg-cloud with Apache License 2.0 | 4 votes |
/** * 智能处理错误数据,简化用户失误操作 * * @param permission */ public static SysPermission intelligentProcessData(SysPermission permission) { if (permission == null) { return null; } // 组件 if (oConvertUtils.isNotEmpty(permission.getComponent())) { String component = permission.getComponent(); if (component.startsWith("/")) { component = component.substring(1); } if (component.startsWith("views/")) { component = component.replaceFirst("views/", ""); } if (component.startsWith("src/views/")) { component = component.replaceFirst("src/views/", ""); } if (component.endsWith(".vue")) { component = component.replace(".vue", ""); } permission.setComponent(component); } // 请求URL if (oConvertUtils.isNotEmpty(permission.getUrl())) { String url = permission.getUrl(); if (url.endsWith(".vue")) { url = url.replace(".vue", ""); } if (!url.startsWith("http") && !url.startsWith("/")&&!url.trim().startsWith("{{")) { url = "/" + url; } permission.setUrl(url); } // 一级菜单默认组件 if (0 == permission.getMenuType() && oConvertUtils.isEmpty(permission.getComponent())) { // 一级菜单默认组件 permission.setComponent("layouts/RouteView"); } return permission; }
Example 6
Source File: PermissionDataUtil.java From jeecg-boot-with-activiti with MIT License | 4 votes |
/** * 智能处理错误数据,简化用户失误操作 * * @param permission */ public static SysPermission intelligentProcessData(SysPermission permission) { if (permission == null) { return null; } // 组件 if (oConvertUtils.isNotEmpty(permission.getComponent())) { String component = permission.getComponent(); if (component.startsWith("/")) { component = component.substring(1); } if (component.startsWith("views/")) { component = component.replaceFirst("views/", ""); } if (component.startsWith("src/views/")) { component = component.replaceFirst("src/views/", ""); } if (component.endsWith(".vue")) { component = component.replace(".vue", ""); } permission.setComponent(component); } // 请求URL if (oConvertUtils.isNotEmpty(permission.getUrl())) { String url = permission.getUrl(); if (url.endsWith(".vue")) { url = url.replace(".vue", ""); } if (!url.startsWith("http") && !url.startsWith("/")&&!url.trim().startsWith("{{")) { url = "/" + url; } permission.setUrl(url); } // 一级菜单默认组件 if (0 == permission.getMenuType() && oConvertUtils.isEmpty(permission.getComponent())) { // 一级菜单默认组件 permission.setComponent("layouts/RouteView"); } return permission; }
Example 7
Source File: PermissionDataUtil.java From teaching with Apache License 2.0 | 4 votes |
/** * 智能处理错误数据,简化用户失误操作 * * @param permission */ public static SysPermission intelligentProcessData(SysPermission permission) { if (permission == null) { return null; } // 组件 if (oConvertUtils.isNotEmpty(permission.getComponent())) { String component = permission.getComponent(); if (component.startsWith("/")) { component = component.substring(1); } if (component.startsWith("views/")) { component = component.replaceFirst("views/", ""); } if (component.startsWith("src/views/")) { component = component.replaceFirst("src/views/", ""); } if (component.endsWith(".vue")) { component = component.replace(".vue", ""); } permission.setComponent(component); } // 请求URL if (oConvertUtils.isNotEmpty(permission.getUrl())) { String url = permission.getUrl(); if (url.endsWith(".vue")) { url = url.replace(".vue", ""); } if (!url.startsWith("http") && !url.startsWith("/")&&!url.trim().startsWith("{{")) { url = "/" + url; } permission.setUrl(url); } // 一级菜单默认组件 if (0 == permission.getMenuType() && oConvertUtils.isEmpty(permission.getComponent())) { // 一级菜单默认组件 permission.setComponent("layouts/RouteView"); } return permission; }
Example 8
Source File: PermissionDataUtil.java From jeecg-boot with Apache License 2.0 | 4 votes |
/** * 智能处理错误数据,简化用户失误操作 * * @param permission */ public static SysPermission intelligentProcessData(SysPermission permission) { if (permission == null) { return null; } // 组件 if (oConvertUtils.isNotEmpty(permission.getComponent())) { String component = permission.getComponent(); if (component.startsWith("/")) { component = component.substring(1); } if (component.startsWith("views/")) { component = component.replaceFirst("views/", ""); } if (component.startsWith("src/views/")) { component = component.replaceFirst("src/views/", ""); } if (component.endsWith(".vue")) { component = component.replace(".vue", ""); } permission.setComponent(component); } // 请求URL if (oConvertUtils.isNotEmpty(permission.getUrl())) { String url = permission.getUrl(); if (url.endsWith(".vue")) { url = url.replace(".vue", ""); } if (!url.startsWith("http") && !url.startsWith("/")&&!url.trim().startsWith("{{")) { url = "/" + url; } permission.setUrl(url); } // 一级菜单默认组件 if (0 == permission.getMenuType() && oConvertUtils.isEmpty(permission.getComponent())) { // 一级菜单默认组件 permission.setComponent("layouts/RouteView"); } return permission; }