@Exported public class DefaultBuildersFactory extends Object implements BuildersFactory
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
DefaultBuildersFactory(ICS ics) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSessionVariable(String name,
String value) |
void |
addVariable(String name,
String value) |
AssetId |
getAssetId()
Get the current asset id in the scope, for ICS, it will get it from c/cid combinations
|
String |
getCookie(String name) |
void |
logAssetDeps(AssetId... assetIds) |
void |
logDeps(String... deps) |
List<AssetId> |
lookUp(String assetType,
String assetName,
String siteName) |
LinkInfo |
newAssetLinkInfo() |
AssetReader |
newAssetReader() |
BlobLinkInfo |
newBlobLinkInfo() |
EditableTemplateFragment<?> |
newEditableTemplateFragment()
Returns a new
EditableTemplateFragment instance. |
ElementFragment<?> |
newElementFragment()
Returns a new
ElementFragment instance. |
Filter |
newFilter(String left,
BinaryRelationalOperator operator,
String right,
String... more)
Returns a new
Filter which can be used in a search query. |
<F extends Fragment> |
newFragmentList()
Returns an empty list typed for fragments.
|
<F extends EditableTemplateFragment<F>> |
newFragmentList(int initialSize,
F prototype)
Returns a list of the specified size initially filled with fragments based on a prototype fragment.
|
LegacyLinkInfo |
newLegacyAssetLinkInfo() |
LegacyBlobLinkInfo |
newLegacyBlobLinkInfo() |
LinkFactory |
newLinkFactory() |
NavigationReader |
newNavigationReader() |
OrderBuilder.OrderChainBuilder<?> |
newOrderChain(SortDirection direction,
String sortField,
String... more)
Returns a new
OrderBuilder.OrderChainBuilder instance which can be further built upon for creating a list orders for using in a search query. |
OrderBuilder.OrderChainBuilder<?> |
newOrderChain(String sortField,
String... more)
Returns a new
OrderBuilder.OrderChainBuilder instance which can be further built upon for creating a list orders for using in a search query. |
RecommendationReader |
newRecommendationReader() |
Searcher |
newSearcher()
Returns a
Searcher which can be further built upon for creating a search query. |
SiteEntryFragment<?> |
newSiteEntryFragment()
Returns a new
SiteEntryFragment instance. |
oracle.fatwire.api.TableReader |
newTableReader()
Returns a new link TableReader which can be used to query Sites managed tables
|
TemplateFragment<?> |
newTemplateFragment()
Returns a new
TemplateFragment instance. |
void |
removeSessionVariable(String name) |
void |
removeVariable(String name) |
void |
setCookie(String name,
String value,
int timeout,
String url,
String domain,
boolean bSecure) |
public DefaultBuildersFactory(ICS ics)
public AssetId getAssetId()
getAssetId in interface BuildersFactorypublic oracle.fatwire.api.TableReader newTableReader()
newTableReader in interface BuildersFactorypublic Searcher newSearcher()
BuildersFactorySearcher which can be further built upon for creating a search query.newSearcher in interface BuildersFactorySearcher instance.public Filter newFilter(String left, BinaryRelationalOperator operator, String right, String... more)
BuildersFactoryFilter which can be used in a search query.
This filter may be used to build more complex filters (see composite Filter instances).
Once ready, the filter maybe used in a query by invoking the Searcher filter(Filter) method.newFilter in interface BuildersFactoryleft - leftoperator - operatorright - rightmore - moreFilter instance.
see
Filter
FilterBuilder
Searcherpublic OrderBuilder.OrderChainBuilder<?> newOrderChain(String sortField, String... more)
BuildersFactoryOrderBuilder.OrderChainBuilder instance which can be further built upon for creating a list orders for using in a search query.
The Orders instance is obtained by invoking the OrderBuilder.OrderChainBuilder build() method.
This Orders instance can then be used in a query by invoking the Searcher orderBy(Orders) method.
This method is equivalent to invoking newOrderChain(SortDirection.ASCENDING, String, String...).newOrderChain in interface BuildersFactorysortField - sortFieldmore - moreOrderBuilder.OrderChainBuilder instance.Order
Searcherpublic OrderBuilder.OrderChainBuilder<?> newOrderChain(SortDirection direction, String sortField, String... more)
BuildersFactoryOrderBuilder.OrderChainBuilder instance which can be further built upon for creating a list orders for using in a search query.
The Orders instance is obtained by invoking the OrderBuilder.OrderChainBuilder build() method.
This Orders instance can then be used in a query by invoking the Searcher orderBy(Orders) method.newOrderChain in interface BuildersFactorydirection - directionsortField - sortFieldmore - moreOrderBuilder.OrderChainBuilder instance.
see
Orders
Order
Searcherpublic TemplateFragment<?> newTemplateFragment()
BuildersFactoryTemplateFragment instance.newTemplateFragment in interface BuildersFactorypublic EditableTemplateFragment<?> newEditableTemplateFragment()
BuildersFactoryEditableTemplateFragment instance.newEditableTemplateFragment in interface BuildersFactorypublic SiteEntryFragment<?> newSiteEntryFragment()
BuildersFactorySiteEntryFragment instance.newSiteEntryFragment in interface BuildersFactorypublic ElementFragment<?> newElementFragment()
BuildersFactoryElementFragment instance.newElementFragment in interface BuildersFactorypublic <F extends Fragment> List<F> newFragmentList()
BuildersFactorynewFragmentList in interface BuildersFactorypublic <F extends EditableTemplateFragment<F>> List<EditableTemplateFragment<?>> newFragmentList(int initialSize, F prototype)
BuildersFactorynewFragmentList in interface BuildersFactoryF - any subclass of Fragment which can be copied
any subclass of Fragment which can be copied.initialSize - the initial size of the list.
The template based on which the fragments are created and populated into the list.prototype - list containing prototyped fragments.public AssetReader newAssetReader()
newAssetReader in interface BuildersFactorypublic RecommendationReader newRecommendationReader()
newRecommendationReader in interface BuildersFactorypublic NavigationReader newNavigationReader()
newNavigationReader in interface BuildersFactorypublic LinkFactory newLinkFactory()
newLinkFactory in interface BuildersFactorypublic LinkInfo newAssetLinkInfo()
newAssetLinkInfo in interface BuildersFactorypublic BlobLinkInfo newBlobLinkInfo()
newBlobLinkInfo in interface BuildersFactorypublic LegacyLinkInfo newLegacyAssetLinkInfo()
newLegacyAssetLinkInfo in interface BuildersFactorypublic LegacyBlobLinkInfo newLegacyBlobLinkInfo()
newLegacyBlobLinkInfo in interface BuildersFactorypublic void logDeps(String... deps)
logDeps in interface BuildersFactorypublic void logAssetDeps(AssetId... assetIds)
logAssetDeps in interface BuildersFactorypublic void addSessionVariable(String name, String value)
addSessionVariable in interface BuildersFactorypublic void removeSessionVariable(String name)
removeSessionVariable in interface BuildersFactorypublic void addVariable(String name, String value)
addVariable in interface BuildersFactorypublic void removeVariable(String name)
removeVariable in interface BuildersFactorypublic void setCookie(String name, String value, int timeout, String url, String domain, boolean bSecure)
setCookie in interface BuildersFactorypublic String getCookie(String name)
getCookie in interface BuildersFactory