public class GcubeReleasesServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements GcubeReleasesService
Modifier and Type | Field and Description |
---|---|
protected javax.persistence.EntityManagerFactory |
entityManagerFactory |
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
GcubeReleasesServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
deletePackage(Package pck)
Delete package.
|
List<Package> |
deletePackages(List<Package> listPcks)
Delete packages.
|
boolean |
deleteRelease(Release release)
Delete release.
|
void |
destroy() |
List<Package> |
filterPackagesForValue(String releaseID,
String filter)
Filter packages for value.
|
AccountingReport |
getAccountingReportForRelease(String releaseInternalId) |
DaoGcubeBuilderReportDBManager<Release> |
getDBManager()
Gets the DB manager.
|
List<Package> |
getPackagesForReleaseID(Release release)
Gets the packages for release id.
|
Release |
getReleaseByID(String releaseID)
Gets the release by id.
|
List<Release> |
getReleases(boolean onlyOnline)
Gets the releases.
|
Map<String,Long> |
getSubsystemsForReleaseID(String releaseID)
Gets the subsystems for release id.
|
void |
incrementPackageAccounting(Package pck,
AccoutingReference reference) |
boolean |
insertNewRelease(Release release)
Insert new release.
|
boolean |
isManagementMode()
Checks if is management mode.
|
List<Package> |
loadPackagesForSubsystem(String releaseID,
String subsystemID)
Load packages for subsystem.
|
boolean |
storeLocalReleaseIntoDB(Release release)
Store local release into db.
|
boolean |
storeReleaseIntoDB(Release release)
Store release into db.
|
Release |
updateReleaseInfo(Release release)
Update release info.
|
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected static org.slf4j.Logger logger
protected javax.persistence.EntityManagerFactory entityManagerFactory
public DaoGcubeBuilderReportDBManager<Release> getDBManager() throws Exception
Exception
- the exceptionpublic List<Release> getReleases(boolean onlyOnline) throws Exception
GcubeReleasesService
getReleases
in interface GcubeReleasesService
onlyOnline
- the only onlineException
- the exceptionpublic Map<String,Long> getSubsystemsForReleaseID(String releaseID) throws Exception
GcubeReleasesService
getSubsystemsForReleaseID
in interface GcubeReleasesService
releaseID
- the release idException
- the exceptionpublic Release getReleaseByID(String releaseID) throws Exception
GcubeReleasesService
getReleaseByID
in interface GcubeReleasesService
releaseID
- the release idException
- the exceptionpublic List<Package> getPackagesForReleaseID(Release release) throws Exception
GcubeReleasesService
getPackagesForReleaseID
in interface GcubeReleasesService
release
- the releaseException
- the exceptionpublic boolean insertNewRelease(Release release) throws Exception
GcubeReleasesService
insertNewRelease
in interface GcubeReleasesService
release
- the releaseException
- the exceptionpublic boolean storeLocalReleaseIntoDB(Release release) throws Exception
release
- the releaseException
- the exceptionpublic boolean storeReleaseIntoDB(Release release) throws Exception
release
- the releaseException
- the exceptionpublic List<Package> loadPackagesForSubsystem(String releaseID, String subsystemID) throws Exception
GcubeReleasesService
loadPackagesForSubsystem
in interface GcubeReleasesService
releaseID
- the idsubsystemID
- the subsystem idException
- the exceptionpublic Release updateReleaseInfo(Release release) throws Exception
GcubeReleasesService
updateReleaseInfo
in interface GcubeReleasesService
release
- the releaseException
- the exceptionpublic boolean deletePackage(Package pck) throws Exception
GcubeReleasesService
deletePackage
in interface GcubeReleasesService
pck
- the pckException
- the exceptionpublic boolean deleteRelease(Release release) throws Exception
GcubeReleasesService
deleteRelease
in interface GcubeReleasesService
release
- the releaseException
- the exceptionpublic List<Package> deletePackages(List<Package> listPcks) throws Exception
GcubeReleasesService
deletePackages
in interface GcubeReleasesService
listPcks
- the list pcksException
- the exceptionpublic List<Package> filterPackagesForValue(String releaseID, String filter) throws Exception
GcubeReleasesService
filterPackagesForValue
in interface GcubeReleasesService
releaseID
- the release idfilter
- the filterException
- the exceptionpublic void incrementPackageAccounting(Package pck, AccoutingReference reference)
incrementPackageAccounting
in interface GcubeReleasesService
public boolean isManagementMode() throws Exception
isManagementMode
in interface GcubeReleasesService
Exception
- the exceptionpublic AccountingReport getAccountingReportForRelease(String releaseInternalId) throws Exception
getAccountingReportForRelease
in interface GcubeReleasesService
Exception
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
Copyright © 2016. All Rights Reserved.