com.arsdigita.apm
Class ACSPackageType

java.lang.Object
  |
  +--com.arsdigita.apm.ACSPackageType

public class ACSPackageType
extends java.lang.Object

The ACSPackageType defines all information for a given set of APM Packages. This information is knowledge-level as it defines what the package instances can do.

Since:
ACS 4.0

Field Summary
static java.lang.String cvsId
           
 
Constructor Summary
ACSPackageType(java.lang.String packageKey)
          Creates a new ACSPackageType instance by loading from database.
ACSPackageType(java.lang.String packageKey, java.lang.String packageType, java.lang.String prettyName, java.lang.String prettyPlural, java.lang.String URI, boolean singletonP)
           
ACSPackageType(java.lang.String packageKey, java.lang.String packageType, java.lang.String prettyName, java.lang.String prettyPlural, java.lang.String URI, boolean singletonP, java.lang.String specVersion)
          Creates a new ACSPackageType.
 
Method Summary
 void delete()
          Deinstalls and deletes this package from the ACS and the filesystem.
 java.lang.String getKey()
          Get the value of key.
 ACSPackageVersion getLatestVersion()
          Returns the latest version of this ACSPackage.
 java.lang.String getPackageKey()
          Gets the value of the package key.
 java.lang.String getPackageType()
          Get the value of packageType.
 java.lang.String getPrettyName()
          Get the value of prettyName.
 java.lang.String getPrettyPlural()
          Get the value of prettyPlural.
 java.lang.String getSpecVersion()
          Get the value of specVersion.
 java.lang.String getURI()
          Get the value of URI.
 boolean isSingletonP()
          Get the value of singletonP.
 void setKey(java.lang.String v)
          Set the value of key.
 void setPackageType(java.lang.String v)
          Set the value of packageType.
 void setPrettyName(java.lang.String v)
          Set the value of prettyName.
 void setPrettyPlural(java.lang.String v)
          Set the value of prettyPlural.
 void setSingletonP(boolean v)
          Set the value of singletonP.
 void setSpecVersion(java.lang.String v)
          Set the value of specVersion.
 void setURI(java.lang.String v)
          Set the value of URI.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cvsId

public static final java.lang.String cvsId
Constructor Detail

ACSPackageType

public ACSPackageType(java.lang.String packageKey)
               throws ApmException
Creates a new ACSPackageType instance by loading from database.
Parameters:
packageKey - a String value

ACSPackageType

public ACSPackageType(java.lang.String packageKey,
                      java.lang.String packageType,
                      java.lang.String prettyName,
                      java.lang.String prettyPlural,
                      java.lang.String URI,
                      boolean singletonP)
               throws java.sql.SQLException,
                      ApmException

ACSPackageType

public ACSPackageType(java.lang.String packageKey,
                      java.lang.String packageType,
                      java.lang.String prettyName,
                      java.lang.String prettyPlural,
                      java.lang.String URI,
                      boolean singletonP,
                      java.lang.String specVersion)
               throws java.sql.SQLException,
                      ApmException
Creates a new ACSPackageType. Package must not presently exist in the database.
Method Detail

getLatestVersion

public ACSPackageVersion getLatestVersion()
                                   throws ApmException
Returns the latest version of this ACSPackage.
Returns:
an ACSPackageVersion value

getSpecVersion

public java.lang.String getSpecVersion()
Get the value of specVersion.
Returns:
value of specVersion.

setSpecVersion

public void setSpecVersion(java.lang.String v)
Set the value of specVersion.
Parameters:
v - Value to assign to specVersion.

getPrettyPlural

public java.lang.String getPrettyPlural()
Get the value of prettyPlural.
Returns:
value of prettyPlural.

setPrettyPlural

public void setPrettyPlural(java.lang.String v)
Set the value of prettyPlural.
Parameters:
v - Value to assign to prettyPlural.

getPrettyName

public java.lang.String getPrettyName()
Get the value of prettyName.
Returns:
value of prettyName.

setPrettyName

public void setPrettyName(java.lang.String v)
Set the value of prettyName.
Parameters:
v - Value to assign to prettyName.

getPackageType

public java.lang.String getPackageType()
Get the value of packageType.
Returns:
value of packageType.

setPackageType

public void setPackageType(java.lang.String v)
Set the value of packageType.
Parameters:
v - Value to assign to packageType.

getURI

public java.lang.String getURI()
Get the value of URI.
Returns:
value of URI.

setURI

public void setURI(java.lang.String v)
Set the value of URI.
Parameters:
v - Value to assign to URI.

getKey

public java.lang.String getKey()
Get the value of key.
Returns:
value of key.

setKey

public void setKey(java.lang.String v)
Set the value of key.
Parameters:
v - Value to assign to key.

isSingletonP

public boolean isSingletonP()
Get the value of singletonP.
Returns:
value of singletonP.

setSingletonP

public void setSingletonP(boolean v)
Set the value of singletonP.
Parameters:
v - Value to assign to singletonP.

getPackageKey

public java.lang.String getPackageKey()
Gets the value of the package key.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

delete

public void delete()
            throws java.io.IOException,
                   java.sql.SQLException
Deinstalls and deletes this package from the ACS and the filesystem.