Package org.sprimaudi.zkspring.entity

Examples of org.sprimaudi.zkspring.entity.UserGrupRole


    public boolean hasRole(String kode) {
//        if (user != null && user.getGrup() != null && user.getGrup().getRolesByGrup() != null) {
        if (roles != null) {
//            List<UserGrupRole> roles = user.getGrup().getRolesByGrup();
            for (Iterator<UserGrupRole> iterator = roles.iterator(); iterator.hasNext(); ) {
                UserGrupRole role = iterator.next();
                if (role.getRole() != null) {
                    if (role.getRole().getKode().equals(kode)) {
                        return true;
                    }
                }
            }
        }
View Full Code Here


        }
    }

    @Listen("onClick=#miRemove")
    public void onRemove(Event evt) {
        UserGrupRole ug = lstGrupRole.getSelectedItem() != null ? lstGrup.getSelectedItem().getValue() != null ? (UserGrupRole) lstGrupRole.getSelectedItem().getValue() : null : null;
        if (ug != null) {
            UserGrup grup = ug.getGrup();
            userService.unAssignRoleOfGrup(ug);
            if (grup != null) {
                prepareRoleList(grup);
            }
        }
View Full Code Here

TOP

Related Classes of org.sprimaudi.zkspring.entity.UserGrupRole

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.