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 StringbuildAddInContentBlobFqn(AddIn addIn)Builds add-in content blob FQN.static StringbuildAddInContentBlobFqn(String addInFqn)Builds add-in content blob FQN.static StringextractAddInFqnFromContentBlobFqn(String fqn)Extracts the add-in FQN from the corresponding content blob FQN.static InputStreamgetContent(AddIn addIn)Gets the contents of the specifiedAddIninstance.static booleanisAddInContentBlobFqn(String fqn)Checks if the specified FQN belongs to an add-in content blob.static voidsetContent(AddIn addIn, InputStream content)Sets the contents of the specifiedAddIninstance.
-
-
-
Method Detail
-
getContent
public static InputStream getContent(AddIn addIn)
Gets the contents of the specifiedAddIninstance.- Parameters:
addIn- TheAddIninstance. May not benull.- Returns:
- an
InputStreaminstance providing the content. Nevernull.
-
setContent
public static void setContent(AddIn addIn, InputStream content)
Sets the contents of the specifiedAddIninstance.- Parameters:
addIn- TheAddIninstance. May not benull.content- AnInputStreaminstance 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:
trueif the specified FQN belongs to an add-in content blob,falseotherwise.
-
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.
-
-