Class ActiveDocumentExtension

java.lang.Object
com._1c.g5.v8.dt.activedocument.model.ActiveDocumentExtension

public class ActiveDocumentExtension extends Object
Operation implementations for EClass ActiveDocument
  • Constructor Details

    • ActiveDocumentExtension

      public ActiveDocumentExtension()
  • Method Details

    • getContent

      public static InputStream getContent(ActiveDocument activeDocument)
      Gets the contents of the specified ActiveDocument instance.
      Parameters:
      activeDocument - The ActiveDocument instance. May not be null.
      Returns:
      an InputStream instance providing the content. Never null.
    • setContent

      public static void setContent(ActiveDocument activeDocument, InputStream content)
      Sets the contents of the specified ActiveDocument instance.
      Parameters:
      activeDocument - The ActiveDocument instance. May not be null.
      content - An InputStream instance providing the content. May not be null.
    • isActiveDocumentContentBlobFqn

      public static boolean isActiveDocumentContentBlobFqn(String fqn)
      Checks if the specified FQN belongs to an active document content blob.
      Parameters:
      fqn - The FQN. May not be null.
      Returns:
      true if the specified FQN belongs to an active document content blob, false otherwise.
    • buildActiveDocumentContentBlobFqn

      public static String buildActiveDocumentContentBlobFqn(ActiveDocument activeDocument)
      Builds active document content blob FQN.
      Parameters:
      activeDocument - The active document. May not be null.
      Returns:
      the blob FQN. Never null.
    • buildActiveDocumentContentBlobFqn

      public static String buildActiveDocumentContentBlobFqn(String activeDocumentFqn)
      Builds active document content blob FQN.
      Parameters:
      activeDocumentFqn - The active document FQN. May not be null.
      Returns:
      the blob FQN. Never null.
    • extractActiveDocumentFqnFromContentBlobFqn

      public static String extractActiveDocumentFqnFromContentBlobFqn(String fqn)
      Extracts the active document FQN from the corresponding content blob FQN.
      Parameters:
      fqn - The blob FQN. May not be null.
      Returns:
      the extracted active document FQN. Never null.