DLESE Tools
v1.6.0

org.dlese.dpc.services.dds.action.form
Class DDSRepositoryUpdateServiceForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.dlese.dpc.services.dds.action.form.DDSRepositoryUpdateServiceForm
All Implemented Interfaces:
Serializable

public class DDSRepositoryUpdateServiceForm
extends org.apache.struts.action.ActionForm
implements Serializable

A ActionForm bean that holds data for DDS repository update web service.

Author:
John Weatherley
See Also:
Serialized Form

Field Summary
static String ERROR_CODE_BADARGUMENT
           
static String ERROR_CODE_BADVERB
           
static String ERROR_CODE_ILLEGAL_OPERATION
           
static String ERROR_CODE_INTERNALSERVERERROR
           
static String ERROR_CODE_NOTAUTHORIZED
           
static String ERROR_CODE_SERVICE_DISABLED
           
static String RESULT_CODE_NO_SUCH_COLLECTION
           
static String RESULT_CODE_NO_SUCH_RECORD
           
static String RESULT_CODE_SUCCESS
           
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
DDSRepositoryUpdateServiceForm()
          Constructor for the RepositoryForm object
 
Method Summary
 String getAuthorizedFor()
          Gets the role name for which this user is authorized
 String getCollectionKey()
          Returns the value of collection.
protected static String getDs()
          Return a string for the current time and date, sutiable for display in log files and output to standout:
 String getErrorCode()
          Gets the errorCode attribute of the object
 String getErrorMsg()
          Returns the value of errorMsg.
 String getId()
          Gets the id attribute of the DDSRepositoryUpdateServiceForm object
 String getResponseDate()
          Gets the response date String.
 String getResultCode()
          Returns the value of resultCode.
 String getXmlFormat()
          Gets the xmlFormat attribute of the DDSRepositoryUpdateServiceForm object
protected  void prtln(String s)
          Output a line of text to standard out, with datestamp, if debug is set to true.
protected  void prtlnErr(String s)
          Output a line of text to error out, with datestamp.
 void setAuthorizedFor(String val)
          Sets the role name for which this user is authorized
 void setCollectionKey(String collectionKey)
          Sets the value of collection.
static void setDebug(boolean isDebugOuput)
          Sets the debug attribute
 void setErrorCode(String errorCode)
          Sets the errorCode attribute of the object
 void setErrorMsg(String errorMsg)
          Sets the value of errorMsg.
 void setId(String id)
          Sets the id attribute of the DDSRepositoryUpdateServiceForm object
 void setResultCode(String resultCode)
          Sets the value of resultCode.
 void setXmlFormat(String xmlFormat)
          Sets the xmlFormat attribute of the DDSRepositoryUpdateServiceForm object
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESULT_CODE_SUCCESS

public static final String RESULT_CODE_SUCCESS
See Also:
Constant Field Values

RESULT_CODE_NO_SUCH_RECORD

public static final String RESULT_CODE_NO_SUCH_RECORD
See Also:
Constant Field Values

RESULT_CODE_NO_SUCH_COLLECTION

public static final String RESULT_CODE_NO_SUCH_COLLECTION
See Also:
Constant Field Values

ERROR_CODE_BADARGUMENT

public static final String ERROR_CODE_BADARGUMENT
See Also:
Constant Field Values

ERROR_CODE_BADVERB

public static final String ERROR_CODE_BADVERB
See Also:
Constant Field Values

ERROR_CODE_NOTAUTHORIZED

public static final String ERROR_CODE_NOTAUTHORIZED
See Also:
Constant Field Values

ERROR_CODE_INTERNALSERVERERROR

public static final String ERROR_CODE_INTERNALSERVERERROR
See Also:
Constant Field Values

ERROR_CODE_SERVICE_DISABLED

public static final String ERROR_CODE_SERVICE_DISABLED
See Also:
Constant Field Values

ERROR_CODE_ILLEGAL_OPERATION

public static final String ERROR_CODE_ILLEGAL_OPERATION
See Also:
Constant Field Values
Constructor Detail

DDSRepositoryUpdateServiceForm

public DDSRepositoryUpdateServiceForm()
Constructor for the RepositoryForm object

Method Detail

getId

public String getId()
Gets the id attribute of the DDSRepositoryUpdateServiceForm object

Returns:
The id value

setId

public void setId(String id)
Sets the id attribute of the DDSRepositoryUpdateServiceForm object

Parameters:
id - The new id value

getCollectionKey

public String getCollectionKey()
Returns the value of collection.

Returns:
The collection value

setCollectionKey

public void setCollectionKey(String collectionKey)
Sets the value of collection.

Parameters:
collection - The value to assign collection.

getXmlFormat

public String getXmlFormat()
Gets the xmlFormat attribute of the DDSRepositoryUpdateServiceForm object

Returns:
The xmlFormat value

setXmlFormat

public void setXmlFormat(String xmlFormat)
Sets the xmlFormat attribute of the DDSRepositoryUpdateServiceForm object

Parameters:
xmlFormat - The new xmlFormat value

getResponseDate

public String getResponseDate()
Gets the response date String.

Returns:
The response date String

getErrorMsg

public String getErrorMsg()
Returns the value of errorMsg.

Returns:
The errorMsg value

setErrorMsg

public void setErrorMsg(String errorMsg)
Sets the value of errorMsg.

Parameters:
errorMsg - The value to assign errorMsg.

getResultCode

public String getResultCode()
Returns the value of resultCode.


setResultCode

public void setResultCode(String resultCode)
Sets the value of resultCode.

Parameters:
resultCode - The value to assign resultCode.

getErrorCode

public String getErrorCode()
Gets the errorCode attribute of the object

Returns:
The errorCode value

setErrorCode

public void setErrorCode(String errorCode)
Sets the errorCode attribute of the object

Parameters:
errorMsg - The new errorMsg value

getAuthorizedFor

public String getAuthorizedFor()
Gets the role name for which this user is authorized

Returns:
The authorizedFor value

setAuthorizedFor

public void setAuthorizedFor(String val)
Sets the role name for which this user is authorized

Parameters:
val - The new authorizedFor value

getDs

protected static final String getDs()
Return a string for the current time and date, sutiable for display in log files and output to standout:

Returns:
The dateStamp value

prtlnErr

protected final void prtlnErr(String s)
Output a line of text to error out, with datestamp.

Parameters:
s - The text that will be output to error out.

prtln

protected final void prtln(String s)
Output a line of text to standard out, with datestamp, if debug is set to true.

Parameters:
s - The String that will be output.

setDebug

public static void setDebug(boolean isDebugOuput)
Sets the debug attribute

Parameters:
isDebugOuput - The new debug value

DLESE Tools
v1.6.0