org.mmbase.applications.packaging.projects
Class Target

java.lang.Object
  extended by org.mmbase.applications.packaging.projects.Target

public class Target
extends java.lang.Object

Author:
Daniel Ockeloen

Constructor Summary
Target(Project parent, java.lang.String name)
          Constructor for the Target object
 
Method Summary
 boolean addPackage(java.lang.String newpackage)
          Adds a feature to the Package attribute of the Target object
 boolean addPackageContact(java.lang.String newreason, java.lang.String newname, java.lang.String newemail)
          Adds a feature to the PackageContact attribute of the Target object
 boolean addPackageDepends(java.lang.String packageid, java.lang.String version)
          Adds a feature to the PackageDepends attribute of the Target object
 boolean addPackageDeveloper(java.lang.String newname, java.lang.String newcompany)
          Adds a feature to the PackageDeveloper attribute of the Target object
 boolean addPackageInitiator(java.lang.String newname, java.lang.String newcompany)
          Adds a feature to the PackageInitiator attribute of the Target object
 boolean addPackageSupporter(java.lang.String newcompany)
          Adds a feature to the PackageSupporter attribute of the Target object
 void addRelatedTargetsCreate(Target t)
           
 void addScreenshot(java.lang.String name, java.lang.String file, java.lang.String description)
           
 void addStarturl(java.lang.String name, java.lang.String link, java.lang.String description)
           
 void clearPackageSteps()
          Description of the Method
 boolean createPackage(int version)
          Description of the Method
 void createPackageThreaded(int version)
           
 boolean delIncludedPackage(java.lang.String id)
          Description of the Method
 boolean delPackageContact(java.lang.String oldreason, java.lang.String oldname, java.lang.String oldemail)
          Description of the Method
 boolean delPackageDepends(java.lang.String packageid, java.lang.String version, java.lang.String versionmode)
          Description of the Method
 boolean delPackageDeveloper(java.lang.String oldname, java.lang.String oldcompany)
          Description of the Method
 boolean delPackageInitiator(java.lang.String oldname, java.lang.String oldcompany)
          Description of the Method
 boolean delPackageSupporter(java.lang.String oldcompany)
          Description of the Method
 java.lang.String getBaseDir()
          Gets the baseDir attribute of the Target object
 CreatorInterface getCreator()
           
 java.lang.String getDepends()
          Gets the depends attribute of the Target object
 java.lang.String getDescription()
          Gets the description attribute of the Target object
 java.lang.String getFullPath()
           
 java.lang.String getId()
           
 java.util.ArrayList getIncludedPackages()
          Gets the includedPackages attribute of the Target object
 java.lang.String getInstallationNotes()
          Gets the installationNotes attribute of the Target object
 java.lang.Object getItem(java.lang.String name)
          Gets the item attribute of the Target object
 java.lang.String getLastDate()
          Gets the lastDate attribute of the Target object
 int getLastVersion()
          Gets the lastVersion attribute of the Target object
 java.lang.String getLicenseName()
          Gets the licenseName attribute of the Target object
 java.lang.String getLicenseType()
          Gets the licenseType attribute of the Target object
 java.lang.String getLicenseVersion()
          Gets the licenseVersion attribute of the Target object
 java.lang.String getMaintainer()
          Gets the maintainer attribute of the Target object
 java.lang.String getName()
          Gets the name attribute of the Target object
 int getNextVersion()
          Gets the nextVersion attribute of the Target object
 java.util.ArrayList getPackageDepends()
          Gets the packageDepends attribute of the Target object
 java.lang.String getPackageName()
          Gets the packageName attribute of the Target object
 java.util.Iterator getPackageSteps()
          Gets the packageSteps attribute of the Target object
 java.util.Iterator getPackageSteps(int logid)
          Gets the packageSteps attribute of the Target object
 Project getParent()
           
 java.lang.String getPath()
          Gets the path attribute of the Target object
 int getProgressBarValue()
           
 java.lang.String getPublishProvider()
           
 java.lang.String getPublishSharePassword()
           
 boolean getPublishState()
           
 ExtendedDocumentReader getReader()
          Gets the reader attribute of the Target object
 java.util.ArrayList getRelatedPeople(java.lang.String type)
          Gets the relatedPeople attribute of the Target object
 java.lang.String getReleaseNotes()
          Gets the releaseNotes attribute of the Target object
 java.util.ArrayList getScreenshots()
           
 java.util.ArrayList getStarturls()
           
 java.lang.String getState()
           
 int getSubProgressBarValue()
           
 java.lang.String getType()
          Gets the type attribute of the Target object
 boolean hasSyntaxErrors()
          Description of the Method
 boolean isBundle()
          Gets the bundle attribute of the Target object
 boolean publish(int version, packageStep step)
           
 boolean save()
          Description of the Method
 void setBaseDir(java.lang.String basedir)
          Sets the baseDir attribute of the Target object
 void setBundle(boolean state)
          Sets the bundle attribute of the Target object
 void setCreator(CreatorInterface cr)
          Sets the creator attribute of the Target object
 void setDefaults()
          Sets the defaults attribute of the Target object
 void setDepends(java.lang.String depends)
          Sets the depends attribute of the Target object
 boolean setDescription(java.lang.String newdescription)
          Sets the description attribute of the Target object
 boolean setIncludedVersion(java.lang.String id, java.lang.String newversion)
          Sets the includedVersion attribute of the Target object
 boolean setItem(java.lang.String name, java.lang.Object item)
          Sets the item attribute of the Target object
 boolean setLicenseName(java.lang.String newlicensename)
          Sets the licenseName attribute of the Target object
 boolean setLicenseType(java.lang.String newlicensetype)
          Sets the licenseType attribute of the Target object
 boolean setLicenseVersion(java.lang.String newlicenseversion)
          Sets the licenseVersion attribute of the Target object
 boolean setMaintainer(java.lang.String newmaintainer)
          Sets the maintainer attribute of the Target object
 boolean setName(java.lang.String newname)
          Sets the name attribute of the Target object
 boolean setPackageContact(java.lang.String oldreason, java.lang.String newreason, java.lang.String oldname, java.lang.String newname, java.lang.String oldemail, java.lang.String newemail)
          Sets the packageContact attribute of the Target object
 boolean setPackageDepends(java.lang.String packageid, java.lang.String oldversion, java.lang.String oldversionmode, java.lang.String newversion, java.lang.String newversionmode)
          Sets the packageDepends attribute of the Target object
 boolean setPackageDeveloper(java.lang.String oldname, java.lang.String newname, java.lang.String oldcompany, java.lang.String newcompany)
          Sets the packageDeveloper attribute of the Target object
 boolean setPackageInitiator(java.lang.String oldname, java.lang.String newname, java.lang.String oldcompany, java.lang.String newcompany)
          Sets the packageInitiator attribute of the Target object
 boolean setPackageSupporter(java.lang.String oldcompany, java.lang.String newcompany)
          Sets the packageSupporter attribute of the Target object
 void setPath(java.lang.String path)
          Sets the path attribute of the Target object
 void setPublishProvider(java.lang.String publishprovider)
           
 void setPublishSharePassword(java.lang.String publishsharepassword)
           
 void setPublishState(boolean publishstate)
           
 void setType(java.lang.String type)
          Sets the type attribute of the Target object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Target

public Target(Project parent,
              java.lang.String name)
Constructor for the Target object

Parameters:
name - Description of the Parameter
Method Detail

getReader

public ExtendedDocumentReader getReader()
Gets the reader attribute of the Target object

Returns:
The reader value

getName

public java.lang.String getName()
Gets the name attribute of the Target object

Returns:
The name value

getDepends

public java.lang.String getDepends()
Gets the depends attribute of the Target object

Returns:
The depends value

getScreenshots

public java.util.ArrayList getScreenshots()

getStarturls

public java.util.ArrayList getStarturls()

getPath

public java.lang.String getPath()
Gets the path attribute of the Target object

Returns:
The path value

getFullPath

public java.lang.String getFullPath()

getType

public java.lang.String getType()
Gets the type attribute of the Target object

Returns:
The type value

setBundle

public void setBundle(boolean state)
Sets the bundle attribute of the Target object

Parameters:
state - The new bundle value

getState

public java.lang.String getState()

isBundle

public boolean isBundle()
Gets the bundle attribute of the Target object

Returns:
The bundle value

setCreator

public void setCreator(CreatorInterface cr)
Sets the creator attribute of the Target object

Parameters:
cr - The new creator value

getCreator

public CreatorInterface getCreator()

setDefaults

public void setDefaults()
Sets the defaults attribute of the Target object


setDepends

public void setDepends(java.lang.String depends)
Sets the depends attribute of the Target object

Parameters:
depends - The new depends value

setBaseDir

public void setBaseDir(java.lang.String basedir)
Sets the baseDir attribute of the Target object

Parameters:
basedir - The new baseDir value

getBaseDir

public java.lang.String getBaseDir()
Gets the baseDir attribute of the Target object

Returns:
The baseDir value

setPath

public void setPath(java.lang.String path)
Sets the path attribute of the Target object

Parameters:
path - The new path value

setType

public void setType(java.lang.String type)
Sets the type attribute of the Target object

Parameters:
type - The new type value

getLastVersion

public int getLastVersion()
Gets the lastVersion attribute of the Target object

Returns:
The lastVersion value

getNextVersion

public int getNextVersion()
Gets the nextVersion attribute of the Target object

Returns:
The nextVersion value

getLastDate

public java.lang.String getLastDate()
Gets the lastDate attribute of the Target object

Returns:
The lastDate value

createPackageThreaded

public void createPackageThreaded(int version)

createPackage

public boolean createPackage(int version)
Description of the Method

Parameters:
version - Description of the Parameter
Returns:
Description of the Return Value

addPackageDepends

public boolean addPackageDepends(java.lang.String packageid,
                                 java.lang.String version)
Adds a feature to the PackageDepends attribute of the Target object

Parameters:
packageid - The feature to be added to the PackageDepends attribute
version - The feature to be added to the PackageDepends attribute
Returns:
Description of the Return Value

addScreenshot

public void addScreenshot(java.lang.String name,
                          java.lang.String file,
                          java.lang.String description)

addStarturl

public void addStarturl(java.lang.String name,
                        java.lang.String link,
                        java.lang.String description)

delPackageDepends

public boolean delPackageDepends(java.lang.String packageid,
                                 java.lang.String version,
                                 java.lang.String versionmode)
Description of the Method

Parameters:
packageid - Description of the Parameter
version - Description of the Parameter
versionmode - Description of the Parameter
Returns:
Description of the Return Value

setPackageDepends

public boolean setPackageDepends(java.lang.String packageid,
                                 java.lang.String oldversion,
                                 java.lang.String oldversionmode,
                                 java.lang.String newversion,
                                 java.lang.String newversionmode)
Sets the packageDepends attribute of the Target object

Parameters:
packageid - The new packageDepends value
oldversion - The new packageDepends value
oldversionmode - The new packageDepends value
newversion - The new packageDepends value
newversionmode - The new packageDepends value
Returns:
Description of the Return Value

getPackageSteps

public java.util.Iterator getPackageSteps()
Gets the packageSteps attribute of the Target object

Returns:
The packageSteps value

getPackageSteps

public java.util.Iterator getPackageSteps(int logid)
Gets the packageSteps attribute of the Target object

Parameters:
logid - Description of the Parameter
Returns:
The packageSteps value

clearPackageSteps

public void clearPackageSteps()
Description of the Method


getMaintainer

public java.lang.String getMaintainer()
Gets the maintainer attribute of the Target object

Returns:
The maintainer value

getDescription

public java.lang.String getDescription()
Gets the description attribute of the Target object

Returns:
The description value

setDescription

public boolean setDescription(java.lang.String newdescription)
Sets the description attribute of the Target object

Parameters:
newdescription - The new description value
Returns:
Description of the Return Value

setName

public boolean setName(java.lang.String newname)
Sets the name attribute of the Target object

Parameters:
newname - The new name value
Returns:
Description of the Return Value

setMaintainer

public boolean setMaintainer(java.lang.String newmaintainer)
Sets the maintainer attribute of the Target object

Parameters:
newmaintainer - The new maintainer value
Returns:
Description of the Return Value

setLicenseVersion

public boolean setLicenseVersion(java.lang.String newlicenseversion)
Sets the licenseVersion attribute of the Target object

Parameters:
newlicenseversion - The new licenseVersion value
Returns:
Description of the Return Value

setLicenseType

public boolean setLicenseType(java.lang.String newlicensetype)
Sets the licenseType attribute of the Target object

Parameters:
newlicensetype - The new licenseType value
Returns:
Description of the Return Value

addPackageInitiator

public boolean addPackageInitiator(java.lang.String newname,
                                   java.lang.String newcompany)
Adds a feature to the PackageInitiator attribute of the Target object

Parameters:
newname - The feature to be added to the PackageInitiator attribute
newcompany - The feature to be added to the PackageInitiator attribute
Returns:
Description of the Return Value

setPackageInitiator

public boolean setPackageInitiator(java.lang.String oldname,
                                   java.lang.String newname,
                                   java.lang.String oldcompany,
                                   java.lang.String newcompany)
Sets the packageInitiator attribute of the Target object

Parameters:
oldname - The new packageInitiator value
newname - The new packageInitiator value
oldcompany - The new packageInitiator value
newcompany - The new packageInitiator value
Returns:
Description of the Return Value

delPackageInitiator

public boolean delPackageInitiator(java.lang.String oldname,
                                   java.lang.String oldcompany)
Description of the Method

Parameters:
oldname - Description of the Parameter
oldcompany - Description of the Parameter
Returns:
Description of the Return Value

addPackageContact

public boolean addPackageContact(java.lang.String newreason,
                                 java.lang.String newname,
                                 java.lang.String newemail)
Adds a feature to the PackageContact attribute of the Target object

Parameters:
newreason - The feature to be added to the PackageContact attribute
newname - The feature to be added to the PackageContact attribute
newemail - The feature to be added to the PackageContact attribute
Returns:
Description of the Return Value

setPackageContact

public boolean setPackageContact(java.lang.String oldreason,
                                 java.lang.String newreason,
                                 java.lang.String oldname,
                                 java.lang.String newname,
                                 java.lang.String oldemail,
                                 java.lang.String newemail)
Sets the packageContact attribute of the Target object

Parameters:
oldreason - The new packageContact value
newreason - The new packageContact value
oldname - The new packageContact value
newname - The new packageContact value
oldemail - The new packageContact value
newemail - The new packageContact value
Returns:
Description of the Return Value

delPackageContact

public boolean delPackageContact(java.lang.String oldreason,
                                 java.lang.String oldname,
                                 java.lang.String oldemail)
Description of the Method

Parameters:
oldreason - Description of the Parameter
oldname - Description of the Parameter
oldemail - Description of the Parameter
Returns:
Description of the Return Value

addPackageDeveloper

public boolean addPackageDeveloper(java.lang.String newname,
                                   java.lang.String newcompany)
Adds a feature to the PackageDeveloper attribute of the Target object

Parameters:
newname - The feature to be added to the PackageDeveloper attribute
newcompany - The feature to be added to the PackageDeveloper attribute
Returns:
Description of the Return Value

setPackageDeveloper

public boolean setPackageDeveloper(java.lang.String oldname,
                                   java.lang.String newname,
                                   java.lang.String oldcompany,
                                   java.lang.String newcompany)
Sets the packageDeveloper attribute of the Target object

Parameters:
oldname - The new packageDeveloper value
newname - The new packageDeveloper value
oldcompany - The new packageDeveloper value
newcompany - The new packageDeveloper value
Returns:
Description of the Return Value

delPackageDeveloper

public boolean delPackageDeveloper(java.lang.String oldname,
                                   java.lang.String oldcompany)
Description of the Method

Parameters:
oldname - Description of the Parameter
oldcompany - Description of the Parameter
Returns:
Description of the Return Value

addPackageSupporter

public boolean addPackageSupporter(java.lang.String newcompany)
Adds a feature to the PackageSupporter attribute of the Target object

Parameters:
newcompany - The feature to be added to the PackageSupporter attribute
Returns:
Description of the Return Value

setPackageSupporter

public boolean setPackageSupporter(java.lang.String oldcompany,
                                   java.lang.String newcompany)
Sets the packageSupporter attribute of the Target object

Parameters:
oldcompany - The new packageSupporter value
newcompany - The new packageSupporter value
Returns:
Description of the Return Value

delPackageSupporter

public boolean delPackageSupporter(java.lang.String oldcompany)
Description of the Method

Parameters:
oldcompany - Description of the Parameter
Returns:
Description of the Return Value

setLicenseName

public boolean setLicenseName(java.lang.String newlicensename)
Sets the licenseName attribute of the Target object

Parameters:
newlicensename - The new licenseName value
Returns:
Description of the Return Value

getReleaseNotes

public java.lang.String getReleaseNotes()
Gets the releaseNotes attribute of the Target object

Returns:
The releaseNotes value

getInstallationNotes

public java.lang.String getInstallationNotes()
Gets the installationNotes attribute of the Target object

Returns:
The installationNotes value

getPackageName

public java.lang.String getPackageName()
Gets the packageName attribute of the Target object

Returns:
The packageName value

getLicenseType

public java.lang.String getLicenseType()
Gets the licenseType attribute of the Target object

Returns:
The licenseType value

getLicenseName

public java.lang.String getLicenseName()
Gets the licenseName attribute of the Target object

Returns:
The licenseName value

getLicenseVersion

public java.lang.String getLicenseVersion()
Gets the licenseVersion attribute of the Target object

Returns:
The licenseVersion value

getRelatedPeople

public java.util.ArrayList getRelatedPeople(java.lang.String type)
Gets the relatedPeople attribute of the Target object

Parameters:
type - Description of the Parameter
Returns:
The relatedPeople value

getPackageDepends

public java.util.ArrayList getPackageDepends()
Gets the packageDepends attribute of the Target object

Returns:
The packageDepends value

getIncludedPackages

public java.util.ArrayList getIncludedPackages()
Gets the includedPackages attribute of the Target object

Returns:
The includedPackages value

addPackage

public boolean addPackage(java.lang.String newpackage)
Adds a feature to the Package attribute of the Target object

Parameters:
newpackage - The feature to be added to the Package attribute
Returns:
Description of the Return Value

setIncludedVersion

public boolean setIncludedVersion(java.lang.String id,
                                  java.lang.String newversion)
Sets the includedVersion attribute of the Target object

Parameters:
id - The new includedVersion value
newversion - The new includedVersion value
Returns:
Description of the Return Value

delIncludedPackage

public boolean delIncludedPackage(java.lang.String id)
Description of the Method

Parameters:
id - Description of the Parameter
Returns:
Description of the Return Value

setItem

public boolean setItem(java.lang.String name,
                       java.lang.Object item)
Sets the item attribute of the Target object

Parameters:
name - The new item value
item - The new item value
Returns:
Description of the Return Value

getItem

public java.lang.Object getItem(java.lang.String name)
Gets the item attribute of the Target object

Parameters:
name - Description of the Parameter
Returns:
The item value

save

public boolean save()
Description of the Method

Returns:
Description of the Return Value

hasSyntaxErrors

public boolean hasSyntaxErrors()
Description of the Method

Returns:
Description of the Return Value

getId

public java.lang.String getId()

setPublishProvider

public void setPublishProvider(java.lang.String publishprovider)

setPublishState

public void setPublishState(boolean publishstate)

setPublishSharePassword

public void setPublishSharePassword(java.lang.String publishsharepassword)

getPublishState

public boolean getPublishState()

getPublishProvider

public java.lang.String getPublishProvider()

getPublishSharePassword

public java.lang.String getPublishSharePassword()

publish

public boolean publish(int version,
                       packageStep step)

getParent

public Project getParent()

addRelatedTargetsCreate

public void addRelatedTargetsCreate(Target t)

getProgressBarValue

public int getProgressBarValue()

getSubProgressBarValue

public int getSubProgressBarValue()


packaging build ${version}