org.apache.maven.continuum.profile
Interface ProfileService
- All Known Implementing Classes:
- DefaultProfileService
public interface ProfileService
- Since:
- 15 juin 07
- Version:
- $Id: ProfileService.java 1372260 2012-08-13 04:29:09Z brett $
- Author:
- olamy
ROLE
static final String ROLE
getProfile
Profile getProfile(int profileId)
throws ProfileException
- Throws:
ProfileException
deleteProfile
void deleteProfile(int profileId)
throws ProfileException
- Throws:
ProfileException
updateProfile
void updateProfile(Profile profile)
throws ProfileException,
AlreadyExistsProfileException
- Parameters:
profile
-
- Throws:
ProfileException
AlreadyExistsProfileException
- if a profile with the same name already exists
addProfile
Profile addProfile(Profile profile)
throws ProfileException,
AlreadyExistsProfileException
- Add an empty profile without builder, jdk and envVars
- Parameters:
profile
-
- Returns:
-
- Throws:
ProfileException
AlreadyExistsProfileException
- if a profile with the same name already exists
getAllProfiles
List<Profile> getAllProfiles()
throws ProfileException
- Throws:
ProfileException
setJdkInProfile
void setJdkInProfile(Profile profile,
Installation jdk)
throws ProfileException
- Throws:
ProfileException
setBuilderInProfile
void setBuilderInProfile(Profile profile,
Installation builder)
throws ProfileException
- Throws:
ProfileException
addEnvVarInProfile
void addEnvVarInProfile(Profile profile,
Installation envVar)
throws ProfileException
- Throws:
ProfileException
addInstallationInProfile
void addInstallationInProfile(Profile profile,
Installation installation)
throws ProfileException
- Throws:
ProfileException
removeInstallationFromProfile
void removeInstallationFromProfile(Profile profile,
Installation installation)
throws ProfileException
- Parameters:
profile
- installation
-
- Throws:
ProfileException
- Since:
- 1.1-beta-4
getProfileWithName
Profile getProfileWithName(String profileName)
throws ProfileException
- Throws:
ProfileException
alreadyExistsProfileName
boolean alreadyExistsProfileName(Profile profile)
throws ProfileException
- Throws:
ProfileException
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.