org.gcube.vremanagement.softwarerepository.softwarearchive
Class SoftwareArchive

java.lang.Object
  extended by org.gcube.vremanagement.softwarerepository.softwarearchive.SoftwareArchive

public class SoftwareArchive
extends java.lang.Object

Author:
Luca Frosini (ISTI-CNR)

Constructor Summary
SoftwareArchive(java.lang.String serviceID)
          Constructor
SoftwareArchive(java.lang.String groupID, java.lang.String url, java.lang.String description, java.lang.String[] scopes)
          Constructor
 
Method Summary
 void approve()
          Approve a Software Archive
 void validate()
          Validate a Software Archive and set the sate in pending
 void withdrawn()
          Remove Software Archive
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftwareArchive

public SoftwareArchive(java.lang.String serviceID)
                throws java.lang.Exception
Constructor

Parameters:
serviceID - Service ID
Throws:
java.lang.Exception - if constructor fails

SoftwareArchive

public SoftwareArchive(java.lang.String groupID,
                       java.lang.String url,
                       java.lang.String description,
                       java.lang.String[] scopes)
                throws java.lang.Exception
Constructor

Parameters:
groupID - service unique ID (service class + name + version)
url - network location of the SA
description - SA description
scopes - target scopes, i.e. the scopes where the SA will be visible after the approval
Throws:
java.lang.Exception - if constructor fails
Method Detail

validate

public void validate()
              throws java.lang.Exception
Validate a Software Archive and set the sate in pending

Throws:
java.lang.Exception - if validation fails

approve

public void approve()
             throws java.lang.Exception
Approve a Software Archive

Throws:
java.lang.Exception - if approve fails

withdrawn

public void withdrawn()
               throws java.lang.Exception
Remove Software Archive

Throws:
java.lang.Exception - if remove fails