MenuItem.java

  1. /*
  2.  * Copyright 2024 Global Crop Diversity Trust
  3.  *
  4.  * Licensed under the Apache License, Version 2.0 (the "License");
  5.  * you may not use this file except in compliance with the License.
  6.  * You may obtain a copy of the License at
  7.  *
  8.  *   http://www.apache.org/licenses/LICENSE-2.0
  9.  *
  10.  * Unless required by applicable law or agreed to in writing, software
  11.  * distributed under the License is distributed on an "AS IS" BASIS,
  12.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13.  * See the License for the specific language governing permissions and
  14.  * limitations under the License.
  15.  */
  16. package org.genesys.server.api.v1.model;

  17. import lombok.Data;
  18. import lombok.NoArgsConstructor;

  19. @Data
  20. @NoArgsConstructor
  21. public class MenuItem {
  22.     private Long id;
  23.     private Integer version;
  24.     private boolean active;
  25.     private float orderIndex;

  26.     /** Destination URL */
  27.     private String url;

  28.     /** Target window */
  29.     private String target;

  30.     /** Menu item display text, a translation code */
  31.     private String text;

  32.     /** Menu item title, a translation code */
  33.     private String title;

  34.     private MenuInfo menu;

  35.     public MenuItem(String url, String text) {
  36.         this.url = url;
  37.         this.text = text;
  38.     }
  39. }