Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webapp.contentbrowser
Interface ContentRootsActions

All Superinterfaces:
StatefulBaseLifeCycle
All Known Implementing Classes:
ContentRootsActionsBean

public interface ContentRootsActions
extends StatefulBaseLifeCycle

Provides contentRoot specific actions.

Author:
Narcis Paslaru

Method Summary
 java.lang.String cancel()
           
 void destroy()
           
 java.lang.String display()
           
 java.lang.String editWorkspace()
          Called when user wants to edit a selected document.
 boolean getAdministrator()
           
 java.lang.Boolean getCanAddWorkspaces()
          Indicates if the current user can create a workspace.
 java.util.List<DocumentModel> getContentRootDocuments()
           
 void getSections()
          Gets the sections contained in the selected domain.
 DocModelTableModel getSectionsTableModel()
           
 void getWorkspaces()
          Gets the workspaces contained in the selected domain.
 DocModelTableModel getWorkspacesTableModel()
           
 void initialize()
           
 DocModelTableModel reconstructSectionsTableModel()
           
 DocModelTableModel reconstructWorkspacesTableModel()
           
 void resetContentRootDocuments()
          When the user selects other domains then we nullify the list of content root documents so that the factory method gets called when the list is used.
 void resetTableModel()
          When the user selects other content root documents/domains then we nullify the list of workspace type documents so that the factory method gets called when the list is used.
 void selectAllRows(boolean checked)
           
 java.lang.String selectSection()
          Called when a section DocumentModel is selected.
 java.lang.String selectWorkspace()
          Called when a workspace DocumentModel is selected.
 java.lang.String updateWorkspace()
          Called when the user finishes editing.
 
Methods inherited from interface org.nuxeo.ecm.webapp.base.StatefulBaseLifeCycle
readState, saveState
 

Method Detail

initialize

void initialize()

destroy

@Destroy
void destroy()

display

java.lang.String display()

selectWorkspace

java.lang.String selectWorkspace()
                                 throws ClientException
Called when a workspace DocumentModel is selected. It saves the selected info on the context.

Returns:
the page that is going to be displayed next
Throws:
ClientException

selectSection

java.lang.String selectSection()
                               throws ClientException
Called when a section DocumentModel is selected. It saves the selected info on the context.

Returns:
the page that is going to be displayed next
Throws:
ClientException

editWorkspace

java.lang.String editWorkspace()
                               throws ClientException
Called when user wants to edit a selected document.

Returns:
the edit page
Throws:
ClientException

updateWorkspace

java.lang.String updateWorkspace()
                                 throws ClientException
Called when the user finishes editing.

Returns:
the page after edit
Throws:
ClientException

getWorkspaces

void getWorkspaces()
                   throws ClientException
Gets the workspaces contained in the selected domain.

Throws:
ClientException

getSections

void getSections()
                 throws ClientException
Gets the sections contained in the selected domain.

Throws:
ClientException

getContentRootDocuments

java.util.List<DocumentModel> getContentRootDocuments()
                                                      throws ClientException
Throws:
ClientException

getCanAddWorkspaces

java.lang.Boolean getCanAddWorkspaces()
                                      throws ClientException
Indicates if the current user can create a workspace.

Throws:
ClientException

resetTableModel

void resetTableModel()
When the user selects other content root documents/domains then we nullify the list of workspace type documents so that the factory method gets called when the list is used.

This way we achieve lazy loading of data from backend - only when its needed and not loading it when the event is fired.


resetContentRootDocuments

void resetContentRootDocuments()
When the user selects other domains then we nullify the list of content root documents so that the factory method gets called when the list is used.

This way we achieve lazy loading of data from backend - only when its needed and not loading it when the event is fired.


cancel

java.lang.String cancel()

getWorkspacesTableModel

DocModelTableModel getWorkspacesTableModel()
                                           throws ClientException
Throws:
ClientException

getSectionsTableModel

DocModelTableModel getSectionsTableModel()
                                         throws ClientException
Throws:
ClientException

reconstructWorkspacesTableModel

DocModelTableModel reconstructWorkspacesTableModel()
                                                   throws ClientException
Throws:
ClientException

reconstructSectionsTableModel

DocModelTableModel reconstructSectionsTableModel()
                                                 throws ClientException
Throws:
ClientException

getAdministrator

boolean getAdministrator()

selectAllRows

@WebRemote
void selectAllRows(boolean checked)
                   throws ClientException
Throws:
ClientException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.