Class ActiveDocumentExtension
java.lang.Object
com._1c.g5.v8.dt.activedocument.model.ActiveDocumentExtension
Operation implementations for EClass
ActiveDocument
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
buildActiveDocumentContentBlobFqn
(ActiveDocument activeDocument) Builds active document content blob FQN.static String
buildActiveDocumentContentBlobFqn
(String activeDocumentFqn) Builds active document content blob FQN.static String
Extracts the active document FQN from the corresponding content blob FQN.static InputStream
getContent
(ActiveDocument activeDocument) Gets the contents of the specifiedActiveDocument
instance.static boolean
Checks if the specified FQN belongs to an active document content blob.static void
setContent
(ActiveDocument activeDocument, InputStream content) Sets the contents of the specifiedActiveDocument
instance.
-
Constructor Details
-
ActiveDocumentExtension
public ActiveDocumentExtension()
-
-
Method Details
-
getContent
Gets the contents of the specifiedActiveDocument
instance.- Parameters:
activeDocument
- TheActiveDocument
instance. May not benull
.- Returns:
- an
InputStream
instance providing the content. Nevernull
.
-
setContent
Sets the contents of the specifiedActiveDocument
instance.- Parameters:
activeDocument
- TheActiveDocument
instance. May not benull
.content
- AnInputStream
instance providing the content. May not benull
.
-
isActiveDocumentContentBlobFqn
Checks if the specified FQN belongs to an active document content blob.- Parameters:
fqn
- The FQN. May not benull
.- Returns:
true
if the specified FQN belongs to an active document content blob,false
otherwise.
-
buildActiveDocumentContentBlobFqn
Builds active document content blob FQN.- Parameters:
activeDocument
- The active document. May not benull
.- Returns:
- the blob FQN. Never
null
.
-
buildActiveDocumentContentBlobFqn
Builds active document content blob FQN.- Parameters:
activeDocumentFqn
- The active document FQN. May not benull
.- Returns:
- the blob FQN. Never
null
.
-
extractActiveDocumentFqnFromContentBlobFqn
Extracts the active document FQN from the corresponding content blob FQN.- Parameters:
fqn
- The blob FQN. May not benull
.- Returns:
- the extracted active document FQN. Never
null
.
-