Class ContentModelUtils


  • public class ContentModelUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void handleRemoteException​(java.rmi.RemoteException e)  
      static void handleRepositoryFaultException​(org.alfresco.webservice.repository.RepositoryFault e)  
      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.
      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)
      Check if the current node has associated children
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContentModelUtils

        public ContentModelUtils()
    • 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.ManifoldCFException
        Check 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