Examples of Authkey


Examples of org.butor.auth.common.auth.AuthKey

  }
  @Override
  @Transactional
  public void createAuth(Context ctx, Auth auth) {
    CommonRequestArgs cra = ctx.getRequest();
    AuthKey key = createAuth(auth, cra);
    ctx.getResponseHandler().addRow(key);
  }
View Full Code Here

Examples of org.butor.auth.common.auth.AuthKey

        }
        dataId = dataDao.insertData(sd, cra);
      }
    }
    auth.setDataId(dataId);
    AuthKey ak = authDao.insertAuth(auth, cra);
    if (ak == null) {
      ApplicationException.exception(CommonMessageID.NOT_FOUND.getMessage().setSysId("sec"));
    }
    return ak;
  }
View Full Code Here

Examples of org.butor.auth.common.auth.AuthKey

  @Override
  @Transactional
  public void updateAuth(Context ctx, Auth auth) {
    CommonRequestArgs cra = ctx.getRequest();
    AuthKey key = updateAuth(auth, cra);
    ctx.getResponseHandler().addRow(key);
  }
View Full Code Here

Examples of org.butor.auth.common.auth.AuthKey

    if (auth.getData() != null && auth.getData().size() == 0) {
      dataId = -1; // no data bundle attached to authorization.
    }
    auth.setDataId(dataId);
    AuthKey ak = authDao.updateAuth(auth, cra);
    if (ak == null) {
      ApplicationException.exception(CommonMessageID.NOT_FOUND.getMessage().setSysId("sec"));
    }
    return ak;
  }
View Full Code Here

Examples of org.butor.auth.common.auth.AuthKey

  public AuthKey updateAuth(Auth auth, CommonRequestArgs cra) {
    UpdateResult ur = update(PROC_UPDATE_AUTH, updateAuthSql, auth, cra);
    if (ur.numberOfRowAffected == 0) {
      ApplicationException.exception(DAOMessageID.UPDATE_FAILURE.getMessage());
    }
    return new AuthKey(auth.getAuthId(), auth.getRevNo() + 1);
  }
View Full Code Here

Examples of org.butor.auth.common.auth.AuthKey

    auth.setRevNo(0);
    UpdateResult ur = insert(PROC_INSERT_AUTH, insertAuthSql, auth, cra);
    if (ur.numberOfRowAffected == 0) {
      ApplicationException.exception(DAOMessageID.INSERT_FAILURE.getMessage());
    }
    return new AuthKey(ur.key.intValue(), 0); //id is int in table
  }
View Full Code Here

Examples of org.butor.auth.common.auth.AuthKey

  public AuthKey updateAuth(Auth auth, CommonRequestArgs cra) {
    UpdateResult ur = update(PROC_UPDATE_AUTH, updateAuthSql, auth, cra);
    if (ur.numberOfRowAffected == 0) {
      ApplicationException.exception(DAOMessageID.UPDATE_FAILURE.getMessage());
    }
    return new AuthKey(auth.getAuthId(), auth.getRevNo() + 1);
  }
View Full Code Here

Examples of org.butor.auth.common.auth.AuthKey

    auth.setRevNo(0);
    UpdateResult ur = insert(PROC_INSERT_AUTH, insertAuthSql, auth, cra);
    if (ur.numberOfRowAffected == 0) {
      ApplicationException.exception(DAOMessageID.INSERT_FAILURE.getMessage());
    }
    return new AuthKey(ur.key.intValue(), 0); //id is int in table
  }
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.