|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.platform.archive.web.listener.ejb.ArchiveManagerActionsBean
@Name(value="archiveManagerActions") @Scope(value=CONVERSATION) public class ArchiveManagerActionsBean
Archive manager actions bean.
| Constructor Summary | |
|---|---|
ArchiveManagerActionsBean()
|
|
| Method Summary | |
|---|---|
String |
addArchiveRecord()
Adds a new archive record. |
String |
cancel()
Cancels the process of adding or editing an archive record. |
void |
computeArchiveRecords()
Computes all archive records. |
String |
deleteArchiveRecord()
Deletes an archive record. |
void |
destroy()
|
String |
editArchiveRecord()
Edits an archive record. |
String |
getCommandName1()
Sets the first button command name from the page used to add/edit an archive record. |
String |
getCommandName2()
Sets the second button command name from the page used to add/edit an archive record. |
List<SelectItem> |
getDocumentVersions()
Returns a list of SelectItems with the versions of the current document. |
boolean |
getEditable()
Checks if the page used to add/edit an archive record is editable. |
boolean |
getRequired()
This method is used to mark the fields that are required to be given a value when an archive record is created.This method is mostly used in the xhtml for an archive record. |
ArchiveRecord |
getSelectedArchiveRecord()
Returns the archive record to add/edit. |
boolean |
getShowCreateForm()
Tells if the "add new archive" record button should appear or not. |
String |
getStyle()
Returns the style of the components that appear in the add/edit archive record page. |
void |
initialize()
|
void |
initializeArchiveManager()
|
void |
invalidateArchiveRecords()
Invalidates archive records. |
void |
setCommandName1(String commandName)
Sets the first command button name. |
void |
setCommandName2(String commandName)
Sets the second command button name. |
void |
setEditable(boolean editable)
Sets the page for add/edit archive record as editable or not. |
void |
setRequired(ActionEvent event)
This method is used when the cancel button on the page that is used to add an archive recod, is clicked.This way the user is not asked to give values for the fields that needs to have a value.The 'event' parameter is introduced in the signature of the method in order to be use this method as an 'actionListener' for the 'h:commandButton' tag |
void |
setSelectedArchiveRecord(ArchiveRecord selectedArchiveRecord)
Sets the archive record to add/edit. |
void |
setShowCreateForm(boolean showCreateForm)
|
void |
setStyle(String style)
Sets the style of the components that appear in the add/edit archive record page. |
void |
toggleCreateForm(ActionEvent event)
Used to decide if the add new archive record button should appear or not. |
String |
viewArchiveRecord()
Views an archive record. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArchiveManagerActionsBean()
| Method Detail |
|---|
@PostConstruct public void initialize()
@Destroy public void destroy()
destroy in interface ArchiveManagerActions
@Observer(value="documentSelectionChanged",
create=false)
public void invalidateArchiveRecords()
throws Exception
ArchiveManagerActions
invalidateArchiveRecords in interface ArchiveManagerActionsException
@Begin(join=true)
@Factory(value="archiveRecords")
public void computeArchiveRecords()
throws Exception
ArchiveManagerActions
computeArchiveRecords in interface ArchiveManagerActionsException
public List<SelectItem> getDocumentVersions()
throws Exception
ArchiveManagerActions
getDocumentVersions in interface ArchiveManagerActionsException
public String addArchiveRecord()
throws Exception
ArchiveManagerActions
addArchiveRecord in interface ArchiveManagerActionsException
public String deleteArchiveRecord()
throws Exception
ArchiveManagerActions
deleteArchiveRecord in interface ArchiveManagerActionsException
public String editArchiveRecord()
throws Exception
ArchiveManagerActions
editArchiveRecord in interface ArchiveManagerActionsException
public String viewArchiveRecord()
throws Exception
ArchiveManagerActions
viewArchiveRecord in interface ArchiveManagerActionsExceptionpublic boolean getShowCreateForm()
ArchiveManagerActions
getShowCreateForm in interface ArchiveManagerActionspublic void setShowCreateForm(boolean showCreateForm)
public void toggleCreateForm(ActionEvent event)
ArchiveManagerActions
toggleCreateForm in interface ArchiveManagerActions
public void initializeArchiveManager()
throws Exception
Exceptionpublic ArchiveRecord getSelectedArchiveRecord()
ArchiveManagerActions
getSelectedArchiveRecord in interface ArchiveManagerActionspublic void setSelectedArchiveRecord(ArchiveRecord selectedArchiveRecord)
ArchiveManagerActions
setSelectedArchiveRecord in interface ArchiveManagerActions
public String cancel()
throws Exception
ArchiveManagerActions
cancel in interface ArchiveManagerActionsExceptionpublic boolean getRequired()
ArchiveManagerActions
getRequired in interface ArchiveManagerActionspublic void setRequired(ActionEvent event)
ArchiveManagerActions
setRequired in interface ArchiveManagerActionspublic boolean getEditable()
ArchiveManagerActions
getEditable in interface ArchiveManagerActions- false otherwise
public void setEditable(boolean editable)
ArchiveManagerActions
setEditable in interface ArchiveManagerActionseditable - - if true then the page is editablepublic String getCommandName1()
ArchiveManagerActions
getCommandName1 in interface ArchiveManagerActionspublic void setCommandName1(String commandName)
ArchiveManagerActions
setCommandName1 in interface ArchiveManagerActionscommandName - - the name of the command buttonpublic String getCommandName2()
ArchiveManagerActions
getCommandName2 in interface ArchiveManagerActionspublic void setCommandName2(String commandName)
ArchiveManagerActions
setCommandName2 in interface ArchiveManagerActionscommandName - - the name of the command buttonpublic String getStyle()
ArchiveManagerActions
getStyle in interface ArchiveManagerActionspublic void setStyle(String style)
ArchiveManagerActions
setStyle in interface ArchiveManagerActionsstyle - - the style used for the components of the page
|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||