Package org.alfresco.repo.forms
Class Item
java.lang.Object
org.alfresco.repo.forms.Item
Represents an item a form is generated for.
This class can be augmented with the item's type and a representational URL by the form processor used to process the item.
- Author:
- Gavin Cornwell
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns the identifier of the itemgetKind()Returns the kind of item.getType()Returns the type of the item the form is for, could be a content model type, a workflow task type, an XML schema etc.getUrl()Returns a URL that represents the itemvoidSets the type of the itemvoidSets the URL that represents the itemtoString()
-
Field Details
-
kind
-
id
-
type
-
url
-
-
Constructor Details
-
Item
Constructs an item.- Parameters:
kind- The kind of item, for example, 'node', 'task'id- The identifier of the item
-
-
Method Details
-
getKind
Returns the kind of item.- Returns:
- The kind of item
-
getId
Returns the identifier of the item- Returns:
- The identifier of the item
-
getType
Returns the type of the item the form is for, could be a content model type, a workflow task type, an XML schema etc.- Returns:
- The type of the item
-
getUrl
Returns a URL that represents the item- Returns:
- A URL representing the item
-
setType
Sets the type of the item- Parameters:
type- The type
-
setUrl
Sets the URL that represents the item- Parameters:
url- The URL
-
toString
-