public class AdvancedSearchDialog extends BaseDialogBean
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.
Modifier and Type | Field and Description |
---|---|
protected SearchProperties |
properties |
browseBean, isFinished, navigator, parameters
Constructor and Description |
---|
AdvancedSearchDialog() |
Modifier and Type | Method and Description |
---|---|
void |
addCategory(ActionEvent event)
Action handler called when the Add button is pressed to add the current Category selection
|
void |
expandPanel(ActionEvent event)
Save the state of the progressive panel that was expanded/collapsed
|
protected String |
finishImpl(FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
DataModel |
getCategoriesDataModel()
Returns the properties for current categories JSF DataModel
|
List<SelectItem> |
getContentFormats() |
List<SelectItem> |
getContentTypes() |
String |
getFinishButtonLabel()
Returns the label to use for the finish button
|
List<SelectItem> |
getFolderTypes() |
protected org.alfresco.service.cmr.repository.NodeRef |
getGlobalSearchesRef() |
protected org.alfresco.service.cmr.security.PermissionService |
getPermissionService() |
List<SelectItem> |
getSavedSearches() |
protected org.alfresco.service.cmr.repository.NodeRef |
getUserSearchesRef() |
void |
init(Map<String,String> parameters)
Default constructor
|
boolean |
isAllowEdit() |
void |
removeCategory(ActionEvent event)
Action handler called when the Remove button is pressed to remove a category
|
void |
reset(ActionEvent event)
Handler to clear the advanced search screen form details
|
void |
savedSearchModeChanged(ActionEvent event)
Change the current saved searches list mode based on user selection
|
String |
saveEditSearch()
Action handler called to initiate the saved search screen for Edit
|
String |
saveNewSearch()
Action handler called to initiate the saved search screen for Create
|
String |
search()
Handler to perform a search based on the current criteria
|
void |
selectSearch(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) |
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonDisabled, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, isFinished, restored, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
protected SearchProperties properties
public void init(Map<String,String> 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 DataModel getCategoriesDataModel()
public List<SelectItem> getContentTypes()
public List<SelectItem> getFolderTypes()
public List<SelectItem> getContentFormats()
public void reset(ActionEvent event)
public String search()
public String saveNewSearch()
public String saveEditSearch()
public List<SelectItem> getSavedSearches()
public void savedSearchModeChanged(ActionEvent event)
public void selectSearch(ActionEvent event)
protected org.alfresco.service.cmr.repository.NodeRef getUserSearchesRef()
protected org.alfresco.service.cmr.repository.NodeRef getGlobalSearchesRef()
public void addCategory(ActionEvent event)
public void removeCategory(ActionEvent event)
public void expandPanel(ActionEvent event)
public String getFinishButtonLabel()
IDialogBean
getFinishButtonLabel
in interface IDialogBean
getFinishButtonLabel
in class BaseDialogBean
protected String finishImpl(FacesContext context, String outcome) throws Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomeException
Copyright © 2005–2017 Alfresco Software. All rights reserved.