I - id class.R - request class.public interface TNodeProvider<I,R>
TNodeService.| Modifier and Type | Field and Description | 
|---|---|
| static int | SEARCH_DATASearchflag: search data (like labels, properties, etc.). | 
| static int | SEARCH_EXACTSearchflag: enables exact search; default is a not-exact search. | 
| static int | SEARCH_IDSearchflag: search ids. | 
| Modifier and Type | Method and Description | 
|---|---|
| R | createRequest(IDProvider element,
             Map<String,String> properties)Creates a request object. | 
| R | createRequest(UserService userService,
             Map<String,String> properties)Creates a request object. | 
| Class<? extends I> | getIdClass()Returns id class of this provider. | 
| List<TNode<I>> | getNodes(R request,
        Collection<I> ids)Returns objects for the given ids. | 
| Iterable<TNode<I>> | getPath(R request,
       I id)Returns path to root or  nullfor root nodes. | 
| TNode<I> | getRoot(R request)Returns root object. | 
| Iterable<TNode<I>> | search(R request,
      String text,
      int flags)Searches the given  text. | 
static final int SEARCH_ID
Search flag: search ids.static final int SEARCH_DATA
Search flag: search data (like labels, properties, etc.).static final int SEARCH_EXACT
Search flag: enables exact search; default is a not-exact search.R createRequest(@NotNull UserService userService, @Nullable Map<String,String> properties)
userService - current user-service.properties - properties for the provider.R createRequest(@NotNull IDProvider element, @Nullable Map<String,String> properties)
element - current store-element.properties - properties for the provider.@NotNull Class<? extends I> getIdClass()
Id(String) which can be used to
 de-serialize a string represantation created with Id.toString().@NotNull TNode<I> getRoot(@NotNull R request)
request - request.@NotNull List<TNode<I>> getNodes(@NotNull R request, @NotNull Collection<I> ids)
i with 0 <= i < ids.length is
 result[i] == null <=> ids[i] is unknown.request - request.ids - object ids.result[i] == null <=> ids[i] is unknown).@NotNull Iterable<TNode<I>> getPath(@NotNull R request, @NotNull I id)
null for root nodes. The path starts with the node's parent, ..., root node.request - request.id - object id.null for root nodes.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500