Class CustomTool
- java.lang.Object
-
- com.gentics.contentnode.rest.model.response.admin.CustomTool
-
public class CustomTool extends Object
Model of a custom tool
-
-
Constructor Summary
Constructors Constructor Description CustomTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIconUrl()
Optional icon URLint
getId()
Internal IDString
getKey()
Unique key of the toolMap<String,String>
getName()
Name of the Tool in english and germanString
getToolUrl()
Tool URLboolean
isNewtab()
True if the tool shall be opened in a new tabCustomTool
setIconUrl(String iconUrl)
Set icon URLCustomTool
setId(int id)
Set the internal IDCustomTool
setKey(String key)
Set the keyCustomTool
setName(Map<String,String> name)
Set the name in english and germanCustomTool
setNewtab(boolean newtab)
Set newtab flagCustomTool
setToolUrl(String toolUrl)
Set Tool URLString
toString()
-
-
-
Method Detail
-
getId
public int getId()
Internal ID- Returns:
- ID
-
setId
public CustomTool setId(int id)
Set the internal ID- Parameters:
id
- ID- Returns:
- fluent API
-
getKey
public String getKey()
Unique key of the tool- Returns:
- unique key
-
setKey
public CustomTool setKey(String key)
Set the key- Parameters:
key
- key- Returns:
- fluent API
-
getName
public Map<String,String> getName()
Name of the Tool in english and german- Returns:
- name as map
-
setName
public CustomTool setName(Map<String,String> name)
Set the name in english and german- Parameters:
name
- name map- Returns:
- fluent API
-
getToolUrl
public String getToolUrl()
Tool URL- Returns:
- tool URL
-
setToolUrl
public CustomTool setToolUrl(String toolUrl)
Set Tool URL- Parameters:
toolUrl
- tool URL- Returns:
- fluent API
-
getIconUrl
public String getIconUrl()
Optional icon URL- Returns:
- icon URL
-
setIconUrl
public CustomTool setIconUrl(String iconUrl)
Set icon URL- Parameters:
iconUrl
- icon URL- Returns:
- fluent API
-
isNewtab
public boolean isNewtab()
True if the tool shall be opened in a new tab- Returns:
- true for new tab
-
setNewtab
public CustomTool setNewtab(boolean newtab)
Set newtab flag- Parameters:
newtab
- true for new tab- Returns:
- fluent API
-
-