com.arsdigita.apm
Class SpecificationGenerator

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

public class SpecificationGenerator
extends java.lang.Object

The SpecificationGenerator is capable of generating APM Specification files in XML format for individual Specifications or groups of them. It can be run as an application to regenerate all APM specifications.

Since:
ACS 4.0

Field Summary
protected static java.lang.String acsPath
           
static java.lang.String cvsId
           
 
Constructor Summary
SpecificationGenerator()
           
 
Method Summary
protected static void generate(ACSPackageVersion version)
           
static void generate(java.math.BigDecimal versionID)
          Generate XML file for a particular *version* (not package).
static void generate(java.lang.String packageKey)
          Generate XML file for the latest version of a particular *package*.
static java.lang.String generateString(java.math.BigDecimal versionId)
          Generate XML string for a particular *version* (not package).
static void install(java.math.BigDecimal versionID)
          Writes the XML-formatted specification for a package to disk, marking it in the database as the only installed version of the package.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cvsId

public static final java.lang.String cvsId

acsPath

protected static java.lang.String acsPath
Constructor Detail

SpecificationGenerator

public SpecificationGenerator()
Method Detail

main

public static void main(java.lang.String[] args)

install

public static void install(java.math.BigDecimal versionID)
                    throws java.io.IOException,
                           ApmException,
                           java.sql.SQLException
Writes the XML-formatted specification for a package to disk, marking it in the database as the only installed version of the package. Equivalent to apm_package_install_spec. Differs from generate in that it marks this version as the correct version in the DB, while generate simply generates the .info file.

generate

public static void generate(java.lang.String packageKey)
                     throws java.io.IOException,
                            ApmException
Generate XML file for the latest version of a particular *package*.

generate

public static void generate(java.math.BigDecimal versionID)
                     throws java.io.IOException,
                            ApmException
Generate XML file for a particular *version* (not package).

generate

protected static void generate(ACSPackageVersion version)
                        throws java.io.IOException,
                               ApmException

generateString

public static java.lang.String generateString(java.math.BigDecimal versionId)
                                       throws ApmException
Generate XML string for a particular *version* (not package).