コード例 #1
0
  private OpenAcdQueueGroup createQueueGroup(OpenAcdQueueGroupRestInfoFull queueGroupRestInfo) {
    OpenAcdQueueGroup queueGroup = new OpenAcdQueueGroup();

    // copy fields from rest info
    queueGroup.setName(queueGroupRestInfo.getName());
    queueGroup.setDescription(queueGroupRestInfo.getDescription());

    addLists(queueGroup, queueGroupRestInfo);

    return queueGroup;
  }
コード例 #2
0
  private void updateQueueGroup(
      OpenAcdQueueGroup queueGroup, OpenAcdQueueGroupRestInfoFull queueGroupRestInfo) {
    String tempString;

    // do not allow empty name
    tempString = queueGroupRestInfo.getName();
    if (!tempString.isEmpty()) {
      queueGroup.setName(tempString);
    }

    queueGroup.setDescription(queueGroupRestInfo.getDescription());

    addLists(queueGroup, queueGroupRestInfo);
  }