public class ServerSearchFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
<C extends CidsServerSearch> |
findSearchParameterReadMethods(Class<C> serverSearchClass)
Helper method that introspects a CidsServerSearch Class and returns a map with all read methods for all readable
and writable properties that correspond to the search parameters.
|
<C extends CidsServerSearch> |
findSearchParameters(Class<C> serverSearchClass)
Helper method that introspects a CidsServerSearch Class and returns a map with all readable and writable
properties that correspond to the search parameters.
|
<C extends CidsServerSearch> |
findSearchParameterWriteMethods(Class<C> serverSearchClass)
Helper method that introspects a CidsServerSearch Class and returns a map with all write methods for all readable
and writable properties that correspond to the search parameters.
|
static ServerSearchFactory |
getFactory()
DOCUMENT ME!
|
Class<? extends CidsServerSearch> |
getServerSearchClass(String searchKey)
Tries to find a cached CidsServerSearch class for the specified cids server search key.
|
de.cismet.cidsx.server.api.types.SearchInfo |
getServerSearchInfo(String searchKey)
Tries to find a cached SearchInfo object of the specified cids server search.
|
List<de.cismet.cidsx.server.api.types.SearchInfo> |
getServerSearchInfos()
Returns all cached ServerSearchInfos.
|
List<com.fasterxml.jackson.databind.JsonNode> |
jsonNodesFromResultCollection(Collection searchResults,
de.cismet.cidsx.server.api.types.SearchInfo searchInfo,
ClassNameCache classNameCache)
Converts a java.lang.Object collection search result to JSON Objects (ObjectNodes).
|
Collection |
resultCollectionfromJsonNodes(List<com.fasterxml.jackson.databind.JsonNode> jsonNodes,
de.cismet.cidsx.server.api.types.SearchInfo searchInfo)
Converts a Jackson ObjectNode search result collection to the respective Java Objects.
|
de.cismet.cidsx.server.api.types.SearchInfo |
searchInfoFromCidsServerSearch(CidsServerSearch cidsServerSearch)
Inspects a CidsServerSearch Instance and tries to automatically serive a proper SearchInfo object.
|
de.cismet.cidsx.server.api.types.SearchParameters |
searchParametersFromServerSearchInstance(String searchKey,
CidsServerSearch cidsServerSearch)
Extracts Search Parameters from a CidsServerSearch Search object.
|
CidsServerSearch |
serverSearchInstanceFromSearchParameters(de.cismet.cidsx.server.api.types.SearchInfo searchInfo,
List<de.cismet.cidsx.server.api.types.SearchParameter> searchParameters)
Populates an instance of a CidsServerSearch with parameters from the searchParameters object.
|
public static final ServerSearchFactory getFactory()
public de.cismet.cidsx.server.api.types.SearchInfo searchInfoFromCidsServerSearch(CidsServerSearch cidsServerSearch)
cidsServerSearch - server search to be inspectedpublic de.cismet.cidsx.server.api.types.SearchInfo getServerSearchInfo(String searchKey)
searchKey - the search key (e.g.java class name) of the searchpublic List<de.cismet.cidsx.server.api.types.SearchInfo> getServerSearchInfos()
public Class<? extends CidsServerSearch> getServerSearchClass(String searchKey)
searchKey - key (e.g. class name) of the server searchpublic CidsServerSearch serverSearchInstanceFromSearchParameters(de.cismet.cidsx.server.api.types.SearchInfo searchInfo, List<de.cismet.cidsx.server.api.types.SearchParameter> searchParameters) throws Exception
searchInfo - meta information about a the CidsServerSearchsearchParameters - search parameters that are set in the instanceException - if a parameter could not be setpublic de.cismet.cidsx.server.api.types.SearchParameters searchParametersFromServerSearchInstance(String searchKey, CidsServerSearch cidsServerSearch) throws Exception
searchKey - DOCUMENT ME!cidsServerSearch - DOCUMENT ME!Exception - DOCUMENT ME!public Collection resultCollectionfromJsonNodes(List<com.fasterxml.jackson.databind.JsonNode> jsonNodes, de.cismet.cidsx.server.api.types.SearchInfo searchInfo) throws Exception
lightweightMetaObjectFromCidsBean(de.cismet.cids.dynamics.CidsBean, int, java.lang.String, Sirius.server.newuser.User, de.cismet.cids.server.api.types.legacy.ClassNameCache)jsonNodes - JSON object nodes to be convertedsearchInfo - meta information needed for the type conversionException - if any error occurs during the conversionpublic List<com.fasterxml.jackson.databind.JsonNode> jsonNodesFromResultCollection(Collection searchResults, de.cismet.cidsx.server.api.types.SearchInfo searchInfo, ClassNameCache classNameCache) throws Exception
)searchResults - DOCUMENT ME!searchInfo - DOCUMENT ME!classNameCache - DOCUMENT ME!Exception - DOCUMENT ME!public <C extends CidsServerSearch> Map<String,Class> findSearchParameters(Class<C> serverSearchClass) throws IntrospectionException
C - DOCUMENT ME!serverSearchClass - server search class to be introspectedIntrospectionException - if the server search class could not be introspectedpublic <C extends CidsServerSearch> Map<String,Method> findSearchParameterReadMethods(Class<C> serverSearchClass) throws IntrospectionException
C - Class that extends CidsServerSearchserverSearchClass - server search class to be introspectedIntrospectionException - if the server search class could not be introspectedpublic <C extends CidsServerSearch> Map<String,Method> findSearchParameterWriteMethods(Class<C> serverSearchClass) throws IntrospectionException
C - Class that extends CidsServerSearchserverSearchClass - server search class to be introspectedIntrospectionException - if the server search class could not be introspectedCopyright © 2012–2026 cismet GmbH. All rights reserved.