Class NodeUtils


  • public class NodeUtils
    extends java.lang.Object
    This 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.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)
      Retrieve a specific instance of a content required in the predicate object
      static java.lang.String getUuidFromNodeReference​(java.lang.String nodeReference)
      Build the UUID starting from the Alfresco node reference
      static java.lang.String getVersionLabel​(org.alfresco.webservice.types.NamedValue[] properties)  
      static boolean isVersioned​(java.lang.String[] aspects)  
      • Methods inherited from class java.lang.Object

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

      • NodeUtils

        public NodeUtils()
    • 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.IOException
        Retrieve 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