1 | |
package fr.paris.lutece.plugins.releaser.service; |
2 | |
|
3 | |
import java.io.IOException; |
4 | |
import java.util.List; |
5 | |
import java.util.Locale; |
6 | |
|
7 | |
import javax.servlet.http.HttpServletRequest; |
8 | |
|
9 | |
|
10 | |
|
11 | |
import fr.paris.lutece.plugins.releaser.business.Component; |
12 | |
import fr.paris.lutece.portal.business.user.AdminUser; |
13 | |
import fr.paris.lutece.portal.web.util.LocalizedPaginator; |
14 | |
import fr.paris.lutece.util.ReferenceList; |
15 | |
import fr.paris.lutece.util.httpaccess.HttpAccessException; |
16 | |
|
17 | |
public interface IComponentService |
18 | |
{ |
19 | |
|
20 | |
void setRemoteInformations( Component component,boolean bCache) throws HttpAccessException, IOException; |
21 | |
|
22 | |
void updateRemoteInformations( Component component ); |
23 | |
|
24 | |
|
25 | |
int release( Component component, Locale locale, AdminUser user, HttpServletRequest request,boolean forceRelease ); |
26 | |
|
27 | |
int release( Component component, Locale locale, AdminUser user, HttpServletRequest request ); |
28 | |
|
29 | |
boolean isGitComponent( Component component ); |
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
String getLastReleaseVersion( String strArtifactId); |
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
void setLastReleaseVersion( String strArtifactId,String strVersion); |
43 | |
|
44 | |
|
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | |
String getLastReleaseNextSnapshotVersion( String strArtifactId); |
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
void setLastReleaseNextSnapshotVersion( String strArtifactId,String strVersion); |
59 | |
|
60 | |
|
61 | |
LocalizedPaginator<Component> getSearchComponent( String strSearch, HttpServletRequest request, Locale locale,String strPaginateUrl,String strCurrentPageIndex); |
62 | |
|
63 | |
Component loadComponent(Component component,String strPom, String stUser,String strPassword); |
64 | |
|
65 | |
void changeNextReleaseVersion(Component component ); |
66 | |
|
67 | |
boolean isErrorSnapshotComponentInformations( Component component ,String strComponentPomPath); |
68 | |
|
69 | |
void init( ); |
70 | |
|
71 | |
} |