1 package org.apache.maven.continuum.profile;
2
3 import org.apache.maven.continuum.model.system.Installation;
4 import org.apache.maven.continuum.model.system.Profile;
5
6 import java.util.List;
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 public interface ProfileService
33 {
34 String ROLE = ProfileService.class.getName();
35
36 public Profile getProfile( int profileId )
37 throws ProfileException;
38
39 public void deleteProfile( int profileId )
40 throws ProfileException;
41
42
43
44
45
46
47 public void updateProfile( Profile profile )
48 throws ProfileException, AlreadyExistsProfileException;
49
50
51
52
53
54
55
56
57
58 public Profile addProfile( Profile profile )
59 throws ProfileException, AlreadyExistsProfileException;
60
61 public List<Profile> getAllProfiles()
62 throws ProfileException;
63
64 public void setJdkInProfile( Profile profile, Installation jdk )
65 throws ProfileException;
66
67 public void setBuilderInProfile( Profile profile, Installation builder )
68 throws ProfileException;
69
70 public void addEnvVarInProfile( Profile profile, Installation envVar )
71 throws ProfileException;
72
73 public void addInstallationInProfile( Profile profile, Installation installation )
74 throws ProfileException;
75
76
77
78
79
80
81
82 public void removeInstallationFromProfile( Profile profile, Installation installation )
83 throws ProfileException;
84
85 public Profile getProfileWithName( String profileName )
86 throws ProfileException;
87
88 public boolean alreadyExistsProfileName( Profile profile )
89 throws ProfileException;
90 }