Examples of updateRole()


Examples of cn.edu.zju.acm.onlinejudge.persistence.AuthorizationPersistence.updateRole()

            roleForm.populate(role);
            return this.handleSuccess(mapping, context, "failure");
        }

        RoleSecurity role = roleForm.toRole();
        authorizationPersistence.updateRole(role, context.getUserProfile().getId());

        if (role.getId() == 1) {
            ContextAdapter.resetDefaultUserSecurity();
        }
        return this.handleSuccess(mapping, context, "success");
View Full Code Here

Examples of com.eforce.baby.auth.dao.RoleDAO.updateRole()

   * @param roleVO
   */
  public void updateRole(String dsName, String dbType, RoleVO roleVOthrows BusinessException, DAOException
  {
    RoleDAO dao = (RoleDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.RoleDAO");
    dao.updateRole(dsName,dbType,roleVO);
  }
 
  /**
   * This is called when search is selected
   * @param dsName
View Full Code Here

Examples of com.eforce.baby.auth.delegates.RoleBD.updateRole()

        HttpSession session = request.getSession();
        SessionUserVO sessUser = (SessionUserVO) session.getAttribute(IConstants.SESSION_ATTR_USER_SESSION_INFO);
        String dsName = sessUser.getDsName();
        String dbType = sessUser.getDbType();

        bd.updateRole(dsName , dbType, roleVO);
        log.debug("Role Updated Successfully !!!");

        request.setAttribute("fwd","/admin/Role.do?target=viewRole&id="+roleVO.getId());
        actionFrwd=mapping.findForward("pop_success");
View Full Code Here

Examples of edu.uga.galileo.voci.model.RoleManager.updateRole()

    // if no errors occurred update role record
    if ((!isErrors) && (fieldMessages.size() == 0)) {
      try {
        User sessionUser = (User) request.getSession().getAttribute(
            "user");
        roleManager.updateRole(new ProjectManager().getProject(command
            .getProject()), sessionUser, role, oldContent);
        // if update was successful send messages....
        request.setAttribute("successMessage",
            "Role successfully updated <span class=\"tinyformtext\">("
                + Calendar.getInstance().getTime().toString()
View Full Code Here

Examples of org.geoserver.security.GeoServerRoleStore.updateRole()

        if (fail)
            Assert.fail(failMessage);
       
        fail=true;
        try {
            store2.updateRole(role_test2);
        } catch (IOException ex) {
            try {
                store2.removeRole(role_test2);
            } catch (IOException ex1) {
                try {
View Full Code Here

Examples of org.geoserver.security.GeoServerRoleStore.updateRole()

            GeoServerRole role = store.getRoleByName(updated.getAuthority());

            role.getProperties().clear();
            role.getProperties().putAll(updated.getProperties());
            store.updateRole(role);

            String parentRoleName = get("form:parent").getDefaultModelObjectAsString();
            if (parentRoleName != null) {
                GeoServerRole parentRole = store.getRoleByName(parentRoleName);
                store.setParentRole(role, parentRole);
View Full Code Here

Examples of org.mifosplatform.commands.service.CommandWrapperBuilder.updateRole()

        } else if (is(commandParam, "unassignRole")) {
            final CommandWrapper commandRequest = builder.unassignRole(groupId, roleId).build();
            result = this.commandsSourceWritePlatformService.logCommandSource(commandRequest);
            return this.toApiJsonSerializer.serialize(result);
        } else if (is(commandParam, "updateRole")) {
            final CommandWrapper commandRequest = builder.updateRole(groupId, roleId).build();
            result = this.commandsSourceWritePlatformService.logCommandSource(commandRequest);
            return this.toApiJsonSerializer.serialize(result);
        } else if (is(commandParam, "transferClients")) {
            final CommandWrapper commandRequest = builder.transferClientsBetweenGroups(groupId).build();
            result = this.commandsSourceWritePlatformService.logCommandSource(commandRequest);
View Full Code Here

Examples of org.mifosplatform.portfolio.group.domain.GroupRole.updateRole()

                CodeValue role = null;
                if (newValue != null) {
                    role = this.codeValueRepository.findOneWithNotFoundDetection(newValue);
                }
                groupRole.updateRole(role);
            }

            if (actualChanges.containsKey(GroupingTypesApiConstants.clientIdParamName)) {
                final Long newValue = command.longValueOfParameterNamed(GroupingTypesApiConstants.clientIdParamName);
View Full Code Here

Examples of org.pentaho.platform.security.userroledao.ws.IUserRoleWebService.updateRole()

    IUserRoleWebService service = getUserRoleWebService();
    ProxyPentahoRole roleObj = new ProxyPentahoRole( "testRole1" );
    roleObj.setDescription( "testUpdateRoleObject" );
    List<String> usernames = new ArrayList<String>();
    try {
      service.updateRole( "testRole1", "testUpdateRoleObject", usernames );
      Assert.fail();
    } catch ( UserRoleException e ) {
      Assert.assertTrue( "ERROR_0001 not found in " + e.getMessage(), e.getMessage().indexOf( "ERROR_0001" ) >= 0 );
    }
View Full Code Here

Examples of org.pentaho.platform.security.userroledao.ws.IUserRoleWebService.updateRole()

    isAdmin = true;

    Assert.assertEquals( "test role", userRoleDao.getRole( null, "testRole1" ).getDescription() );

    service.updateRole( "testRole1", "testUpdateRoleObject", usernames );

    Assert.assertEquals( "testUpdateRoleObject", userRoleDao.getRole( null, "testRole1" ).getDescription() );
  }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.