Class ResponseTemplate
java.lang.Object
org.deltava.beans.help.ResponseTemplate
- All Implemented Interfaces:
Serializable,Comparable<ResponseTemplate>,Cacheable
A bean to store Help Desk response templates.
- Since:
- 3.2
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intCompares two templates by comparing their titles.getBody()Returns the response body.getTitle()Returns the template title.inthashCode()voidUpdates the response body.voidUpdates the template title.toString()
-
Constructor Details
-
ResponseTemplate
public ResponseTemplate()
-
-
Method Details
-
getTitle
-
getBody
-
setTitle
Updates the template title.- Parameters:
title- the title- Throws:
NullPointerException- if title is null
-
setBody
-
cacheKey
-
toString
-
hashCode
-
compareTo
Compares two templates by comparing their titles.- Specified by:
compareToin interfaceComparable<ResponseTemplate>
-