Package org.apache.ofbiz.content.content
Class ContentWorker
- java.lang.Object
-
- org.apache.ofbiz.content.content.ContentWorker
-
- All Implemented Interfaces:
ContentWorkerInterface
public class ContentWorker extends java.lang.Object implements ContentWorkerInterface
ContentWorker Class
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description ContentWorker()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
booleanDataType(java.lang.Object boolObj)
static java.util.Map<java.lang.String,java.lang.Object>
buildPickContext(Delegator delegator, java.lang.String contentAssocTypeId, java.lang.String assocContentId, java.lang.String direction, GenericValue thisContent)
static java.lang.String
callContentPermissionCheck(Delegator delegator, LocalDispatcher dispatcher, java.util.Map<java.lang.String,java.lang.Object> context)
callContentPermissionCheck Formats data for a call to the checkContentPermission service.static java.util.Map<java.lang.String,java.lang.Object>
callContentPermissionCheckResult(Delegator delegator, LocalDispatcher dispatcher, java.util.Map<java.lang.String,java.lang.Object> context)
static void
checkConditions(Delegator delegator, java.util.Map<java.lang.String,java.lang.Object> trailNode, java.util.Map<java.lang.String,java.lang.Object> contentAssoc, java.util.Map<java.lang.String,java.lang.Object> whenMap)
static boolean
checkWhen(java.util.Map<java.lang.String,java.lang.Object> context, java.lang.String whenStr, boolean defaultReturn)
Returns a boolean, result of whenStr evaluation with context.static java.util.List<GenericValue>
csvToContentList(java.lang.String csv, Delegator delegator)
static java.util.List<java.util.List<java.lang.String>>
csvToList(java.lang.String csv, Delegator delegator)
static java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
csvToTrail(java.lang.String csv, Delegator delegator)
static java.lang.String
determineMimeType(Delegator delegator, GenericValue view, GenericValue parentContent, java.lang.String contentId, java.lang.String dataResourceId, java.lang.String parentContentId)
static GenericValue
findAlternateLocaleContent(Delegator delegator, GenericValue view, java.util.Locale locale)
static GenericValue
findContentForRendering(Delegator delegator, java.lang.String contentId, java.util.Locale locale, java.lang.String partyId, java.lang.String roleTypeId, boolean cache)
static java.util.List<GenericValue>
getAssociatedContent(GenericValue currentContent, java.lang.String linkDir, java.util.List<java.lang.String> assocTypes, java.util.List<java.lang.String> contentTypes, java.lang.String fromDate, java.lang.String thruDate)
static java.util.List<GenericValue>
getAssociatedContentView(GenericValue currentContent, java.lang.String linkDir, java.util.List<java.lang.String> assocTypes, java.util.List<java.lang.String> contentTypes, java.lang.String fromDate, java.lang.String thruDate)
static java.util.List<GenericValue>
getAssociations(GenericValue currentContent, java.lang.String linkDir, java.util.List<java.lang.String> assocTypes, java.lang.String strFromDate, java.lang.String strThruDate)
static void
getContentAncestry(Delegator delegator, java.lang.String contentId, java.lang.String contentAssocTypeId, java.lang.String direction, java.util.List<GenericValue> contentAncestorList)
static void
getContentAncestryAll(Delegator delegator, java.lang.String contentId, java.lang.String passedContentTypeId, java.lang.String direction, java.util.List<java.lang.String> contentAncestorList)
static java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
getContentAncestryNodeTrail(Delegator delegator, java.lang.String contentId, java.lang.String contentAssocTypeId, java.lang.String direction)
static java.lang.String
getContentAncestryNodeTrailCsv(Delegator delegator, java.lang.String contentId, java.lang.String contentAssocTypeId, java.lang.String direction)
static void
getContentAncestryValues(Delegator delegator, java.lang.String contentId, java.lang.String contentAssocTypeId, java.lang.String direction, java.util.List<GenericValue> contentAncestorList)
static java.util.List<GenericValue>
getContentAssocsWithId(Delegator delegator, java.lang.String contentId, java.sql.Timestamp fromDate, java.sql.Timestamp thruDate, java.lang.String direction, java.util.List<java.lang.String> assocTypes)
static GenericValue
getContentAssocViewFrom(Delegator delegator, java.lang.String contentIdTo, java.lang.String contentId, java.lang.String contentAssocTypeId, java.lang.String statusId, java.lang.String privilegeEnumId)
static java.util.List<GenericValue>
getContentAssocViewList(Delegator delegator, java.lang.String contentIdTo, java.lang.String contentId, java.lang.String contentAssocTypeId, java.lang.String statusId, java.lang.String privilegeEnumId)
static GenericValue
getContentCache(Delegator delegator, java.lang.String contentId)
static GenericValue
getContentFromView(GenericValue view)
static void
getContentTypeAncestry(Delegator delegator, java.lang.String contentTypeId, java.util.List<java.lang.String> contentTypes)
static GenericValue
getCurrentContent(Delegator delegator, java.util.List<java.util.Map<java.lang.String,? extends java.lang.Object>> trail, GenericValue userLogin, java.util.Map<java.lang.String,java.lang.Object> ctx, java.lang.Boolean nullThruDatesOnly, java.lang.String contentAssocPredicateId)
GenericValue
getCurrentContentExt(Delegator delegator, java.util.List<java.util.Map<java.lang.String,? extends java.lang.Object>> trail, GenericValue userLogin, java.util.Map<java.lang.String,java.lang.Object> ctx, java.lang.Boolean nullThruDatesOnly, java.lang.String contentAssocPredicateId)
static java.lang.String
getMimeTypeId(Delegator delegator, GenericValue view, java.util.Map<java.lang.String,java.lang.Object> ctx)
java.lang.String
getMimeTypeIdExt(Delegator delegator, GenericValue view, java.util.Map<java.lang.String,java.lang.Object> ctx)
static java.util.List<java.lang.Object>
getPurposes(GenericValue content)
static java.util.List<java.lang.Object>
getSections(GenericValue content)
static GenericValue
getSubContent(Delegator delegator, java.lang.String contentId, java.lang.String mapKey, java.lang.String subContentId, GenericValue userLogin, java.util.List<java.lang.String> assocTypes, java.sql.Timestamp fromDate)
static GenericValue
getSubContentCache(Delegator delegator, java.lang.String contentId, java.lang.String mapKey, java.lang.String subContentId, GenericValue userLogin, java.util.List<java.lang.String> assocTypes, java.sql.Timestamp fromDate, java.lang.Boolean nullThruDatesOnly, java.lang.String contentAssocPredicateId)
static GenericValue
getSubContentCache(Delegator delegator, java.lang.String contentId, java.lang.String mapKey, GenericValue userLogin, java.util.List<java.lang.String> assocTypes, java.sql.Timestamp fromDate, java.lang.Boolean nullThruDatesOnly, java.lang.String contentAssocPredicateId)
static java.util.List<java.lang.Object>
getTopics(GenericValue content)
GenericValue
getWebSitePublishPointExt(Delegator delegator, java.lang.String contentId, boolean ignoreCache)
static java.lang.StringBuilder
logList(java.lang.StringBuilder s, java.lang.String lbl, java.util.List<java.lang.Object> lst, java.lang.StringBuilder indent)
static java.lang.String
logList(java.lang.String lbl, java.util.List<java.lang.Object> lst, int indentLevel)
static java.lang.StringBuilder
logMap(java.lang.StringBuilder s, java.lang.String lbl, java.util.Map<java.lang.String,java.lang.Object> map, java.lang.StringBuilder indent)
static java.lang.String
logMap(java.lang.String lbl, java.util.Map<java.lang.String,java.lang.Object> map, int indentLevel)
static java.util.Map<java.lang.String,java.lang.Object>
makeNode(GenericValue thisContent)
static java.lang.String
nodeTrailToCsv(java.util.List<java.util.Map<java.lang.String,? extends java.lang.Object>> nodeTrail)
static java.util.List<java.lang.String>
prepContentPurposeList(java.util.Map<java.lang.String,java.lang.Object> context)
Checks to see if there is a purpose string (delimited by pipes) and turns it into a list and concants to any existing purpose list.static java.lang.String
prepPermissionErrorMsg(java.util.Map<java.lang.String,java.lang.Object> permResults)
static java.util.List<java.lang.String>
prepTargetOperationList(java.util.Map<java.lang.String,? extends java.lang.Object> context, java.lang.String md)
static GenericValue
pullEntityValues(Delegator delegator, java.lang.String entityName, java.util.Map<java.lang.String,java.lang.Object> context)
static void
renderContentAsText(LocalDispatcher dispatcher, java.lang.String contentId, java.lang.Appendable out, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, java.lang.String partyId, java.lang.String roleTypeId, boolean cache)
static java.lang.String
renderContentAsText(LocalDispatcher dispatcher, java.lang.String contentId, java.lang.Appendable out, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, java.lang.String partyId, java.lang.String roleTypeId, boolean cache, java.util.List<GenericValue> webAnalytics)
static java.lang.String
renderContentAsText(LocalDispatcher dispatcher, java.lang.String contentId, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, boolean cache)
static void
renderContentAsText(LocalDispatcher dispatcher, GenericValue content, java.lang.Appendable out, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, boolean cache, java.util.List<GenericValue> webAnalytics)
void
renderContentAsTextExt(LocalDispatcher dispatcher, java.lang.String contentId, java.lang.Appendable out, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, boolean cache)
java.lang.String
renderContentAsTextExt(LocalDispatcher dispatcher, java.lang.String contentId, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, boolean cache)
static void
renderSubContentAsText(LocalDispatcher dispatcher, java.lang.String contentId, java.lang.Appendable out, java.lang.String mapKey, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, boolean cache)
static java.lang.String
renderSubContentAsText(LocalDispatcher dispatcher, java.lang.String contentId, java.lang.String mapKey, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, boolean cache)
void
renderSubContentAsTextExt(LocalDispatcher dispatcher, java.lang.String contentId, java.lang.Appendable out, java.lang.String mapKey, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, boolean cache)
java.lang.String
renderSubContentAsTextExt(LocalDispatcher dispatcher, java.lang.String contentId, java.lang.String mapKey, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, boolean cache)
static void
selectKids(java.util.Map<java.lang.String,java.lang.Object> currentNode, java.util.Map<java.lang.String,java.lang.Object> ctx)
static void
traceNodeTrail(java.lang.String lbl, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> nodeTrail)
static void
traverse(Delegator delegator, GenericValue content, java.sql.Timestamp fromDate, java.sql.Timestamp thruDate, java.util.Map<java.lang.String,java.lang.Object> whenMap, int depthIdx, java.util.Map<java.lang.String,java.lang.Object> masterNode, java.lang.String contentAssocTypeId, java.util.List<GenericValue> pickList, java.lang.String direction)
static boolean
traverseSubContent(java.util.Map<java.lang.String,java.lang.Object> ctx)
-
-
-
Method Detail
-
getWebSitePublishPointExt
public GenericValue getWebSitePublishPointExt(Delegator delegator, java.lang.String contentId, boolean ignoreCache) throws GenericEntityException
- Specified by:
getWebSitePublishPointExt
in interfaceContentWorkerInterface
- Throws:
GenericEntityException
-
getCurrentContentExt
public GenericValue getCurrentContentExt(Delegator delegator, java.util.List<java.util.Map<java.lang.String,? extends java.lang.Object>> trail, GenericValue userLogin, java.util.Map<java.lang.String,java.lang.Object> ctx, java.lang.Boolean nullThruDatesOnly, java.lang.String contentAssocPredicateId) throws GeneralException
- Specified by:
getCurrentContentExt
in interfaceContentWorkerInterface
- Throws:
GeneralException
-
getMimeTypeIdExt
public java.lang.String getMimeTypeIdExt(Delegator delegator, GenericValue view, java.util.Map<java.lang.String,java.lang.Object> ctx)
- Specified by:
getMimeTypeIdExt
in interfaceContentWorkerInterface
-
renderContentAsTextExt
public void renderContentAsTextExt(LocalDispatcher dispatcher, java.lang.String contentId, java.lang.Appendable out, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, boolean cache) throws GeneralException, java.io.IOException
- Specified by:
renderContentAsTextExt
in interfaceContentWorkerInterface
- Throws:
GeneralException
java.io.IOException
-
renderSubContentAsTextExt
public void renderSubContentAsTextExt(LocalDispatcher dispatcher, java.lang.String contentId, java.lang.Appendable out, java.lang.String mapKey, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, boolean cache) throws GeneralException, java.io.IOException
- Specified by:
renderSubContentAsTextExt
in interfaceContentWorkerInterface
- Throws:
GeneralException
java.io.IOException
-
renderSubContentAsTextExt
public java.lang.String renderSubContentAsTextExt(LocalDispatcher dispatcher, java.lang.String contentId, java.lang.String mapKey, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, boolean cache) throws GeneralException, java.io.IOException
- Specified by:
renderSubContentAsTextExt
in interfaceContentWorkerInterface
- Throws:
GeneralException
java.io.IOException
-
renderContentAsTextExt
public java.lang.String renderContentAsTextExt(LocalDispatcher dispatcher, java.lang.String contentId, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, boolean cache) throws GeneralException, java.io.IOException
- Specified by:
renderContentAsTextExt
in interfaceContentWorkerInterface
- Throws:
GeneralException
java.io.IOException
-
findContentForRendering
public static GenericValue findContentForRendering(Delegator delegator, java.lang.String contentId, java.util.Locale locale, java.lang.String partyId, java.lang.String roleTypeId, boolean cache) throws GeneralException, java.io.IOException
- Throws:
GeneralException
java.io.IOException
-
renderContentAsText
public static void renderContentAsText(LocalDispatcher dispatcher, GenericValue content, java.lang.Appendable out, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, boolean cache, java.util.List<GenericValue> webAnalytics) throws GeneralException, java.io.IOException
- Throws:
GeneralException
java.io.IOException
-
renderContentAsText
public static java.lang.String renderContentAsText(LocalDispatcher dispatcher, java.lang.String contentId, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, boolean cache) throws GeneralException, java.io.IOException
- Throws:
GeneralException
java.io.IOException
-
renderContentAsText
public static java.lang.String renderContentAsText(LocalDispatcher dispatcher, java.lang.String contentId, java.lang.Appendable out, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, java.lang.String partyId, java.lang.String roleTypeId, boolean cache, java.util.List<GenericValue> webAnalytics) throws GeneralException, java.io.IOException
- Throws:
GeneralException
java.io.IOException
-
renderContentAsText
public static void renderContentAsText(LocalDispatcher dispatcher, java.lang.String contentId, java.lang.Appendable out, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, java.lang.String partyId, java.lang.String roleTypeId, boolean cache) throws GeneralException, java.io.IOException
- Throws:
GeneralException
java.io.IOException
-
renderSubContentAsText
public static java.lang.String renderSubContentAsText(LocalDispatcher dispatcher, java.lang.String contentId, java.lang.String mapKey, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, boolean cache) throws GeneralException, java.io.IOException
- Throws:
GeneralException
java.io.IOException
-
renderSubContentAsText
public static void renderSubContentAsText(LocalDispatcher dispatcher, java.lang.String contentId, java.lang.Appendable out, java.lang.String mapKey, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.util.Locale locale, java.lang.String mimeTypeId, boolean cache) throws GeneralException, java.io.IOException
- Throws:
GeneralException
java.io.IOException
-
findAlternateLocaleContent
public static GenericValue findAlternateLocaleContent(Delegator delegator, GenericValue view, java.util.Locale locale)
-
traverse
public static void traverse(Delegator delegator, GenericValue content, java.sql.Timestamp fromDate, java.sql.Timestamp thruDate, java.util.Map<java.lang.String,java.lang.Object> whenMap, int depthIdx, java.util.Map<java.lang.String,java.lang.Object> masterNode, java.lang.String contentAssocTypeId, java.util.List<GenericValue> pickList, java.lang.String direction)
-
traverseSubContent
public static boolean traverseSubContent(java.util.Map<java.lang.String,java.lang.Object> ctx)
-
getPurposes
public static java.util.List<java.lang.Object> getPurposes(GenericValue content)
-
getSections
public static java.util.List<java.lang.Object> getSections(GenericValue content)
-
getTopics
public static java.util.List<java.lang.Object> getTopics(GenericValue content)
-
selectKids
public static void selectKids(java.util.Map<java.lang.String,java.lang.Object> currentNode, java.util.Map<java.lang.String,java.lang.Object> ctx)
-
checkWhen
public static boolean checkWhen(java.util.Map<java.lang.String,java.lang.Object> context, java.lang.String whenStr, boolean defaultReturn)
Returns a boolean, result of whenStr evaluation with context. If whenStr is empty return defaultReturn.- Parameters:
context
- AMap
containing initial variableswhenStr
- AString
condition expressiondefaultReturn
- Aboolean
default return value- Returns:
- A
boolan
result of evaluation
-
getAssociatedContent
public static java.util.List<GenericValue> getAssociatedContent(GenericValue currentContent, java.lang.String linkDir, java.util.List<java.lang.String> assocTypes, java.util.List<java.lang.String> contentTypes, java.lang.String fromDate, java.lang.String thruDate) throws GenericEntityException
- Throws:
GenericEntityException
-
getAssociatedContentView
public static java.util.List<GenericValue> getAssociatedContentView(GenericValue currentContent, java.lang.String linkDir, java.util.List<java.lang.String> assocTypes, java.util.List<java.lang.String> contentTypes, java.lang.String fromDate, java.lang.String thruDate) throws GenericEntityException
- Throws:
GenericEntityException
-
getAssociations
public static java.util.List<GenericValue> getAssociations(GenericValue currentContent, java.lang.String linkDir, java.util.List<java.lang.String> assocTypes, java.lang.String strFromDate, java.lang.String strThruDate) throws GenericEntityException
- Throws:
GenericEntityException
-
getContentAssocsWithId
public static java.util.List<GenericValue> getContentAssocsWithId(Delegator delegator, java.lang.String contentId, java.sql.Timestamp fromDate, java.sql.Timestamp thruDate, java.lang.String direction, java.util.List<java.lang.String> assocTypes) throws GenericEntityException
- Throws:
GenericEntityException
-
getContentTypeAncestry
public static void getContentTypeAncestry(Delegator delegator, java.lang.String contentTypeId, java.util.List<java.lang.String> contentTypes) throws GenericEntityException
- Throws:
GenericEntityException
-
getContentAncestry
public static void getContentAncestry(Delegator delegator, java.lang.String contentId, java.lang.String contentAssocTypeId, java.lang.String direction, java.util.List<GenericValue> contentAncestorList) throws GenericEntityException
- Throws:
GenericEntityException
-
getContentAncestryAll
public static void getContentAncestryAll(Delegator delegator, java.lang.String contentId, java.lang.String passedContentTypeId, java.lang.String direction, java.util.List<java.lang.String> contentAncestorList)
-
getContentAncestryNodeTrail
public static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getContentAncestryNodeTrail(Delegator delegator, java.lang.String contentId, java.lang.String contentAssocTypeId, java.lang.String direction) throws GenericEntityException
- Throws:
GenericEntityException
-
getContentAncestryNodeTrailCsv
public static java.lang.String getContentAncestryNodeTrailCsv(Delegator delegator, java.lang.String contentId, java.lang.String contentAssocTypeId, java.lang.String direction) throws GenericEntityException
- Throws:
GenericEntityException
-
getContentAncestryValues
public static void getContentAncestryValues(Delegator delegator, java.lang.String contentId, java.lang.String contentAssocTypeId, java.lang.String direction, java.util.List<GenericValue> contentAncestorList) throws GenericEntityException
- Throws:
GenericEntityException
-
pullEntityValues
public static GenericValue pullEntityValues(Delegator delegator, java.lang.String entityName, java.util.Map<java.lang.String,java.lang.Object> context)
-
callContentPermissionCheck
public static java.lang.String callContentPermissionCheck(Delegator delegator, LocalDispatcher dispatcher, java.util.Map<java.lang.String,java.lang.Object> context)
callContentPermissionCheck Formats data for a call to the checkContentPermission service.
-
callContentPermissionCheckResult
public static java.util.Map<java.lang.String,java.lang.Object> callContentPermissionCheckResult(Delegator delegator, LocalDispatcher dispatcher, java.util.Map<java.lang.String,java.lang.Object> context)
-
getSubContent
public static GenericValue getSubContent(Delegator delegator, java.lang.String contentId, java.lang.String mapKey, java.lang.String subContentId, GenericValue userLogin, java.util.List<java.lang.String> assocTypes, java.sql.Timestamp fromDate) throws java.io.IOException
- Throws:
java.io.IOException
-
getSubContentCache
public static GenericValue getSubContentCache(Delegator delegator, java.lang.String contentId, java.lang.String mapKey, java.lang.String subContentId, GenericValue userLogin, java.util.List<java.lang.String> assocTypes, java.sql.Timestamp fromDate, java.lang.Boolean nullThruDatesOnly, java.lang.String contentAssocPredicateId) throws GenericEntityException
- Throws:
GenericEntityException
-
getSubContentCache
public static GenericValue getSubContentCache(Delegator delegator, java.lang.String contentId, java.lang.String mapKey, GenericValue userLogin, java.util.List<java.lang.String> assocTypes, java.sql.Timestamp fromDate, java.lang.Boolean nullThruDatesOnly, java.lang.String contentAssocPredicateId) throws GenericEntityException
- Throws:
GenericEntityException
-
getContentCache
public static GenericValue getContentCache(Delegator delegator, java.lang.String contentId) throws GenericEntityException
- Throws:
GenericEntityException
-
getCurrentContent
public static GenericValue getCurrentContent(Delegator delegator, java.util.List<java.util.Map<java.lang.String,? extends java.lang.Object>> trail, GenericValue userLogin, java.util.Map<java.lang.String,java.lang.Object> ctx, java.lang.Boolean nullThruDatesOnly, java.lang.String contentAssocPredicateId) throws GeneralException
- Throws:
GeneralException
-
getContentFromView
public static GenericValue getContentFromView(GenericValue view)
-
buildPickContext
public static java.util.Map<java.lang.String,java.lang.Object> buildPickContext(Delegator delegator, java.lang.String contentAssocTypeId, java.lang.String assocContentId, java.lang.String direction, GenericValue thisContent) throws GenericEntityException
- Throws:
GenericEntityException
-
checkConditions
public static void checkConditions(Delegator delegator, java.util.Map<java.lang.String,java.lang.Object> trailNode, java.util.Map<java.lang.String,java.lang.Object> contentAssoc, java.util.Map<java.lang.String,java.lang.Object> whenMap)
-
booleanDataType
public static boolean booleanDataType(java.lang.Object boolObj)
-
prepTargetOperationList
public static java.util.List<java.lang.String> prepTargetOperationList(java.util.Map<java.lang.String,? extends java.lang.Object> context, java.lang.String md)
-
prepContentPurposeList
public static java.util.List<java.lang.String> prepContentPurposeList(java.util.Map<java.lang.String,java.lang.Object> context)
Checks to see if there is a purpose string (delimited by pipes) and turns it into a list and concants to any existing purpose list.- Parameters:
context
- the context- Returns:
- the list of content purpose
-
prepPermissionErrorMsg
public static java.lang.String prepPermissionErrorMsg(java.util.Map<java.lang.String,java.lang.Object> permResults)
-
getContentAssocViewList
public static java.util.List<GenericValue> getContentAssocViewList(Delegator delegator, java.lang.String contentIdTo, java.lang.String contentId, java.lang.String contentAssocTypeId, java.lang.String statusId, java.lang.String privilegeEnumId) throws GenericEntityException
- Throws:
GenericEntityException
-
getContentAssocViewFrom
public static GenericValue getContentAssocViewFrom(Delegator delegator, java.lang.String contentIdTo, java.lang.String contentId, java.lang.String contentAssocTypeId, java.lang.String statusId, java.lang.String privilegeEnumId) throws GenericEntityException
- Throws:
GenericEntityException
-
makeNode
public static java.util.Map<java.lang.String,java.lang.Object> makeNode(GenericValue thisContent)
-
nodeTrailToCsv
public static java.lang.String nodeTrailToCsv(java.util.List<java.util.Map<java.lang.String,? extends java.lang.Object>> nodeTrail)
-
csvToList
public static java.util.List<java.util.List<java.lang.String>> csvToList(java.lang.String csv, Delegator delegator)
-
csvToContentList
public static java.util.List<GenericValue> csvToContentList(java.lang.String csv, Delegator delegator)
-
csvToTrail
public static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> csvToTrail(java.lang.String csv, Delegator delegator)
-
getMimeTypeId
public static java.lang.String getMimeTypeId(Delegator delegator, GenericValue view, java.util.Map<java.lang.String,java.lang.Object> ctx)
-
determineMimeType
public static java.lang.String determineMimeType(Delegator delegator, GenericValue view, GenericValue parentContent, java.lang.String contentId, java.lang.String dataResourceId, java.lang.String parentContentId) throws GenericEntityException
- Throws:
GenericEntityException
-
logMap
public static java.lang.String logMap(java.lang.String lbl, java.util.Map<java.lang.String,java.lang.Object> map, int indentLevel)
-
logMap
public static java.lang.StringBuilder logMap(java.lang.StringBuilder s, java.lang.String lbl, java.util.Map<java.lang.String,java.lang.Object> map, java.lang.StringBuilder indent)
-
logList
public static java.lang.String logList(java.lang.String lbl, java.util.List<java.lang.Object> lst, int indentLevel)
-
logList
public static java.lang.StringBuilder logList(java.lang.StringBuilder s, java.lang.String lbl, java.util.List<java.lang.Object> lst, java.lang.StringBuilder indent)
-
traceNodeTrail
public static void traceNodeTrail(java.lang.String lbl, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> nodeTrail)
-
-