Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webapp.edit.vocabularies
Class VocabularyActionsBean

java.lang.Object
  extended by org.nuxeo.ecm.webapp.edit.vocabularies.VocabularyActionsBean
All Implemented Interfaces:
java.io.Serializable, VocabularyActions

Deprecated. use DirectoryUIActionsBean

@Name(value="vocabularyActions")
@Scope(value=CONVERSATION)
@Deprecated
public class VocabularyActionsBean
extends java.lang.Object
implements VocabularyActions

This class is the implementation of an action listener that provides methods for the management of vocabularies.

Author:
Bogdan Tatar
See Also:
Serialized Form

Field Summary
static java.lang.String NULL_MARKER
          Deprecated.  
 
Constructor Summary
VocabularyActionsBean()
          Deprecated.  
 
Method Summary
 java.lang.String addVocabularyEntry()
          Deprecated. Adds an entry to a vocabulary.
 java.lang.String cancel()
          Deprecated. Cancels the process of adding or editing a vocabulary entry.
 java.lang.String clearSearchCriteria()
          Deprecated. Resets the search criteria.
 java.lang.String clearVocabulary()
          Deprecated. Erases all the entries of a vocabulary.
 java.lang.String deleteVocabularyEntry()
          Deprecated. Deletes an entry of a vocabulary.
 void destroy()
          Deprecated.  
 java.lang.String editVocabulary()
          Deprecated. Edits a vocabulary.
 java.lang.String editVocabularyEntry()
          Deprecated. Edit an entry of a vocabulary.
 java.lang.String getCommandName1()
          Deprecated. Sets the first button command name from the page used to add/edit a vocabulary entry.
 java.lang.String getCommandName2()
          Deprecated. Sets the second button command name from the page used to add/edit a vocabulary entry.
 boolean getEditable()
          Deprecated. Decides if the edit or view action was selected.
 java.util.List<javax.faces.model.SelectItem> getParentIds()
          Deprecated. This method is used to populated the select for parent ids.
 VocabularyEntry getSearchCriteria()
          Deprecated. Returns the criteria which is used to perform the search for a vocabulary entries.
 VocabularyEntry getSelectedVocabularyEntry()
          Deprecated. Returns the selected vocabulary entry chosen for modifying actions.
 java.lang.String getSelectedVocabularyName()
          Deprecated. Returns the name of vocabulary chosen by the user to modify.
 boolean getShowAddEntryForm()
          Deprecated. Decides what icon will be rendered for the add entry button.
 java.lang.String getStyle()
          Deprecated. Returns the style depending on the action that was chosen,view or edit.
 java.lang.String getTitle()
          Deprecated. Returns the title that will appear above the list with the entries of a vocabulary.
 void initialize()
          Deprecated. Initializes the vocabulary bean Seam component.
 boolean isHierarchical()
          Deprecated. Checks if the vocabulary is hierarchical (has parents).
 boolean isNullParentAllowed()
          Deprecated. Checks if null parents are allowed.
 void restoreState()
          Deprecated.  
 void saveState()
          Deprecated.  
 java.lang.String searchVocabularyEntries()
          Deprecated. Gets the vocabulary entries searched by the entered criteria.It returns the way to a page, depending on what the search process returns.
 void setCommandName1(java.lang.String commandName)
          Deprecated. Sets the first command button name.
 void setCommandName2(java.lang.String commandName)
          Deprecated. Sets the second command button name.
 void setEditable(boolean editable)
          Deprecated. Sets the boolean which tells if a view or edit action was chosen.
 void setSearchCriteria(VocabularyEntry searchCriteria)
          Deprecated. Performs the search for a vocabulary entries.
 void setSelectedVocabularyEntry(VocabularyEntry entry)
          Deprecated. Sets the vocabulary entry the user is going to use for modifying actions.
 void setSelectedVocabularyName(java.lang.String selectedVocabularyName)
          Deprecated. Sets the name of vocabulary which the user is going to use for modifying actions.
 void setShowAddEntryForm(boolean showAddEntryForm)
          Deprecated.  
 void setStyle(java.lang.String style)
          Deprecated. Sets the style of the page depending on the action that was chosen, view or edit.
 void setTitle(java.lang.String title)
          Deprecated.  
 void toggleAddEntryForm(javax.faces.event.ActionEvent event)
          Deprecated. Used to decide what icon should appear for the add new entry button.
 java.lang.String viewAllVocabularies()
          Deprecated. Initializes the list with all the available vocabularies.
 java.lang.String viewVocabularyEntry()
          Deprecated. Views (does not to edit) the entry of a vocabulary.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_MARKER

public static final java.lang.String NULL_MARKER
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

VocabularyActionsBean

public VocabularyActionsBean()
Deprecated. 
Method Detail

initialize

@Begin(join=true)
@Create
public void initialize()
Deprecated. 
Description copied from interface: VocabularyActions
Initializes the vocabulary bean Seam component.

Specified by:
initialize in interface VocabularyActions

editVocabulary

public java.lang.String editVocabulary()
                                throws ClientException
Deprecated. 
Description copied from interface: VocabularyActions
Edits a vocabulary.

Specified by:
editVocabulary in interface VocabularyActions
Returns:
the page to which to forward after the edit process.
Throws:
ClientException

clearVocabulary

public java.lang.String clearVocabulary()
                                 throws ClientException
Deprecated. 
Description copied from interface: VocabularyActions
Erases all the entries of a vocabulary.

Specified by:
clearVocabulary in interface VocabularyActions
Returns:
the page to which to forward after the clear process.
Throws:
ClientException

addVocabularyEntry

public java.lang.String addVocabularyEntry()
                                    throws ClientException
Deprecated. 
Description copied from interface: VocabularyActions
Adds an entry to a vocabulary.

Specified by:
addVocabularyEntry in interface VocabularyActions
Returns:
the page to which to forward after.
Throws:
ClientException

editVocabularyEntry

public java.lang.String editVocabularyEntry()
Deprecated. 
Description copied from interface: VocabularyActions
Edit an entry of a vocabulary.

Specified by:
editVocabularyEntry in interface VocabularyActions
Returns:
the page to which to forward after.

viewVocabularyEntry

public java.lang.String viewVocabularyEntry()
Deprecated. 
Description copied from interface: VocabularyActions
Views (does not to edit) the entry of a vocabulary.

Specified by:
viewVocabularyEntry in interface VocabularyActions
Returns:
the page to which to forward after.

deleteVocabularyEntry

public java.lang.String deleteVocabularyEntry()
                                       throws ClientException
Deprecated. 
Description copied from interface: VocabularyActions
Deletes an entry of a vocabulary.

Specified by:
deleteVocabularyEntry in interface VocabularyActions
Returns:
the page to which to forward after.
Throws:
ClientException

viewAllVocabularies

public java.lang.String viewAllVocabularies()
                                     throws ClientException
Deprecated. 
Description copied from interface: VocabularyActions
Initializes the list with all the available vocabularies.

Specified by:
viewAllVocabularies in interface VocabularyActions
Returns:
the page to which to forward after.
Throws:
ClientException

getSelectedVocabularyName

public java.lang.String getSelectedVocabularyName()
Deprecated. 
Description copied from interface: VocabularyActions
Returns the name of vocabulary chosen by the user to modify.

Specified by:
getSelectedVocabularyName in interface VocabularyActions
Returns:
- the chosen vocabulary.

setSelectedVocabularyName

public void setSelectedVocabularyName(java.lang.String selectedVocabularyName)
Deprecated. 
Description copied from interface: VocabularyActions
Sets the name of vocabulary which the user is going to use for modifying actions.

Specified by:
setSelectedVocabularyName in interface VocabularyActions

getSelectedVocabularyEntry

public VocabularyEntry getSelectedVocabularyEntry()
Deprecated. 
Description copied from interface: VocabularyActions
Returns the selected vocabulary entry chosen for modifying actions.

Specified by:
getSelectedVocabularyEntry in interface VocabularyActions
Returns:
the selected vocabulary entry.

setSelectedVocabularyEntry

public void setSelectedVocabularyEntry(VocabularyEntry entry)
Deprecated. 
Description copied from interface: VocabularyActions
Sets the vocabulary entry the user is going to use for modifying actions.

Specified by:
setSelectedVocabularyEntry in interface VocabularyActions
Parameters:
entry - - the entry selected for modifying actions.

toggleAddEntryForm

public void toggleAddEntryForm(javax.faces.event.ActionEvent event)
Deprecated. 
Description copied from interface: VocabularyActions
Used to decide what icon should appear for the add new entry button.

Specified by:
toggleAddEntryForm in interface VocabularyActions

getShowAddEntryForm

public boolean getShowAddEntryForm()
Deprecated. 
Description copied from interface: VocabularyActions
Decides what icon will be rendered for the add entry button.

Specified by:
getShowAddEntryForm in interface VocabularyActions
Returns:

setShowAddEntryForm

public void setShowAddEntryForm(boolean showAddEntryForm)
Deprecated. 
Parameters:
showAddEntryForm - The showAddEntryForm to set.

getEditable

public boolean getEditable()
Deprecated. 
Description copied from interface: VocabularyActions
Decides if the edit or view action was selected.

Specified by:
getEditable in interface VocabularyActions
Returns:
true if the view action was selected - false otherwise

setEditable

public void setEditable(boolean editable)
Deprecated. 
Description copied from interface: VocabularyActions
Sets the boolean which tells if a view or edit action was chosen.

Specified by:
setEditable in interface VocabularyActions

getCommandName1

public java.lang.String getCommandName1()
Deprecated. 
Description copied from interface: VocabularyActions
Sets the first button command name from the page used to add/edit a vocabulary entry.

Specified by:
getCommandName1 in interface VocabularyActions
Returns:
the name of the command button

setCommandName1

public void setCommandName1(java.lang.String commandName)
Deprecated. 
Description copied from interface: VocabularyActions
Sets the first command button name.

Specified by:
setCommandName1 in interface VocabularyActions
Parameters:
commandName - the name of the command button

getCommandName2

public java.lang.String getCommandName2()
Deprecated. 
Description copied from interface: VocabularyActions
Sets the second button command name from the page used to add/edit a vocabulary entry.

Specified by:
getCommandName2 in interface VocabularyActions
Returns:
the name of the command button

setCommandName2

public void setCommandName2(java.lang.String commandName)
Deprecated. 
Description copied from interface: VocabularyActions
Sets the second command button name.

Specified by:
setCommandName2 in interface VocabularyActions
Parameters:
commandName - the name of the command button

getStyle

public java.lang.String getStyle()
Deprecated. 
Description copied from interface: VocabularyActions
Returns the style depending on the action that was chosen,view or edit.

Specified by:
getStyle in interface VocabularyActions
Returns:

setStyle

public void setStyle(java.lang.String style)
Deprecated. 
Description copied from interface: VocabularyActions
Sets the style of the page depending on the action that was chosen, view or edit.

Specified by:
setStyle in interface VocabularyActions

cancel

public java.lang.String cancel()
Deprecated. 
Description copied from interface: VocabularyActions
Cancels the process of adding or editing a vocabulary entry.

Specified by:
cancel in interface VocabularyActions
Returns:
where to forward to after canceling

getSearchCriteria

public VocabularyEntry getSearchCriteria()
Deprecated. 
Description copied from interface: VocabularyActions
Returns the criteria which is used to perform the search for a vocabulary entries.

Specified by:
getSearchCriteria in interface VocabularyActions
Returns:
- the criteria used to perform the search.

setSearchCriteria

public void setSearchCriteria(VocabularyEntry searchCriteria)
Deprecated. 
Description copied from interface: VocabularyActions
Performs the search for a vocabulary entries.

Specified by:
setSearchCriteria in interface VocabularyActions
Parameters:
searchCriteria - - the criteria used to meke the search.

clearSearchCriteria

public java.lang.String clearSearchCriteria()
                                     throws ClientException
Deprecated. 
Description copied from interface: VocabularyActions
Resets the search criteria.

Specified by:
clearSearchCriteria in interface VocabularyActions
Throws:
ClientException

searchVocabularyEntries

public java.lang.String searchVocabularyEntries()
                                         throws ClientException
Deprecated. 
Description copied from interface: VocabularyActions
Gets the vocabulary entries searched by the entered criteria.It returns the way to a page, depending on what the search process returns.

Specified by:
searchVocabularyEntries in interface VocabularyActions
Returns:
the corresponding map of the page
Throws:
ClientException

getTitle

public java.lang.String getTitle()
Deprecated. 
Description copied from interface: VocabularyActions
Returns the title that will appear above the list with the entries of a vocabulary.

Specified by:
getTitle in interface VocabularyActions
Returns:
the title

setTitle

public void setTitle(java.lang.String title)
Deprecated. 

getParentIds

public java.util.List<javax.faces.model.SelectItem> getParentIds()
Deprecated. 
Description copied from interface: VocabularyActions
This method is used to populated the select for parent ids.

Specified by:
getParentIds in interface VocabularyActions

saveState

public void saveState()
Deprecated. 

restoreState

public void restoreState()
Deprecated. 

isHierarchical

public boolean isHierarchical()
                       throws DirectoryException
Deprecated. 
Description copied from interface: VocabularyActions
Checks if the vocabulary is hierarchical (has parents).

Specified by:
isHierarchical in interface VocabularyActions
Returns:
true if the vocabulary is hierarchical.
Throws:
DirectoryException

isNullParentAllowed

public boolean isNullParentAllowed()
                            throws DirectoryException
Deprecated. 
Description copied from interface: VocabularyActions
Checks if null parents are allowed.

Specified by:
isNullParentAllowed in interface VocabularyActions
Returns:
true if this is a recursive hierarchical vocabulary.
Throws:
DirectoryException

destroy

@Destroy
public void destroy()
Deprecated. 
Specified by:
destroy in interface VocabularyActions

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.