forked from fanruan/design
superman
7 years ago
8 changed files with 59 additions and 168 deletions
@ -1 +1 @@
|
||||
package com.fr.design.roleAuthority;
import com.fr.base.FRContext;
import com.fr.design.gui.itree.refreshabletree.ExpandMutableTreeNode;
import com.fr.design.gui.itree.refreshabletree.loader.ChildrenNodesLoader;
import com.fr.general.Inter;
import java.util.ArrayList;
import java.util.List;
/**
* 将权限细粒度的角色数据包装一下,区分报表平台管理角色和数据决策系统角色
* <p/>
* Author : daisy
* Date: 13-8-30
import java.util.ArrayList;
import java.util.List;
private String roleTypename = null;
/**
roleTypename = roleName;
* <p/>
* Author : daisy
* Date: 13-8-30
import java.util.ArrayList;
import java.util.ArrayList;
import java.util.ArrayList;
import java.util.ArrayList;
import java.util.ArrayList;
import java.util.List;
}
//加载所有的角色列表
public ExpandMutableTreeNode[] load() {
calculateRoleList();
return this.load(this.rolelist);
}
//从workbook中读取的角色列表
public ExpandMutableTreeNode[] load(List<String> rolelist) {
this.rolelist = rolelist;
ExpandMutableTreeNode[] res = new ExpandMutableTreeNode[rolelist.size()];
for (int i = 0; i < res.length; i++) {
res[i] = new ExpandMutableTreeNode(rolelist.get(i));
}
return res;
}
public String getRoleTypename(){
return roleTypename;
}
} |
||||
package com.fr.design.roleAuthority;
import com.fr.base.FRContext;
import com.fr.design.gui.itree.refreshabletree.ExpandMutableTreeNode;
import com.fr.design.gui.itree.refreshabletree.loader.ChildrenNodesLoader;
import com.fr.general.Inter;
import java.util.ArrayList;
import java.util.ArrayList;
/**
import java.util.ArrayList;
* 将权限细粒度的角色数据包装一下,区分报表平台管理角色和数据决策系统角色
import java.util.ArrayList;
* <p/>
import java.util.ArrayList;
* Author : daisy
import java.util.ArrayList;
* Date: 13-8-30
import java.util.List;
import java.util.List;
import java.util.List;
import java.util.ArrayList;
import java.util.List;
import java.util.List;
import java.util.List;
*/
public class RoleDataWrapper implements ChildrenNodesLoader {
import java.util.ArrayList;
/**
import java.util.List;
* <p/>
import java.util.List;
* Author : daisy
import java.util.List;
* Date: 13-8-30
import java.util.ArrayList;
/**
import java.util.ArrayList;
/**
import java.util.ArrayList;
import java.util.List;
*/
private void calculateRoleList() {
try {
Collections.addAll(rolelist, FRContext.getCurrentEnv().getOrganizationOperator().getRoleGroup());
} catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);
}
}
//加载所有的角色列表
public ExpandMutableTreeNode[] load() {
calculateRoleList();
return this.load(this.rolelist);
}
//从workbook中读取的角色列表
public ExpandMutableTreeNode[] load(List<String> rolelist) {
this.rolelist = rolelist;
ExpandMutableTreeNode[] res = new ExpandMutableTreeNode[rolelist.size()];
for (int i = 0; i < res.length; i++) {
res[i] = new ExpandMutableTreeNode(rolelist.get(i));
}
return res;
}
public String getRoleTypename(){
return roleTypename;
}
} |
Loading…
Reference in new issue