Class ActiveDocumentExtension
- java.lang.Object
-
- com._1c.g5.v8.dt.activedocument.model.ActiveDocumentExtension
-
public class ActiveDocumentExtension extends Object
Operation implementations for EClassActiveDocument
-
-
Constructor Summary
Constructors Constructor Description ActiveDocumentExtension()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringbuildActiveDocumentContentBlobFqn(ActiveDocument activeDocument)Builds active document content blob FQN.static StringbuildActiveDocumentContentBlobFqn(String activeDocumentFqn)Builds active document content blob FQN.static StringextractActiveDocumentFqnFromContentBlobFqn(String fqn)Extracts the active document FQN from the corresponding content blob FQN.static InputStreamgetContent(ActiveDocument activeDocument)Gets the contents of the specifiedActiveDocumentinstance.static booleanisActiveDocumentContentBlobFqn(String fqn)Checks if the specified FQN belongs to an active document content blob.static voidsetContent(ActiveDocument activeDocument, InputStream content)Sets the contents of the specifiedActiveDocumentinstance.
-
-
-
Method Detail
-
getContent
public static InputStream getContent(ActiveDocument activeDocument)
Gets the contents of the specifiedActiveDocumentinstance.- Parameters:
activeDocument- TheActiveDocumentinstance. May not benull.- Returns:
- an
InputStreaminstance providing the content. Nevernull.
-
setContent
public static void setContent(ActiveDocument activeDocument, InputStream content)
Sets the contents of the specifiedActiveDocumentinstance.- Parameters:
activeDocument- TheActiveDocumentinstance. May not benull.content- AnInputStreaminstance providing the content. May not benull.
-
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 benull.- Returns:
trueif the specified FQN belongs to an active document content blob,falseotherwise.
-
buildActiveDocumentContentBlobFqn
public static String buildActiveDocumentContentBlobFqn(ActiveDocument activeDocument)
Builds active document content blob FQN.- Parameters:
activeDocument- The active document. May not benull.- 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 benull.- Returns:
- the blob FQN. Never
null.
-
-