public class ModuleHelper extends Object
| Constructor and Description |
|---|
ModuleHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToSourceControl(String moduleId,
org.jahia.ajax.gwt.client.data.node.GWTJahiaNode node,
JCRSessionWrapper session) |
org.jahia.ajax.gwt.client.data.node.GWTJahiaNode |
checkoutModule(String moduleId,
String scmURI,
String scmType,
String branchOrTag,
String sources,
JCRSessionWrapper session) |
void |
compileAndDeploy(String moduleId,
JCRSessionWrapper session) |
org.jahia.ajax.gwt.client.data.node.GWTJahiaNode |
createModule(String moduleName,
String artifactId,
String groupId,
String siteType,
String sources,
JCRSessionWrapper session) |
void |
deployModule(String moduleName,
String sitePath,
JCRSessionWrapper currentUserSession) |
org.jahia.ajax.gwt.client.data.GWTModuleReleaseInfo |
getModuleDistributionInfo(String moduleId,
JCRSessionWrapper session) |
org.jahia.ajax.gwt.client.data.node.GWTJahiaNode |
releaseModule(String moduleId,
org.jahia.ajax.gwt.client.data.GWTModuleReleaseInfo gwtReleaseInfo,
JCRSessionWrapper session) |
boolean |
saveAndCommitModule(String moduleId,
String message,
JCRSessionWrapper session) |
org.jahia.ajax.gwt.client.data.node.GWTJahiaNode |
sendToSourceControl(String moduleName,
String scmURI,
String scmType,
JCRSessionWrapper session) |
void |
setHttpClient(HttpClientService httpClient) |
void |
setNavigation(NavigationHelper navigation) |
void |
setTemplateManagerService(JahiaTemplateManagerService templateManagerService) |
void |
updateDistributionServerForModule(String module,
String repositoryId,
String repositoryUrl,
JCRSessionWrapper session)
Updates the module's pom.xml file with the specified distribution server details.
|
void |
updateForgeUrlForModule(String module,
String forgeUrl,
JCRSessionWrapper session,
String username,
String password)
Updates the module's pom.xml file with the specified Private App Store server details.
|
String |
updateModule(String moduleId,
JCRSessionWrapper session) |
public void addToSourceControl(String moduleId, org.jahia.ajax.gwt.client.data.node.GWTJahiaNode node, JCRSessionWrapper session) throws IOException, javax.jcr.RepositoryException, org.osgi.framework.BundleException
IOExceptionjavax.jcr.RepositoryExceptionorg.osgi.framework.BundleExceptionpublic org.jahia.ajax.gwt.client.data.node.GWTJahiaNode checkoutModule(String moduleId, String scmURI, String scmType, String branchOrTag, String sources, JCRSessionWrapper session) throws IOException, javax.jcr.RepositoryException, org.osgi.framework.BundleException
IOExceptionjavax.jcr.RepositoryExceptionorg.osgi.framework.BundleExceptionpublic void compileAndDeploy(String moduleId, JCRSessionWrapper session) throws IOException, javax.jcr.RepositoryException, org.osgi.framework.BundleException
IOExceptionjavax.jcr.RepositoryExceptionorg.osgi.framework.BundleExceptionpublic org.jahia.ajax.gwt.client.data.node.GWTJahiaNode createModule(String moduleName, String artifactId, String groupId, String siteType, String sources, JCRSessionWrapper session) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic void deployModule(String moduleName, String sitePath, JCRSessionWrapper currentUserSession) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic org.jahia.ajax.gwt.client.data.GWTModuleReleaseInfo getModuleDistributionInfo(String moduleId, JCRSessionWrapper session) throws javax.jcr.RepositoryException, IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
javax.jcr.RepositoryExceptionIOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionpublic org.jahia.ajax.gwt.client.data.node.GWTJahiaNode releaseModule(String moduleId, org.jahia.ajax.gwt.client.data.GWTModuleReleaseInfo gwtReleaseInfo, JCRSessionWrapper session) throws javax.jcr.RepositoryException, IOException, org.osgi.framework.BundleException
javax.jcr.RepositoryExceptionIOExceptionorg.osgi.framework.BundleExceptionpublic boolean saveAndCommitModule(String moduleId, String message, JCRSessionWrapper session) throws javax.jcr.RepositoryException, IOException
javax.jcr.RepositoryExceptionIOExceptionpublic org.jahia.ajax.gwt.client.data.node.GWTJahiaNode sendToSourceControl(String moduleName, String scmURI, String scmType, JCRSessionWrapper session) throws IOException, javax.jcr.RepositoryException
IOExceptionjavax.jcr.RepositoryExceptionpublic void setHttpClient(HttpClientService httpClient)
public void setNavigation(NavigationHelper navigation)
public void setTemplateManagerService(JahiaTemplateManagerService templateManagerService)
public void updateForgeUrlForModule(String module, String forgeUrl, JCRSessionWrapper session, String username, String password) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException, javax.jcr.RepositoryException
module - the module to update distribution management informationforgeUrl - the target Private App Store URLsession - current JCR sessionusername - password - @throws XmlPullParserException
in case of pom.xml parsing errorIOException - in case of an I/O failurejavax.jcr.RepositoryException - when a repository access exception occursorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionpublic void updateDistributionServerForModule(String module, String repositoryId, String repositoryUrl, JCRSessionWrapper session) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException, javax.jcr.RepositoryException
module - the module to update distribution management informationrepositoryId - the server ID for the repositoryrepositoryUrl - the target repository URLsession - current JCR sessionorg.codehaus.plexus.util.xml.pull.XmlPullParserException - in case of pom.xml parsing errorIOException - in case of an I/O failurejavax.jcr.RepositoryException - when a repository access exception occurspublic String updateModule(String moduleId, JCRSessionWrapper session) throws IOException, javax.jcr.RepositoryException, org.osgi.framework.BundleException
IOExceptionjavax.jcr.RepositoryExceptionorg.osgi.framework.BundleExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.