Class RequestRecord

  • All Implemented Interfaces:
    IAttrSet, IDBObj, java.io.Serializable

    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 Detail

      • logger

        public static org.slf4j.Logger logger
      • 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_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
      • mOC

        protected static final java.lang.String[] mOC
      • mAttrs

        protected static java.util.Vector<java.lang.String> mAttrs
    • Constructor Detail

      • RequestRecord

        public RequestRecord()
    • 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.
        Specified by:
        get in interface IAttrSet
        Parameters:
        name - attribute name
        Returns:
        attribute value
      • set

        public void set​(java.lang.String name,
                        java.lang.Object o)
        Sets new attribute for the request.
        Specified by:
        set in interface IAttrSet
        Parameters:
        name - attribute name
        o - attribute value
      • delete

        public void delete​(java.lang.String name)
                    throws EBaseException
        Removes attribute from the request.
        Specified by:
        delete in interface IAttrSet
        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:
        getElements in interface IAttrSet
        Returns:
        attribute list
      • getSerializableAttrNames

        public java.util.Enumeration<java.lang.String> getSerializableAttrNames()
        Description copied from interface: IDBObj
        Returns 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:
        getSerializableAttrNames in interface IDBObj
        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