public class MdexContentRequestBroker extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
EVENT_EXECUTE |
protected boolean |
mAuditEnabled |
protected MdexResource |
mMdexResource |
protected NavigationState |
mNavigationState |
protected UserState |
mUserState |
protected static String |
PROFILE_GROUP_PREFIX
Attribute key expected by MDEX to disambiguate ATG profile groups from Endeca user segments.
|
Constructor and Description |
---|
MdexContentRequestBroker(MdexResource pMdexResource,
NavigationState pNavigationState,
UserState pUserState,
boolean pAuditEnabled)
Builds an MDEX Content Request Broker
|
Modifier and Type | Method and Description |
---|---|
List<com.endeca.infront.content.support.AuditContentItem> |
getAuditContents(List<String> pContentPaths,
List<String> pTemplateTypes,
List<String> pTemplateIds,
int pRuleLimit)
This method is for internal Oracle use only and should never be called.
If audit is enabled, returns the audit contents. |
List<com.endeca.infront.content.support.AuditContentItem> |
getAuditContents(String pContentCollection,
int pRuleLimit)
This method is for internal Oracle use only and should never be called.
If audit is enabled, returns the audit contents. |
List<String> |
getContentPaths(List<String> pContentPaths,
List<String> pTemplateTypes,
List<String> pTemplateIds,
int pRuleLimit)
This method is for internal Oracle use only and should never be called.
Query for rule-triggered content paths given list of content paths, template types and template IDs. |
List<String> |
getContentPaths(String pContentCollection,
int pRuleLimit)
This method is for internal Oracle use only and should never be called.
Query for rule-triggered content paths from a specified content collection. |
String |
getRedirectPath()
Returns the keyword redirect path if there is one associated with the user search term
|
boolean |
isAuditEnabled()
This method is for internal Oracle use only and should never be called.
Returns a value indicating whether audit is enabled. |
protected static final String EVENT_EXECUTE
protected final MdexResource mMdexResource
protected final NavigationState mNavigationState
protected final UserState mUserState
protected final boolean mAuditEnabled
protected static final String PROFILE_GROUP_PREFIX
public MdexContentRequestBroker(MdexResource pMdexResource, NavigationState pNavigationState, UserState pUserState, boolean pAuditEnabled)
pMdexResource
- Identifies the MDEX to querypNavigationState
- The navigation statepUserState
- The user segment and date state to use for content queriespAuditEnabled
- True if audit should be enabledpublic boolean isAuditEnabled()
public List<String> getContentPaths(String pContentCollection, int pRuleLimit) throws ContentException
pContentCollection
- the ID of the content collectionpRuleLimit
- an upper bound on the length of the content list returned by this method.
If this value is less than one, there is no limit.ContentException
- if an error in the system prevents access to the contentpublic String getRedirectPath() throws ContentException
ContentException
- if an error in the system prevents access to the contentpublic List<String> getContentPaths(List<String> pContentPaths, List<String> pTemplateTypes, List<String> pTemplateIds, int pRuleLimit) throws ContentException
pContentPaths
- a list of content pathspTemplateTypes
- a list of the accepted template typespTemplateIds
- a list of the accepted template idspRuleLimit
- an upper bound on the length of the content list returned by this method.ContentException
- if an error in the system prevents access to the contentpublic List<com.endeca.infront.content.support.AuditContentItem> getAuditContents(String pContentCollection, int pRuleLimit) throws ContentException
pContentCollection
- the ID of the desired content collectionnull
.ContentException
public List<com.endeca.infront.content.support.AuditContentItem> getAuditContents(List<String> pContentPaths, List<String> pTemplateTypes, List<String> pTemplateIds, int pRuleLimit) throws ContentException
pContentPaths
- a list of paths where content is to be drawn frompTemplateTypes
- a list of the accepted template typespTemplateIds
- a list of the accepted template idspRuleLimit
- upper bound on number of rules returned. All content that
triggers subsequently shows up in Audit as "Not Fired".null
.ContentException
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.