org.gcube.vremanagement.softwarerepository.softwarearchive.operations
Class SoftwareArchiveValidator

java.lang.Object
  extended by org.gcube.vremanagement.softwarerepository.softwarearchive.operations.SoftwareArchiveValidator
Direct Known Subclasses:
GCUBEValidator

public abstract class SoftwareArchiveValidator
extends java.lang.Object

Author:
Luca Frosini (ISTI-CNR)

Constructor Summary
SoftwareArchiveValidator()
           
 
Method Summary
abstract  java.lang.String getServiceID()
           
 void setProfile(java.io.File profile)
           
 void setRootDirectory(java.io.File rootDirectory)
           
abstract  void setToPending(java.io.File targetDirectory)
           
abstract  void validate(java.lang.String groupID, java.lang.String description, java.lang.String url, java.lang.String[] scopes)
          Validate the Service
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftwareArchiveValidator

public SoftwareArchiveValidator()
                         throws java.lang.Exception
Throws:
java.lang.Exception - if fails
Method Detail

validate

public abstract void validate(java.lang.String groupID,
                              java.lang.String description,
                              java.lang.String url,
                              java.lang.String[] scopes)
                       throws java.lang.Exception,
                              ProfileException
Validate the Service

Parameters:
groupID - Group ID
description - description
url - url
scopes - scopes
Throws:
java.lang.Exception - if validate fails
ProfileException - if profile loading fails

setToPending

public abstract void setToPending(java.io.File targetDirectory)
                           throws java.lang.Exception
Parameters:
targetDirectory - directory to store the generated artifact
Throws:
java.lang.Exception - if fails

getServiceID

public abstract java.lang.String getServiceID()
Returns:
the service ID of the validated service, if any

setRootDirectory

public void setRootDirectory(java.io.File rootDirectory)
Parameters:
rootDirectory - the rootDirectory to set

setProfile

public void setProfile(java.io.File profile)
Parameters:
profile - the profile to set