Class SvnResourceService
java.lang.Object
fr.paris.lutece.plugins.releaser.service.svn.SvnResourceService
- All Implemented Interfaces:
IVCSResourceService
SvnSiteService.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckoutBranch(WorkflowReleaseContext context, String strBranch, Locale locale) Checkout branch.voidcheckoutDevelopBranch(WorkflowReleaseContext context, Locale locale) Checkout develop branch.doCheckoutRepository(WorkflowReleaseContext context, String strLogin, String strPassword) Do checkout repository.Fetch the pom.xml content from a repositorygetLastRelease(Site site, String strLogin, String strPassword) Gets the last release found in the SVN repository.voidrollbackRelease(WorkflowReleaseContext context, Locale locale) Rollback release.voidupdateBranch(WorkflowReleaseContext context, String strBranch, Locale locale, String strMessage) Update develop branch.voidupdateDevelopBranch(WorkflowReleaseContext context, Locale locale, String strMessage) Update develop branch.voidupdateMasterBranch(WorkflowReleaseContext context, Locale locale) Update master branch.
-
Constructor Details
-
SvnResourceService
public SvnResourceService()
-
-
Method Details
-
fetchPom
Fetch the pom.xml content from a repository- Specified by:
fetchPomin interfaceIVCSResourceService- Parameters:
site- the sitestrLogin- the str loginstrPassword- the str password- Returns:
- The POM content
-
getLastRelease
Gets the last release found in the SVN repository.- Specified by:
getLastReleasein interfaceIVCSResourceService- Parameters:
site- the sitestrLogin- the str loginstrPassword- the str password- Returns:
- The version if found otherwise null
-
doCheckoutRepository
public String doCheckoutRepository(WorkflowReleaseContext context, String strLogin, String strPassword) Do checkout repository.- Specified by:
doCheckoutRepositoryin interfaceIVCSResourceService- Parameters:
context- the contextstrLogin- the str loginstrPassword- the str password- Returns:
- the string
-
updateDevelopBranch
Update develop branch.- Specified by:
updateDevelopBranchin interfaceIVCSResourceService- Parameters:
context- the contextlocale- the localestrMessage- the str message
-
updateMasterBranch
Update master branch.- Specified by:
updateMasterBranchin interfaceIVCSResourceService- Parameters:
context- the contextlocale- the locale
-
rollbackRelease
Rollback release.- Specified by:
rollbackReleasein interfaceIVCSResourceService- Parameters:
context- the contextlocale- the locale
-
checkoutDevelopBranch
Checkout develop branch.- Specified by:
checkoutDevelopBranchin interfaceIVCSResourceService- Parameters:
context- the contextlocale- the locale
-
updateBranch
public void updateBranch(WorkflowReleaseContext context, String strBranch, Locale locale, String strMessage) Description copied from interface:IVCSResourceServiceUpdate develop branch.- Specified by:
updateBranchin interfaceIVCSResourceService- Parameters:
context- the contextlocale- the localestrMessage- the str message
-
checkoutBranch
Description copied from interface:IVCSResourceServiceCheckout branch.- Specified by:
checkoutBranchin interfaceIVCSResourceService- Parameters:
context- the contextlocale- the locale
-