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 String
buildActiveDocumentContentBlobFqn(ActiveDocument activeDocument)
Builds active document content blob FQN.static String
buildActiveDocumentContentBlobFqn(String activeDocumentFqn)
Builds active document content blob FQN.static String
extractActiveDocumentFqnFromContentBlobFqn(String fqn)
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
isActiveDocumentContentBlobFqn(String fqn)
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.
-
-
-
Method Detail
-
getContent
public static InputStream getContent(ActiveDocument activeDocument)
Gets the contents of the specifiedActiveDocument
instance.- Parameters:
activeDocument
- TheActiveDocument
instance. May not benull
.- Returns:
- an
InputStream
instance providing the content. Nevernull
.
-
setContent
public static void setContent(ActiveDocument activeDocument, InputStream content)
Sets the contents of the specifiedActiveDocument
instance.- Parameters:
activeDocument
- TheActiveDocument
instance. May not benull
.content
- AnInputStream
instance 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:
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 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
.
-
-