|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.populate.apps.AbstractPopulateApp
| Field Summary | |
protected org.apache.log4j.Logger |
s_log
|
| Constructor Summary | |
AbstractPopulateApp()
|
|
| Method Summary | |
void |
createApp(String sTitle,
Application parent)
Create the application with title, sTitle and parent Application, parent |
Application |
getApp()
Returns the app instance created for populating data |
abstract ApplicationType |
getAppType()
Returns the application type of the app we are creating and populating |
abstract String |
getArgsDescription()
Returns a description of the arguments for populating this application |
String |
getBaseStringSeed()
Gets the BaseStringSeed used in populating data |
AppPortlet |
getPortlet()
Returns a new portlet for the populated application, if appropriate. |
protected abstract String |
getPortletType()
Returns the BaseDataObjectType of the portlet that getPortlet() returns |
abstract void |
populateApp(List args)
Populates the created app using the arguments in args. |
void |
setBaseStringSeed(String sSeed)
Sets the BaseStringSeed to use in populating data |
protected void |
validateArgs(List args,
int numArgs,
String sMsg)
Checks that the number of arguments in args is equal to numArgs. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.apache.log4j.Logger s_log
| Constructor Detail |
public AbstractPopulateApp()
| Method Detail |
public void setBaseStringSeed(String sSeed)
PopulateApp
setBaseStringSeed in interface PopulateAppsSeed - the seed value to use for generating String data in populationpublic String getBaseStringSeed()
PopulateApp
getBaseStringSeed in interface PopulateApp
public void createApp(String sTitle,
Application parent)
PopulateApp
createApp in interface PopulateAppsTitle - the title of the new app to create and populateparent - the parent application or null if there is nonepublic abstract void populateApp(List args)
PopulateApp
populateApp in interface PopulateAppargs - the arguments to use in populating the apppublic abstract String getArgsDescription()
PopulateApp
getArgsDescription in interface PopulateApppublic Application getApp()
PopulateApp
getApp in interface PopulateApppublic abstract ApplicationType getAppType()
PopulateApp
getAppType in interface PopulateApp
protected void validateArgs(List args,
int numArgs,
String sMsg)
throws IllegalArgumentException
args - List of arguments to checknumArgs - how many arguments should be theresMsg - message to throw if the number of arguments is wrong
IllegalArgumentExceptionpublic AppPortlet getPortlet()
PopulateApp
getPortlet in interface PopulateAppprotected abstract String getPortletType()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||