Class ContentModelUtils
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.alfresco.ContentModelUtils
-
public class ContentModelUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ContentModelUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidhandleRemoteException(java.rmi.RemoteException e)static voidhandleRepositoryFaultException(org.alfresco.webservice.repository.RepositoryFault e)static booleanisDocument(org.alfresco.webservice.types.NamedValue[] properties)this method checks if a node is a document: verify if exists a property named cm:content.static booleanisFolder(java.lang.String endpoint, java.lang.String username, java.lang.String password, int socketTimeout, org.alfresco.webservice.util.AuthenticationDetails session, org.alfresco.webservice.types.Reference node)Check if the current node has associated children
-
-
-
Method Detail
-
isDocument
public static boolean isDocument(org.alfresco.webservice.types.NamedValue[] properties)
this method checks if a node is a document: verify if exists a property named cm:content. It could be improved to support any property that has a datatype d:content.- Parameters:
properties-- Returns:
- TRUE if the node is a document, otherwise FALSE
-
isFolder
public static boolean isFolder(java.lang.String endpoint, java.lang.String username, java.lang.String password, int socketTimeout, org.alfresco.webservice.util.AuthenticationDetails session, org.alfresco.webservice.types.Reference node) throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionCheck if the current node has associated children- Parameters:
session-node-- Returns:
- TRUE if the reference contains a node that is an Alfresco space, otherwise FALSE
- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
handleRepositoryFaultException
public static void handleRepositoryFaultException(org.alfresco.webservice.repository.RepositoryFault e) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
handleRemoteException
public static void handleRemoteException(java.rmi.RemoteException e) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
-