|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ComponentBundle
| Method Summary | |
|---|---|
void |
deleteExcludedBundleResources(java.lang.String srcFileNamePrefix,
java.lang.String destFileNamePrefix,
java.lang.String baseDirectory)
delete all files not in the given jar source (srcFileNamePrefix) from the given destFileNamePrefix. |
void |
deleteFileFromDisk(java.io.File file)
Delete file from disk. |
java.lang.String |
formatFileName(java.lang.String fileName)
Ensure that the given fileName is a system path; System specifiek direcory indicators. |
java.lang.String |
getBaseDirectory()
Returns the base directory where all backend files are located. |
ComponentBundleDefinition |
getBundleDefinition()
|
java.util.List<java.lang.String> |
getRegisteredComponentIds()
Returns all component ids registered by the ComponentBundle. |
org.osgi.framework.Version |
getVersion()
The technical version of a ComponentBundle is read from the Manifest. |
java.lang.String |
getWebrootDirectory()
Returns the base directory where all static files are located. |
java.lang.String |
getWorkDirectory()
Returns the full path of a working directory which can be used by this component bundle to store temporary or non-temporary files. |
boolean |
isLicensed(ComponentDefinition componentDefinition)
Returns if a valid license is installed for the given component definition |
void |
start()
Checks if the component bundle's components are registered, if not, it registers the components. |
void |
stop()
Deactivates all component bundle's components. |
java.lang.String |
substringAfter(java.lang.String str,
java.lang.String separator)
Return the substring of str after the seperator. |
void |
writeComponentBundleResourcesToFile(java.lang.String srcFileNamePrefix,
java.lang.String destFileNamePrefix,
java.lang.String baseDirectory)
deploy all files from the given jar source (srcFileNamePrefix)to the given destFileNamePrefix. |
| Method Detail |
|---|
ComponentBundleDefinition getBundleDefinition()
void start()
throws java.lang.Exception
java.lang.Exception - when starting of ComponentBundle was not successful.org.osgi.framework.Version getVersion()
void stop()
void writeComponentBundleResourcesToFile(java.lang.String srcFileNamePrefix,
java.lang.String destFileNamePrefix,
java.lang.String baseDirectory)
srcFileNamePrefix - prefix for the srcFileNames location in the jar f.e.
editpresentation/destFileNamePrefix - destenation path can hold bundle specific names f.e.
/WEB-INF/wm/jsp/edit/wcb/{bundle_id}/baseDirectory - base directory for the destination path
void deleteExcludedBundleResources(java.lang.String srcFileNamePrefix,
java.lang.String destFileNamePrefix,
java.lang.String baseDirectory)
srcFileNamePrefix - prefix for the srcFileNames location in the jar f.e.
editpresentation/destFileNamePrefix - destenation path can hold bundle specific names f.e.
/WEB-INF/wm/jsp/edit/wcb/{bundle_id}/baseDirectory - base directory for the destination path
java.lang.String substringAfter(java.lang.String str,
java.lang.String separator)
str - input Stringseparator - seperator string
java.lang.String formatFileName(java.lang.String fileName)
fileName - Original file name
void deleteFileFromDisk(java.io.File file)
file - File to deletejava.lang.String getBaseDirectory()
java.lang.String getWebrootDirectory()
java.lang.String getWorkDirectory()
boolean isLicensed(ComponentDefinition componentDefinition)
componentDefinition - Component definition to check the license for
true if a valid license is installed for the component
definition or the component definition is not licensed, false otherwisejava.util.List<java.lang.String> getRegisteredComponentIds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||