Class SvnResourceService
- java.lang.Object
-
- fr.paris.lutece.plugins.releaser.service.svn.SvnResourceService
-
- All Implemented Interfaces:
IVCSResourceService
public class SvnResourceService extends java.lang.Object implements IVCSResourceService
SvnSiteService.
-
-
Constructor Summary
Constructors Constructor Description SvnResourceService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckoutBranch(WorkflowReleaseContext context, java.lang.String strBranch, java.util.Locale locale)Checkout branch.voidcheckoutDevelopBranch(WorkflowReleaseContext context, java.util.Locale locale)Checkout develop branch.java.lang.StringdoCheckoutRepository(WorkflowReleaseContext context, java.lang.String strLogin, java.lang.String strPassword)Do checkout repository.java.lang.StringfetchPom(Site site, java.lang.String strLogin, java.lang.String strPassword)Fetch the pom.xml content from a repositoryjava.lang.StringgetLastRelease(Site site, java.lang.String strLogin, java.lang.String strPassword)Gets the last release found in the SVN repository.voidrollbackRelease(WorkflowReleaseContext context, java.util.Locale locale)Rollback release.voidupdateBranch(WorkflowReleaseContext context, java.lang.String strBranch, java.util.Locale locale, java.lang.String strMessage)Update develop branch.voidupdateDevelopBranch(WorkflowReleaseContext context, java.util.Locale locale, java.lang.String strMessage)Update develop branch.voidupdateMasterBranch(WorkflowReleaseContext context, java.util.Locale locale)Update master branch.
-
-
-
Method Detail
-
fetchPom
public java.lang.String fetchPom(Site site, java.lang.String strLogin, java.lang.String strPassword)
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
public java.lang.String getLastRelease(Site site, java.lang.String strLogin, java.lang.String strPassword)
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 java.lang.String doCheckoutRepository(WorkflowReleaseContext context, java.lang.String strLogin, java.lang.String strPassword)
Do checkout repository.- Specified by:
doCheckoutRepositoryin interfaceIVCSResourceService- Parameters:
context- the contextstrLogin- the str loginstrPassword- the str password- Returns:
- the string
-
updateDevelopBranch
public void updateDevelopBranch(WorkflowReleaseContext context, java.util.Locale locale, java.lang.String strMessage)
Update develop branch.- Specified by:
updateDevelopBranchin interfaceIVCSResourceService- Parameters:
context- the contextlocale- the localestrMessage- the str message
-
updateMasterBranch
public void updateMasterBranch(WorkflowReleaseContext context, java.util.Locale locale)
Update master branch.- Specified by:
updateMasterBranchin interfaceIVCSResourceService- Parameters:
context- the contextlocale- the locale
-
rollbackRelease
public void rollbackRelease(WorkflowReleaseContext context, java.util.Locale locale)
Rollback release.- Specified by:
rollbackReleasein interfaceIVCSResourceService- Parameters:
context- the contextlocale- the locale
-
checkoutDevelopBranch
public void checkoutDevelopBranch(WorkflowReleaseContext context, java.util.Locale locale)
Checkout develop branch.- Specified by:
checkoutDevelopBranchin interfaceIVCSResourceService- Parameters:
context- the contextlocale- the locale
-
updateBranch
public void updateBranch(WorkflowReleaseContext context, java.lang.String strBranch, java.util.Locale locale, java.lang.String strMessage)
Description copied from interface:IVCSResourceServiceUpdate develop branch.- Specified by:
updateBranchin interfaceIVCSResourceService- Parameters:
context- the contextlocale- the localestrMessage- the str message
-
checkoutBranch
public void checkoutBranch(WorkflowReleaseContext context, java.lang.String strBranch, java.util.Locale locale)
Description copied from interface:IVCSResourceServiceCheckout branch.- Specified by:
checkoutBranchin interfaceIVCSResourceService- Parameters:
context- the contextlocale- the locale
-
-