Class NodeUtils
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.alfresco.NodeUtils
-
public class NodeUtils extends java.lang.ObjectThis is an utility class dedicated to the Alfresco Node Web Services API- Author:
- Piergiorgio Lucidi
-
-
Constructor Summary
Constructors Constructor Description NodeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.alfresco.webservice.types.Nodeget(java.lang.String endpoint, java.lang.String username, java.lang.String password, int socketTimeout, org.alfresco.webservice.util.AuthenticationDetails session, org.alfresco.webservice.types.Predicate predicate)Retrieve a specific instance of a content required in the predicate objectstatic java.lang.StringgetUuidFromNodeReference(java.lang.String nodeReference)Build the UUID starting from the Alfresco node referencestatic java.lang.StringgetVersionLabel(org.alfresco.webservice.types.NamedValue[] properties)static booleanisVersioned(java.lang.String[] aspects)
-
-
-
Method Detail
-
get
public static org.alfresco.webservice.types.Node get(java.lang.String endpoint, java.lang.String username, java.lang.String password, int socketTimeout, org.alfresco.webservice.util.AuthenticationDetails session, org.alfresco.webservice.types.Predicate predicate) throws java.io.IOExceptionRetrieve a specific instance of a content required in the predicate object- Parameters:
username-password-session-predicate-- Returns:
- the Node object instance of the current content
- Throws:
java.io.IOException
-
isVersioned
public static boolean isVersioned(java.lang.String[] aspects)
- Parameters:
aspects-- Returns:
- TRUE if the current node is versioned, otherwise FALSE
-
getVersionLabel
public static java.lang.String getVersionLabel(org.alfresco.webservice.types.NamedValue[] properties)
- Parameters:
properties-- Returns:
- the version label for the current node
-
getUuidFromNodeReference
public static java.lang.String getUuidFromNodeReference(java.lang.String nodeReference)
Build the UUID starting from the Alfresco node reference- Parameters:
nodeReference-- Returns:
- the UUID for the current node
-
-