Package com.netscape.cmscore.request
Class RequestRecord
- java.lang.Object
-
- com.netscape.cmscore.request.RequestRecord
-
public class RequestRecord extends java.lang.Object implements IDBObj
A request record is the stored version of a request. It has a set of attributes that are mapped into LDAP attributes for actual directory operations.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_CREATE_TIMEstatic java.lang.StringATTR_EXT_DATAstatic java.lang.StringATTR_MODIFY_TIMEstatic java.lang.StringATTR_REALMstatic java.lang.StringATTR_REQUEST_IDstatic java.lang.StringATTR_REQUEST_OWNERstatic java.lang.StringATTR_REQUEST_STATEstatic java.lang.StringATTR_REQUEST_TYPEstatic java.lang.StringATTR_SOURCE_IDstatic org.slf4j.Loggerloggerprotected static java.util.Vector<java.lang.String>mAttrsprotected static java.lang.String[]mOC
-
Constructor Summary
Constructors Constructor Description RequestRecord()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(java.lang.String name)Removes attribute from the request.java.lang.Objectget(java.lang.String name)Gets the request attribute value by the name.java.util.Enumeration<java.lang.String>getAttrNames()Gets attribute names of the request.java.util.Enumeration<java.lang.String>getElements()Gets attribute list of the request.RequestIdgetRequestId()Gets the request ID.java.util.Enumeration<java.lang.String>getSerializableAttrNames()Returns a list of serializable attribute names.protected static java.util.Hashtable<java.lang.String,java.lang.Object>loadExtDataFromRequest(IRequest r)voidset(java.lang.String name, java.lang.Object o)Sets new attribute for the request.protected voidstoreExtDataIntoRequest(IRequest r)RequesttoRequest()
-
-
-
Field Detail
-
logger
public static org.slf4j.Logger logger
-
ATTR_REQUEST_ID
public static final java.lang.String ATTR_REQUEST_ID
- See Also:
- Constant Field Values
-
ATTR_REQUEST_STATE
public static final java.lang.String ATTR_REQUEST_STATE
- See Also:
- Constant Field Values
-
ATTR_CREATE_TIME
public static final java.lang.String ATTR_CREATE_TIME
- See Also:
- Constant Field Values
-
ATTR_MODIFY_TIME
public static final java.lang.String ATTR_MODIFY_TIME
- See Also:
- Constant Field Values
-
ATTR_SOURCE_ID
public static final java.lang.String ATTR_SOURCE_ID
- See Also:
- Constant Field Values
-
ATTR_REQUEST_OWNER
public static final java.lang.String ATTR_REQUEST_OWNER
- See Also:
- Constant Field Values
-
ATTR_REQUEST_TYPE
public static final java.lang.String ATTR_REQUEST_TYPE
- See Also:
- Constant Field Values
-
ATTR_EXT_DATA
public static final java.lang.String ATTR_EXT_DATA
- See Also:
- Constant Field Values
-
ATTR_REALM
public static final java.lang.String ATTR_REALM
- See Also:
- Constant Field Values
-
mOC
protected static final java.lang.String[] mOC
-
mAttrs
protected static java.util.Vector<java.lang.String> mAttrs
-
-
Method Detail
-
getRequestId
public RequestId getRequestId()
Gets the request ID.- Returns:
- request ID
-
getAttrNames
public java.util.Enumeration<java.lang.String> getAttrNames()
Gets attribute names of the request.- Returns:
- list of attribute names
-
get
public java.lang.Object get(java.lang.String name)
Gets the request attribute value by the name.
-
set
public void set(java.lang.String name, java.lang.Object o)Sets new attribute for the request.
-
delete
public void delete(java.lang.String name) throws EBaseExceptionRemoves attribute from the request.- Specified by:
deletein interfaceIAttrSet- Parameters:
name- attribute name- Throws:
EBaseException- on attribute handling errors.
-
getElements
public java.util.Enumeration<java.lang.String> getElements()
Gets attribute list of the request.- Specified by:
getElementsin interfaceIAttrSet- Returns:
- attribute list
-
getSerializableAttrNames
public java.util.Enumeration<java.lang.String> getSerializableAttrNames()
Description copied from interface:IDBObjReturns a list of serializable attribute names. This method should return the attribute name even if there is no attribute value for the attribute.- Specified by:
getSerializableAttrNamesin interfaceIDBObj- Returns:
- a list of serializable attribute names
-
loadExtDataFromRequest
protected static java.util.Hashtable<java.lang.String,java.lang.Object> loadExtDataFromRequest(IRequest r) throws EBaseException
- Throws:
EBaseException
-
storeExtDataIntoRequest
protected void storeExtDataIntoRequest(IRequest r) throws EBaseException
- Throws:
EBaseException
-
toRequest
public Request toRequest() throws EBaseException
- Throws:
EBaseException
-
-