org.gcube.portlets.admin.software_upload_wizard.server.softwaremanagers
Class AbstractSoftwareManager

java.lang.Object
  extended by org.gcube.portlets.admin.software_upload_wizard.server.softwaremanagers.AbstractSoftwareManager
All Implemented Interfaces:
ISoftwareTypeManager, ISoftwareSubmissionManager
Direct Known Subclasses:
AnySoftwareSoftwareManager, GCubePatchSoftwareManager, GCubePluginSoftwareManager, GCubeWebServiceSoftwareManager, LibrarySoftwareManager, SoftwareRegistrationSoftwareManager, WebAppSoftwareManager

public abstract class AbstractSoftwareManager
extends Object
implements ISoftwareTypeManager


Field Summary
protected static String SERVICEARCHIVE_CLASSIFIER
           
protected static String SERVICEARCHIVE_TYPE
           
static String SNAPSHOT_SUFFIX
           
 
Constructor Summary
AbstractSoftwareManager()
           
 
Method Summary
protected abstract  ISoftwareSubmissionTask createSofwareSubmissionTask()
           
protected  String getChangelogContent()
           
protected  ImportSession getImportSession()
           
protected  String getInstallContent()
           
protected  String getLicenseContent()
           
protected  String getMaintainersContent()
           
protected  MavenCoordinates getMavenCoordinates(ServiceProfile serviceProfile)
           
 ArrayList<Deliverable> getMiscFiles()
           
 String getPOM(Package softwarePackage)
           
 String getPOM(ServiceProfile serviceProfile)
           
protected  String getReadmeContent()
           
abstract  String getServiceProfile(boolean withHeader)
           
protected abstract  IMavenRepositoryInfo getTargetRepository()
          Recover target maven repository info
 void setImportSession(ImportSession session)
           
 IOperationProgress submitSoftware()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gcube.portlets.admin.software_upload_wizard.server.softwaremanagers.ISoftwareTypeManager
generateInitialSoftwareProfile, getMavenCoordinates, getSoftwareTypeInfo, isAvailableForScope
 

Field Detail

SERVICEARCHIVE_CLASSIFIER

protected static final String SERVICEARCHIVE_CLASSIFIER
See Also:
Constant Field Values

SERVICEARCHIVE_TYPE

protected static final String SERVICEARCHIVE_TYPE
See Also:
Constant Field Values

SNAPSHOT_SUFFIX

public static final String SNAPSHOT_SUFFIX
See Also:
Constant Field Values
Constructor Detail

AbstractSoftwareManager

public AbstractSoftwareManager()
Method Detail

setImportSession

public void setImportSession(ImportSession session)
Specified by:
setImportSession in interface ISoftwareTypeManager

getImportSession

protected ImportSession getImportSession()

getTargetRepository

protected abstract IMavenRepositoryInfo getTargetRepository()
                                                     throws Exception
Recover target maven repository info

Returns:
MavenRepositoryInfo object
Throws:
Exception

getMavenCoordinates

protected MavenCoordinates getMavenCoordinates(ServiceProfile serviceProfile)
                                        throws Exception
Throws:
Exception

getReadmeContent

protected String getReadmeContent()

getInstallContent

protected String getInstallContent()

getMaintainersContent

protected String getMaintainersContent()

getChangelogContent

protected String getChangelogContent()

getLicenseContent

protected String getLicenseContent()

getMiscFiles

public ArrayList<Deliverable> getMiscFiles()
                                    throws Exception
Specified by:
getMiscFiles in interface ISoftwareTypeManager
Throws:
Exception

getServiceProfile

public abstract String getServiceProfile(boolean withHeader)
                                  throws Exception
Specified by:
getServiceProfile in interface ISoftwareTypeManager
Throws:
Exception

getPOM

public String getPOM(Package softwarePackage)
              throws Exception
Specified by:
getPOM in interface ISoftwareTypeManager
Throws:
Exception

getPOM

public String getPOM(ServiceProfile serviceProfile)
              throws Exception
Specified by:
getPOM in interface ISoftwareTypeManager
Throws:
Exception

submitSoftware

public IOperationProgress submitSoftware()
                                  throws Exception
Specified by:
submitSoftware in interface ISoftwareSubmissionManager
Throws:
Exception

createSofwareSubmissionTask

protected abstract ISoftwareSubmissionTask createSofwareSubmissionTask()


Copyright © 2013. All Rights Reserved.