|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.wcm.publication.PublicationUtil
public class PublicationUtil
Created by The eXo Platform SAS Author : Hoa Pham hoa.pham@exoplatform.com Oct 2, 2008
| Field Summary | |
|---|---|
static java.lang.String |
APPLICATION_SEPARATOR
The Constant APPLICATION_SEPARATOR. |
static java.lang.String |
HISTORY_SEPARATOR
The Constant HISTORY_SEPARATOR. |
static java.lang.String |
URI_SEPARATOR
The Constant URI_SEPARATOR. |
| Constructor Summary | |
|---|---|
PublicationUtil()
|
|
| Method Summary | ||
|---|---|---|
static org.exoplatform.portal.config.model.Application |
findAppInstancesById(org.exoplatform.portal.config.model.Container container,
java.lang.String applicationId)
Find app instances by id. |
|
static java.util.List<java.lang.String> |
findAppInstancesByName(org.exoplatform.portal.config.model.Page page,
java.lang.String applicationName)
Find app instances by name. |
|
static java.util.List<org.exoplatform.portal.config.model.PageNode> |
findPageNodeByPageId(org.exoplatform.portal.config.model.PageNavigation nav,
java.lang.String pageId)
Find page node by page id. |
|
static void |
findPageNodeByPageId(org.exoplatform.portal.config.model.PageNode node,
java.lang.String pageId,
java.util.List<org.exoplatform.portal.config.model.PageNode> allPageNode)
Find page node by page id. |
|
static java.util.ArrayList<org.exoplatform.portal.config.model.PageNode> |
getAllPageNodeFromPageNavigation(org.exoplatform.portal.config.model.PageNavigation pageNavigation)
Gets the all page node from page navigation. |
|
static java.util.List<java.lang.String> |
getListApplicationIdByPage(org.exoplatform.portal.config.model.Page page,
java.lang.String portletName)
Gets the list application id by page. |
|
static javax.jcr.Node |
getNodeByApplicationId(java.lang.String applicationId)
Gets the node by application id. |
|
static
|
getServices(java.lang.Class<T> clazz)
Gets the services. |
|
static java.util.List<java.lang.String> |
getValuesAsString(javax.jcr.Node node,
java.lang.String propName)
Gets the values as string. |
|
static boolean |
isNodeContentPublishedToPageNode(javax.jcr.Node contentNode,
java.lang.String navNodeURI)
Checks if is node content published to page node. |
|
static java.lang.String[] |
parseMixedApplicationId(java.lang.String mixedApplicationId)
Parses the mixed application id. |
|
static java.lang.String[] |
parseMixedNavigationUri(java.lang.String mixedNavigationUri)
Parses the mixed navigation uri. |
|
static void |
removeApplicationFromPage(org.exoplatform.portal.config.model.Page page,
java.util.List<java.lang.String> removedApplicationIds)
Removes the application from page. |
|
static java.lang.String |
setMixedApplicationId(java.lang.String pageId,
java.lang.String applicationId)
Sets the mixed application id. |
|
static java.lang.String |
setMixedNavigationUri(java.lang.String portalName,
java.lang.String pageNodeUri)
Sets the mixed navigation uri. |
|
static javax.jcr.Value[] |
toValues(javax.jcr.ValueFactory factory,
java.util.List<java.lang.String> values)
To values. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String HISTORY_SEPARATOR
public static final java.lang.String APPLICATION_SEPARATOR
public static final java.lang.String URI_SEPARATOR
| Constructor Detail |
|---|
public PublicationUtil()
| Method Detail |
|---|
public static java.util.List<org.exoplatform.portal.config.model.PageNode> findPageNodeByPageId(org.exoplatform.portal.config.model.PageNavigation nav,
java.lang.String pageId)
throws java.lang.Exception
nav - the navpageId - the page id
java.lang.Exception - the exception
public static void findPageNodeByPageId(org.exoplatform.portal.config.model.PageNode node,
java.lang.String pageId,
java.util.List<org.exoplatform.portal.config.model.PageNode> allPageNode)
throws java.lang.Exception
node - the nodepageId - the page idallPageNode - the all page node
java.lang.Exception - the exception
public static java.util.List<java.lang.String> findAppInstancesByName(org.exoplatform.portal.config.model.Page page,
java.lang.String applicationName)
page - the pageapplicationName - the application name
public static org.exoplatform.portal.config.model.Application findAppInstancesById(org.exoplatform.portal.config.model.Container container,
java.lang.String applicationId)
container - the containerapplicationId - the application id
public static java.util.List<java.lang.String> getValuesAsString(javax.jcr.Node node,
java.lang.String propName)
throws java.lang.Exception
node - the nodepropName - the prop name
java.lang.Exception - the exception
public static javax.jcr.Value[] toValues(javax.jcr.ValueFactory factory,
java.util.List<java.lang.String> values)
factory - the factoryvalues - the values
public static javax.jcr.Node getNodeByApplicationId(java.lang.String applicationId)
throws java.lang.Exception
applicationId - the application id
java.lang.Exception - the exception
public static void removeApplicationFromPage(org.exoplatform.portal.config.model.Page page,
java.util.List<java.lang.String> removedApplicationIds)
page - the pageremovedApplicationIds - the removed application ids
public static java.util.List<java.lang.String> getListApplicationIdByPage(org.exoplatform.portal.config.model.Page page,
java.lang.String portletName)
page - the pageportletName - the portlet name
public static java.lang.String setMixedNavigationUri(java.lang.String portalName,
java.lang.String pageNodeUri)
portalName - the portal namepageNodeUri - the page node uri
public static java.lang.String[] parseMixedNavigationUri(java.lang.String mixedNavigationUri)
mixedNavigationUri - the mixed navigation uri
public static java.lang.String setMixedApplicationId(java.lang.String pageId,
java.lang.String applicationId)
pageId - the page idapplicationId - the application id
public static java.lang.String[] parseMixedApplicationId(java.lang.String mixedApplicationId)
mixedApplicationId - the mixed application id
public static <T> T getServices(java.lang.Class<T> clazz)
clazz - the clazz
public static boolean isNodeContentPublishedToPageNode(javax.jcr.Node contentNode,
java.lang.String navNodeURI)
throws java.lang.Exception
contentNode - the content nodenavNodeURI - the nav node uri
java.lang.Exception - the exceptionpublic static java.util.ArrayList<org.exoplatform.portal.config.model.PageNode> getAllPageNodeFromPageNavigation(org.exoplatform.portal.config.model.PageNavigation pageNavigation)
pageNavigation - the page navigation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||