T
- public abstract class BaseEditorBean<T extends com.liferay.portal.model.BaseModel<T>> extends PermissionsBean implements IFormState
checkEditorInput
method on each and every getter method. The
checkEditorInput
will call the initFields
method when the editor input has changed. This
gives the implementing class the opportunity to (re-)initialize its fields. Furthermore, this class has an dirty
flag, which should be set by any implementing class to keep track of changes in any of the data fields.Modifier and Type | Class and Description |
---|---|
class |
BaseEditorBean.ConfirmationController
The
ConfirmationController is the controller class for the Confirmation Dialog. |
Constructor and Description |
---|
BaseEditorBean() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
cancel()
Cancels the editorInput.
|
static com.liferay.portal.model.BaseModel<?> |
fetchEditorInput()
Fetches the editor input.
|
boolean |
getCanNavigateBack()
Gets the can navigate back.
|
BaseEditorBean.ConfirmationController |
getConfirmationController()
Gets the confirmation dialog controller.
|
java.lang.String |
getDescription()
Gets the description.
|
T |
getEditorInput()
Gets the editor input set for this class.
|
java.lang.String |
getPageInit()
Use this method in the jspx to correctly initialize this bean.
|
java.lang.String |
getPermissionsURL()
getPermissionsURL.
|
java.lang.String |
getTitle()
Gets the title.
|
boolean |
isAddButtonVisible()
Checks if the add button visible.
|
boolean |
isAllowDelete() |
boolean |
isAllowPermissions() |
boolean |
isAllowUpdate() |
boolean |
isAllowView() |
boolean |
isDirty()
Returns true if any of the fields have been changed, false otherwise.
|
boolean |
isEditable()
Checks if is editable.
|
boolean |
isReadOnly()
Checks if the user can update this entity.
|
static void |
passEditorInput(java.lang.Object value)
This method passes the editor input from one view to another.
|
java.lang.String |
permissions()
Go to the edit permissions page form this entity.
|
java.lang.String |
save()
Saves the editorInput.
|
void |
setDescription(java.lang.String description)
Sets the description.
|
void |
setDirty(boolean dirty)
Sets the dirty flag for this bean.
|
void |
setEditorInput(T editorInput)
Sets the editor input for this class.
|
void |
setTitle(java.lang.String title)
Sets the title.
|
void |
valuesChanged(javax.faces.event.ValueChangeEvent event)
Valuechange listener for the valuesChanged action.
|
checkModelPermission, checkModelPermission, checkPortletPermission, checkPortletPermission, getToggleText, isExpanded, toggle
public BaseEditorBean.ConfirmationController getConfirmationController()
public T getEditorInput()
public void setEditorInput(T editorInput)
editorInput
- the new editor input for this classpublic boolean isDirty()
isDirty
in interface IFormState
public void setDirty(boolean dirty)
dirty
- the new dirty valuepublic java.lang.String save()
This method should be hooked to an action
in a ice:CommandButton
or ice:CommandLink
.
public java.lang.String cancel()
action
in a ice:CommandButton
or ice:CommandLink
.public java.lang.String permissions()
public boolean getCanNavigateBack()
public boolean isEditable()
public java.lang.String getPageInit()
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the new titlepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the new descriptionpublic static void passEditorInput(java.lang.Object value)
value
- the editor input to pass aroundpublic static com.liferay.portal.model.BaseModel<?> fetchEditorInput()
public void valuesChanged(javax.faces.event.ValueChangeEvent event)
event
- the eventpublic boolean isAddButtonVisible()
public java.lang.String getPermissionsURL()
public boolean isReadOnly()
public boolean isAllowView()
public boolean isAllowUpdate()
public boolean isAllowDelete()
public boolean isAllowPermissions()