|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryBrowser
Interface which allows pluggable business rules for browsing the Grouper repository. Default implementaions for My, Create, Manage, Join and All browse modes are provided. The appropriate RepositoryBrowser implemenation instance is loaded by the RepositoryBrowserFactory. The default implementations indicated above all extend AbstractRepositoryBowser.
Method Summary | |
---|---|
List |
advancedSearch(GrouperSession s,
String from,
Map attr,
List outTerms)
Advanced search of repository |
Set |
getChildren(String node,
String listField,
int start,
int pageSize,
StringBuffer totalCount,
boolean isFlat,
boolean isForAssignment,
String omitForAssignment,
String context,
HttpServletRequest request)
Given a node return children as appropriate for browse mode |
String |
getFlattenType()
stems or groups - used to create correct screen text |
String |
getInitialStems()
Returns the name of the implementation - if there is one |
List |
getParentStems(GroupOrStem groupOrStem)
Returns a list of parent stems as maps taking account of root node properties |
String |
getRootNode()
Each browse mode can have its own root node. |
void |
init(GrouperSession s,
ResourceBundle navBundle,
ResourceBundle mediaBundle)
Factory method uses no argument constructor. |
boolean |
isFlatCapable()
Does this browse mode have a flat mode i.e. |
boolean |
isHidePreRootNode()
Should the nodes before the root node be hidden? |
List |
search(GrouperSession s,
String query,
String from,
Map attr,
List outTerms)
Search repository and return results as appropriate for the browse mode |
Method Detail |
---|
void init(GrouperSession s, ResourceBundle navBundle, ResourceBundle mediaBundle)
s
- navBundle
- mediaBundle
- Set getChildren(String node, String listField, int start, int pageSize, StringBuffer totalCount, boolean isFlat, boolean isForAssignment, String omitForAssignment, String context, HttpServletRequest request) throws Exception
node
- start
- 0 based start indexpageSize
- totalCount
- isFlat
- isForAssignment
- omitForAssignment
- context
- request
-
Exception
boolean isFlatCapable()
String getFlattenType()
String getRootNode()
boolean isHidePreRootNode()
String getInitialStems()
List getParentStems(GroupOrStem groupOrStem) throws Exception
groupOrStem
-
Exception
List search(GrouperSession s, String query, String from, Map attr, List outTerms) throws Exception
s
- query
- from
- attr
-
Exception
List advancedSearch(GrouperSession s, String from, Map attr, List outTerms) throws Exception
s
- from
- attr
- outTerms
- - empty list used to return info for deriving human readable query
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |