|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.bean.dialog.BaseDialogBean
org.alfresco.web.bean.search.AdvancedSearchDialog
public class AdvancedSearchDialog
Provides the form state and action event handling for the Advanced Search UI.
Integrates with the web-client ConfigService to retrieve configuration of custom meta-data searching fields. Custom fields can be configured to appear in the UI and they are they automatically added to the search query by this bean.
Field Summary | |
---|---|
protected SearchProperties |
properties
|
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean |
---|
browseBean, isFinished, navigator, parameters |
Constructor Summary | |
---|---|
AdvancedSearchDialog()
|
Method Summary | |
---|---|
void |
addCategory(javax.faces.event.ActionEvent event)
Action handler called when the Add button is pressed to add the current Category selection |
void |
expandPanel(javax.faces.event.ActionEvent event)
Save the state of the progressive panel that was expanded/collapsed |
protected java.lang.String |
finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
Performs the actual processing for the wizard. |
javax.faces.model.DataModel |
getCategoriesDataModel()
Returns the properties for current categories JSF DataModel |
java.util.List |
getContentFormats()
|
java.util.List |
getContentTypes()
|
java.lang.String |
getFinishButtonLabel()
Returns the label to use for the finish button |
java.util.List |
getFolderTypes()
|
protected org.alfresco.service.cmr.repository.NodeRef |
getGlobalSearchesRef()
|
protected org.alfresco.service.cmr.security.PermissionService |
getPermissionService()
|
java.util.List |
getSavedSearches()
|
protected org.alfresco.service.cmr.repository.NodeRef |
getUserSearchesRef()
|
void |
init(java.util.Map parameters)
Default constructor |
boolean |
isAllowEdit()
|
void |
removeCategory(javax.faces.event.ActionEvent event)
Action handler called when the Remove button is pressed to remove a category |
void |
reset(javax.faces.event.ActionEvent event)
Handler to clear the advanced search screen form details |
void |
savedSearchModeChanged(javax.faces.event.ActionEvent event)
Change the current saved searches list mode based on user selection |
java.lang.String |
saveEditSearch()
Action handler called to initiate the saved search screen for Edit |
java.lang.String |
saveNewSearch()
Action handler called to initiate the saved search screen for Create |
java.lang.String |
search()
Handler to perform a search based on the current criteria |
void |
selectSearch(javax.faces.event.ActionEvent event)
Action handler called when a saved search is selected by the user |
void |
setAllowEdit(boolean allowEdit)
|
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
|
void |
setProperties(SearchProperties properties)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SearchProperties properties
Constructor Detail |
---|
public AdvancedSearchDialog()
Method Detail |
---|
public void init(java.util.Map parameters)
init
in interface IDialogBean
init
in class BaseDialogBean
parameters
- Map of parameters for the dialogpublic void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
protected org.alfresco.service.cmr.security.PermissionService getPermissionService()
public void setProperties(SearchProperties properties)
public boolean isAllowEdit()
public void setAllowEdit(boolean allowEdit)
allowEdit
- The allow Edit mode to set.public javax.faces.model.DataModel getCategoriesDataModel()
public java.util.List getContentTypes()
public java.util.List getFolderTypes()
public java.util.List getContentFormats()
public void reset(javax.faces.event.ActionEvent event)
public java.lang.String search()
public java.lang.String saveNewSearch()
public java.lang.String saveEditSearch()
public java.util.List getSavedSearches()
public void savedSearchModeChanged(javax.faces.event.ActionEvent event)
public void selectSearch(javax.faces.event.ActionEvent event)
protected org.alfresco.service.cmr.repository.NodeRef getUserSearchesRef()
protected org.alfresco.service.cmr.repository.NodeRef getGlobalSearchesRef()
public void addCategory(javax.faces.event.ActionEvent event)
public void removeCategory(javax.faces.event.ActionEvent event)
public void expandPanel(javax.faces.event.ActionEvent event)
public java.lang.String getFinishButtonLabel()
IDialogBean
getFinishButtonLabel
in interface IDialogBean
getFinishButtonLabel
in class BaseDialogBean
protected java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome) throws java.lang.Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcome
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |