Class DDSRepositoryUpdateServiceForm
java.lang.Object
org.apache.struts.action.ActionForm
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the role name for which this user is authorizedReturns the value of collection.protected static final StringgetDs()Return a string for the current time and date, sutiable for display in log files and output to standout:Gets the errorCode attribute of the objectReturns the value of errorMsg.getId()Gets the id attribute of the DDSRepositoryUpdateServiceForm objectGets the response date String.Returns the value of resultCode.Gets the xmlFormat attribute of the DDSRepositoryUpdateServiceForm objectprotected final voidOutput a line of text to standard out, with datestamp, if debug is set to true.protected final voidOutput a line of text to error out, with datestamp.voidsetAuthorizedFor(String val) Sets the role name for which this user is authorizedvoidsetCollectionKey(String collectionKey) Sets the value of collection.static voidsetDebug(boolean isDebugOuput) Sets the debug attributevoidsetErrorCode(String errorCode) Sets the errorCode attribute of the objectvoidsetErrorMsg(String errorMsg) Sets the value of errorMsg.voidSets the id attribute of the DDSRepositoryUpdateServiceForm objectvoidsetResultCode(String resultCode) Sets the value of resultCode.voidsetXmlFormat(String xmlFormat) Sets the xmlFormat attribute of the DDSRepositoryUpdateServiceForm objectMethods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate
-
Field Details
-
RESULT_CODE_SUCCESS
- See Also:
-
RESULT_CODE_NO_SUCH_RECORD
- See Also:
-
RESULT_CODE_NO_SUCH_COLLECTION
- See Also:
-
ERROR_CODE_BADARGUMENT
- See Also:
-
ERROR_CODE_BADVERB
- See Also:
-
ERROR_CODE_NOTAUTHORIZED
- See Also:
-
ERROR_CODE_INTERNALSERVERERROR
- See Also:
-
ERROR_CODE_SERVICE_DISABLED
- See Also:
-
ERROR_CODE_ILLEGAL_OPERATION
- See Also:
-
-
Constructor Details
-
DDSRepositoryUpdateServiceForm
public DDSRepositoryUpdateServiceForm()Constructor for the RepositoryForm object
-
-
Method Details
-
getId
Gets the id attribute of the DDSRepositoryUpdateServiceForm object- Returns:
- The id value
-
setId
Sets the id attribute of the DDSRepositoryUpdateServiceForm object- Parameters:
id- The new id value
-
getCollectionKey
Returns the value of collection.- Returns:
- The collection value
-
setCollectionKey
Sets the value of collection.- Parameters:
collection- The value to assign collection.
-
getXmlFormat
Gets the xmlFormat attribute of the DDSRepositoryUpdateServiceForm object- Returns:
- The xmlFormat value
-
setXmlFormat
Sets the xmlFormat attribute of the DDSRepositoryUpdateServiceForm object- Parameters:
xmlFormat- The new xmlFormat value
-
getResponseDate
Gets the response date String.- Returns:
- The response date String
-
getErrorMsg
Returns the value of errorMsg.- Returns:
- The errorMsg value
-
setErrorMsg
Sets the value of errorMsg.- Parameters:
errorMsg- The value to assign errorMsg.
-
getResultCode
Returns the value of resultCode. -
setResultCode
Sets the value of resultCode.- Parameters:
resultCode- The value to assign resultCode.
-
getErrorCode
Gets the errorCode attribute of the object- Returns:
- The errorCode value
-
setErrorCode
Sets the errorCode attribute of the object- Parameters:
errorMsg- The new errorMsg value
-
getAuthorizedFor
Gets the role name for which this user is authorized- Returns:
- The authorizedFor value
-
setAuthorizedFor
Sets the role name for which this user is authorized- Parameters:
val- The new authorizedFor value
-
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
Output a line of text to error out, with datestamp.- Parameters:
s- The text that will be output to error out.
-
prtln
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
-