Class SavedSearchDetails
java.lang.Object
org.alfresco.module.org_alfresco_module_rm.search.ReportDetails
org.alfresco.module.org_alfresco_module_rm.search.SavedSearchDetails
Saved search details.
Example format of posted Saved Search JSON:
{
"siteid" : "rm",
"name": "search name",
"description": "the search description",
"search": "the search sting as entered by the user",
"public": boolean,
"searchparams" :
{
"maxItems" : 500,
"records" : true,
"undeclaredrecords" : false,
"vitalrecords" : false,
"recordfolders" : false,
"frozen" : false,
"cutoff" : false,
"containertypes" :
[
"rma:recordSeries",
"rma:recordCategory"
]
"sort" :
[
{
"field" : "cm:name",
"ascending" : true
}
]
}
}
where: name and query values are mandatory,
searchparams contains the filters, sort, etc information about the query
query is there for backward compatibility
note:
"params": "terms=keywords:xyz&undeclared=true",
"sort": "cm:name/asc"
"query": "the complete search query string",
... are sometimes found in the place of searchparams and are migrated to the new format when re-saved
params are in URL encoded name/value pair format
sort is in comma separated "property/dir" packed format i.e. "cm:name/asc,cm:title/desc"
- Author:
- Roy Wetherall
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.alfresco.module.org_alfresco_module_rm.search.ReportDetails
description, name, search, searchParameters -
Method Summary
Methods inherited from class org.alfresco.module.org_alfresco_module_rm.search.ReportDetails
getDescription, getName, getSearch, getSearchParameters, setDescription, setSearch, setSearchParameters
-
Field Details
-
SITE_ID
- See Also:
-
NAME
- See Also:
-
DESCRIPTION
- See Also:
-
SEARCH
- See Also:
-
PUBLIC
- See Also:
-
REPORT
- See Also:
-
SEARCHPARAMS
- See Also:
-
QUERY
- See Also:
-
SORT
- See Also:
-
PARAMS
- See Also:
-
-
Method Details
-
getSiteId
- Returns:
-
isPublic
public boolean isPublic()- Returns:
-
isReport
public boolean isReport()- Returns:
-
getCompatibility
-
getNodeRef
- Returns:
- NodeRef search node ref, null if not set
-
toJSONString
- Returns:
-