info.magnolia.cms.util
Class WorkspaceXmlUtil

java.lang.Object
  extended by info.magnolia.cms.util.WorkspaceXmlUtil

public class WorkspaceXmlUtil
extends Object

Contains utility methods to check workspace.xml.

Version:
$Id$

Constructor Summary
WorkspaceXmlUtil()
           
 
Method Summary
static List<String> getWorkspaceNames(String xPathExpression, String expectation)
          Create and return list of workspaces names.
static List<String> getWorkspaceNamesMatching(String xPathExpression)
           
static List<String> getWorkspaceNamesWithIndexer()
          Deprecated. since 4.5 - directly use #getWorkspaceNamesMatching(String, String, boolean) instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceXmlUtil

public WorkspaceXmlUtil()
Method Detail

getWorkspaceNamesWithIndexer

public static List<String> getWorkspaceNamesWithIndexer()
Deprecated. since 4.5 - directly use #getWorkspaceNamesMatching(String, String, boolean) instead.


getWorkspaceNamesMatching

public static List<String> getWorkspaceNamesMatching(String xPathExpression)

getWorkspaceNames

public static List<String> getWorkspaceNames(String xPathExpression,
                                             String expectation)
Create and return list of workspaces names. If expectation is not null, all workspace with configs containing entries identified by the xPathExpression will be contained if they match the expectation. If expectation is null, all workspace names with configs that don't contain anything matching the xPathExpression will be returned.

Parameters:
xPathExpression - the xpath expression
expectation - value the matches of the xPathExpression should be compared with - special meaning of 'null': in that case xPathExpression should not be contained!
Returns:
the list of workspace names


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.