Package org.opencustomer.db

Examples of org.opencustomer.db.UserAssigned


    protected void validateAccess(ActionMessages errors, UserVO activeUser, EntityAccess testEntity) {
        if(!EntityAccessUtility.isAccessGranted(activeUser, testEntity, EntityAccess.Access.WRITE_SYSTEM))
            errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("module.generic.pageSystem.error.noRightsLeft"));
       
        if(getPanel().getEntity() instanceof UserAssigned) {
            UserAssigned userAssigned = (UserAssigned)getPanel().getEntity();
           
            if(userAssigned.getAssignedUser() != null && !EntityAccessUtility.isAccessGranted(userAssigned.getAssignedUser(), testEntity, EntityAccess.Access.WRITE))
                errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("module.generic.pageSystem.error.missingWriteAccessForAssignedUser", userAssigned.getAssignedUser().getUserName()));
        }

    }
View Full Code Here

TOP

Related Classes of org.opencustomer.db.UserAssigned

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.