public class PublicationUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_SEPARATOR
The Constant APPLICATION_SEPARATOR.
|
static String |
HISTORY_SEPARATOR
The Constant HISTORY_SEPARATOR.
|
static String |
URI_SEPARATOR
The Constant URI_SEPARATOR.
|
| Constructor and Description |
|---|
PublicationUtil() |
| Modifier and Type | Method and Description |
|---|---|
static StringBuilder |
buildUserNodeURI(org.exoplatform.portal.mop.navigation.NodeContext<?> context) |
static ArrayList<org.exoplatform.portal.mop.navigation.NodeContext<?>> |
convertAllNodeContextToList(org.exoplatform.portal.mop.navigation.NodeContext<?> rootNodeContext) |
static List<String> |
findAppInstancesByName(org.exoplatform.portal.config.model.Page page,
String applicationName)
Find app instances by name.
|
static List<org.exoplatform.portal.mop.user.UserNode> |
findUserNodeByPageId(org.exoplatform.portal.mop.user.UserNode rootNode,
String pageId)
Find user node by page id.
|
static void |
findUserNodeByPageId(org.exoplatform.portal.mop.user.UserNode userNode,
String pageId,
List<org.exoplatform.portal.mop.user.UserNode> allUserNodes)
Find user node by page id.
|
static List<String> |
getListApplicationIdByPage(org.exoplatform.portal.config.model.Page page,
String portletName)
Gets the list application id by page.
|
static List<String> |
getValuesAsString(javax.jcr.Node node,
String propName)
Gets the values as string.
|
static boolean |
isNodeContentPublishedToPageNode(javax.jcr.Node contentNode,
String navNodeURI)
Checks if is node content published to page node.
|
static String[] |
parseMixedApplicationId(String mixedApplicationId)
Parses the mixed application id.
|
static String[] |
parseMixedNavigationUri(String mixedNavigationUri)
Parses the mixed navigation uri.
|
static void |
removeApplicationFromPage(org.exoplatform.portal.config.model.Page page,
List<String> removedApplicationIds)
Removes the application from page.
|
static String |
setMixedApplicationId(String pageId,
String applicationId)
Sets the mixed application id.
|
static String |
setMixedNavigationUri(String portalName,
String pageNodeUri)
Sets the mixed navigation uri.
|
static javax.jcr.Value[] |
toValues(javax.jcr.ValueFactory factory,
List<String> values)
To values.
|
public static final String HISTORY_SEPARATOR
public static final String APPLICATION_SEPARATOR
public static final String URI_SEPARATOR
public static List<org.exoplatform.portal.mop.user.UserNode> findUserNodeByPageId(org.exoplatform.portal.mop.user.UserNode rootNode, String pageId) throws Exception
rootNode - pageId - Exceptionpublic static void findUserNodeByPageId(org.exoplatform.portal.mop.user.UserNode userNode,
String pageId,
List<org.exoplatform.portal.mop.user.UserNode> allUserNodes)
throws Exception
userNode - pageId - allUserNodes - Exceptionpublic static List<String> findAppInstancesByName(org.exoplatform.portal.config.model.Page page, String applicationName)
page - the pageapplicationName - the application namepublic static List<String> getValuesAsString(javax.jcr.Node node, String propName) throws Exception
node - the nodepropName - the prop nameException - the exceptionpublic static javax.jcr.Value[] toValues(javax.jcr.ValueFactory factory,
List<String> values)
factory - the factoryvalues - the valuespublic static void removeApplicationFromPage(org.exoplatform.portal.config.model.Page page,
List<String> removedApplicationIds)
page - the pageremovedApplicationIds - the removed application idspublic static List<String> getListApplicationIdByPage(org.exoplatform.portal.config.model.Page page, String portletName)
page - the pageportletName - the portlet namepublic static String setMixedNavigationUri(String portalName, String pageNodeUri)
portalName - the portal namepageNodeUri - the page node uripublic static String[] parseMixedNavigationUri(String mixedNavigationUri)
mixedNavigationUri - the mixed navigation uripublic static String setMixedApplicationId(String pageId, String applicationId)
pageId - the page idapplicationId - the application idpublic static String[] parseMixedApplicationId(String mixedApplicationId)
mixedApplicationId - the mixed application idpublic static boolean isNodeContentPublishedToPageNode(javax.jcr.Node contentNode,
String navNodeURI)
throws Exception
contentNode - the content nodenavNodeURI - the nav node uriException - the exceptionpublic static ArrayList<org.exoplatform.portal.mop.navigation.NodeContext<?>> convertAllNodeContextToList(org.exoplatform.portal.mop.navigation.NodeContext<?> rootNodeContext)
public static StringBuilder buildUserNodeURI(org.exoplatform.portal.mop.navigation.NodeContext<?> context)
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.