public class DeployWarService extends BaseAdminObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME |
static java.lang.String |
ERROR_NO_FILE |
Constructor and Description |
---|
DeployWarService()
Default constructor
|
DeployWarService(java.lang.String logId)
Constructor taking a String used to identify a logging record.
|
Modifier and Type | Method and Description |
---|---|
void |
addToPageReg(PageTO page)
Add a new page record to the pageregistry.xml file.
|
boolean |
addToPortletContexts(java.lang.String context) |
static java.lang.String |
mapToEntrySetString(java.util.Map inputMap) |
boolean |
pageExists(java.lang.String pageName) |
java.lang.String |
processFileUpload(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Does the work of this service to deploy a portlet war file.
|
java.lang.String |
readFileToString(java.io.File file)
Puts the contents of a file into a String.
|
void |
savePageLayout(javax.portlet.ActionRequest req) |
void |
setPage(javax.portlet.ActionRequest req)
Sets the page information into a PageTO object that is loaded into the
session.
|
void |
writeStringToFile(java.io.File file,
java.lang.String contents)
Writes the contents of a file into a String.
|
logDebug, logError, logError, logMethodEnd, logMethodEnd, logMethodStart, logParam, logParam, logParam, logVar, logVar, logVar, logWarn
public static final java.lang.String ERROR_NO_FILE
public static final java.lang.String CLASS_NAME
public DeployWarService()
public DeployWarService(java.lang.String logId)
logId
- public java.lang.String processFileUpload(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
request
- DeployWarService request object.response
- DeployWarService response object.public static java.lang.String mapToEntrySetString(java.util.Map inputMap)
public void setPage(javax.portlet.ActionRequest req)
req
- public void savePageLayout(javax.portlet.ActionRequest req)
public void addToPageReg(PageTO page)
page
- The new page to addpublic boolean addToPortletContexts(java.lang.String context)
public boolean pageExists(java.lang.String pageName)
public java.lang.String readFileToString(java.io.File file)
file
- The File to readpublic void writeStringToFile(java.io.File file, java.lang.String contents)
file
- Te File to write.contents
- The String to add to the file.Copyright © 2003-2013 . All Rights Reserved.