/*
 * Copyright (c) 2015-2017, Index Data
 * All rights reserved.
 * See the file LICENSE for details.
 */
package org.folio.okapi.bean;

import com.fasterxml.jackson.annotation.JsonInclude;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class Permission {
  private String permissionName;
  private String displayName;
  private String description;
  private String[] subPermissions;

  public Permission() {
  }

  public Permission(Permission other) {
    this.permissionName = other.permissionName;
    this.displayName = other.displayName;
    this.description = other.description;
    this.subPermissions = other.subPermissions;
  }

  public String getPermissionName() {
    return permissionName;
  }

  public void setPermissionName(String permissionName) {
    this.permissionName = permissionName;
  }

  public String getDisplayName() {
    return displayName;
  }

  public void setDisplayName(String displayName) {
    this.displayName = displayName;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public String[] getSubPermissions() {
    return subPermissions;
  }

  public void setSubPermissions(String[] subPermissions) {
    this.subPermissions = subPermissions;
  }

}

Add the new class