Package com._1c.g5.v8.dt.addin.model
Class AddInExtension
- java.lang.Object
-
- com._1c.g5.v8.dt.addin.model.AddInExtension
-
-
Constructor Summary
Constructors Constructor Description AddInExtension()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
buildAddInContentBlobFqn(AddIn addIn)
Builds add-in content blob FQN.static String
buildAddInContentBlobFqn(String addInFqn)
Builds add-in content blob FQN.static String
extractAddInFqnFromContentBlobFqn(String fqn)
Extracts the add-in FQN from the corresponding content blob FQN.static InputStream
getContent(AddIn addIn)
Gets the contents of the specifiedAddIn
instance.static boolean
isAddInContentBlobFqn(String fqn)
Checks if the specified FQN belongs to an add-in content blob.static void
setContent(AddIn addIn, InputStream content)
Sets the contents of the specifiedAddIn
instance.
-
-
-
Method Detail
-
getContent
public static InputStream getContent(AddIn addIn)
Gets the contents of the specifiedAddIn
instance.- Parameters:
addIn
- TheAddIn
instance. May not benull
.- Returns:
- an
InputStream
instance providing the content. Nevernull
.
-
setContent
public static void setContent(AddIn addIn, InputStream content)
Sets the contents of the specifiedAddIn
instance.- Parameters:
addIn
- TheAddIn
instance. May not benull
.content
- AnInputStream
instance providing the content. May not benull
.
-
isAddInContentBlobFqn
public static boolean isAddInContentBlobFqn(String fqn)
Checks if the specified FQN belongs to an add-in content blob.- Parameters:
fqn
- The FQN. May not benull
.- Returns:
true
if the specified FQN belongs to an add-in content blob,false
otherwise.
-
buildAddInContentBlobFqn
public static String buildAddInContentBlobFqn(AddIn addIn)
Builds add-in content blob FQN.- Parameters:
addIn
- The add-in. May not benull
.- Returns:
- the blob FQN. Never
null
.
-
buildAddInContentBlobFqn
public static String buildAddInContentBlobFqn(String addInFqn)
Builds add-in content blob FQN.- Parameters:
addIn
- The add-in FQN. May not benull
.- Returns:
- the blob FQN. Never
null
.
-
-