DATA_TYPE - Type of Datapublic class NavigationItemTO<DATA_TYPE extends NavigationItemDataTO> extends Object implements Serializable
| Constructor and Description |
|---|
NavigationItemTO() |
| Modifier and Type | Method and Description |
|---|---|
static NavigationItemTO<NavigationItemDataTO> |
clone(NavigationItemTO<NavigationItemDataTO> item)
Clone the provided navigation item TO.
|
DATA_TYPE |
getData() |
String |
getDataAsJson() |
Long |
getId() |
int |
getIndex() |
Date |
getLastAccessDate() |
String |
getName() |
void |
setData(DATA_TYPE data)
Sets the data.
|
void |
setDataAsJson(String dataAsJson)
Note: Use setData when you want to update the entity.
|
void |
setId(Long id) |
void |
setIndex(int index) |
void |
setLastAccessDate(Date lastAccessDate) |
void |
setName(String name) |
String |
toString() |
public static NavigationItemTO<NavigationItemDataTO> clone(NavigationItemTO<NavigationItemDataTO> item)
item - the item to clonepublic DATA_TYPE getData()
public String getDataAsJson()
public Long getId()
public int getIndex()
public Date getLastAccessDate()
public String getName()
public void setData(DATA_TYPE data)
data - The data to set.public void setDataAsJson(String dataAsJson)
dataAsJson - The data as plain text json.public void setId(Long id)
id - of the item.public void setIndex(int index)
public void setLastAccessDate(Date lastAccessDate)
public void setName(String name)
name - Name of this item.Copyright © 2019 Communote team. All rights reserved.