Add methods to various operations in order to get the target entry (or, in the
case of modify and modify DN operations, both the before and after entries).
The entries will not be available for use in pre-parse plugins, and in some
cases they may not be available for conflict resolution synchronization
processing.
OpenDS Issue #: 552
| | |
| | | // The processed DN of the entry to add. |
| | | private DN entryDN; |
| | | |
| | | // The entry being added to the server. |
| | | private Entry entry; |
| | | |
| | | // The set of attributes (including the objectclass attribute) in a raw, |
| | | // unprocessed form as provided in the request. One or more of these |
| | | // attributes may be invalid. |
| | |
| | | |
| | | responseControls = new ArrayList<Control>(); |
| | | cancelRequest = null; |
| | | entry = null; |
| | | entryDN = null; |
| | | userAttributes = null; |
| | | operationalAttributes = null; |
| | |
| | | this.userAttributes = userAttributes; |
| | | this.operationalAttributes = operationalAttributes; |
| | | |
| | | entry = null; |
| | | |
| | | rawEntryDN = new ASN1OctetString(entryDN.toString()); |
| | | |
| | | rawAttributes = new ArrayList<LDAPAttribute>(); |
| | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the entry to be added to the server. Note that this will not be |
| | | * available to pre-parse plugins or during the conflict resolution portion of |
| | | * the synchronization processing. |
| | | * |
| | | * @return The entry to be added to the server, or <CODE>null</CODE> if it is |
| | | * not yet available. |
| | | */ |
| | | public Entry getEntryToAdd() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getEntryToAdd"); |
| | | |
| | | return entry; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the time that processing started for this operation. |
| | | * |
| | | * @return The time that processing started for this operation. |
| | |
| | | // Start the processing timer. |
| | | processingStartTime = System.currentTimeMillis(); |
| | | setResultCode(ResultCode.UNDEFINED); |
| | | Entry entry = null; |
| | | |
| | | |
| | | // Check for and handle a request to cancel this operation. |
| | |
| | | // The DN of the entry for the compare operation. |
| | | private DN entryDN; |
| | | |
| | | // The entry to be compared. |
| | | private Entry entry; |
| | | |
| | | // The set of response controls for this compare operation. |
| | | private List<Control> responseControls; |
| | | |
| | |
| | | this.assertionValue = assertionValue; |
| | | |
| | | responseControls = new ArrayList<Control>(); |
| | | entry = null; |
| | | entryDN = null; |
| | | attributeType = null; |
| | | cancelRequest = null; |
| | |
| | | rawEntryDN = new ASN1OctetString(entryDN.toString()); |
| | | rawAttributeType = attributeType.getNameOrOID(); |
| | | cancelRequest = null; |
| | | entry = null; |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the entry to target with the compare operation. It will not be |
| | | * available to pre-parse plugins. |
| | | * |
| | | * @return The entry to target with the compare operation, or |
| | | * <CODE>null</CODE> if the entry is not yet available. |
| | | */ |
| | | public Entry getEntryToCompare() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getEntryToCompare"); |
| | | |
| | | return entry; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the time that processing started for this operation. |
| | | * |
| | | * @return The time that processing started for this operation. |
| | |
| | | try |
| | | { |
| | | // Get the entry. If it does not exist, then fail. |
| | | Entry entry = null; |
| | | try |
| | | { |
| | | entry = DirectoryServer.getEntry(entryDN); |
| | |
| | | // The DN of the entry for the delete operation. |
| | | private DN entryDN; |
| | | |
| | | // The entry to be deleted. |
| | | private Entry entry; |
| | | |
| | | // The set of response controls for this delete operation. |
| | | private List<Control> responseControls; |
| | | |
| | |
| | | |
| | | this.rawEntryDN = rawEntryDN; |
| | | |
| | | entry = null; |
| | | entryDN = null; |
| | | responseControls = new ArrayList<Control>(); |
| | | cancelRequest = null; |
| | |
| | | responseControls = new ArrayList<Control>(); |
| | | cancelRequest = null; |
| | | changeNumber = -1; |
| | | entry = null; |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the entry to be deleted. This will not be available to pre-parse |
| | | * plugins. |
| | | * |
| | | * @return The entry to be deleted, or <CODE>null</CODE> if the entry is not |
| | | * yet available. |
| | | */ |
| | | public Entry getEntryToDelete() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getEntryToDelete"); |
| | | |
| | | return entry; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the time that processing started for this operation. |
| | | * |
| | | * @return The time that processing started for this operation. |
| | |
| | | assert debugEnter(CLASS_NAME, "run"); |
| | | |
| | | setResultCode(ResultCode.UNDEFINED); |
| | | Entry entry = null; |
| | | |
| | | |
| | | // Get the plugin config manager that will be used for invoking plugins. |
| | |
| | | // The new parent for the entry. |
| | | private DN newSuperior; |
| | | |
| | | // The current entry, before it is renamed. |
| | | private Entry currentEntry; |
| | | |
| | | // The new entry, as it will appear after it has been renamed. |
| | | private Entry newEntry; |
| | | |
| | | // The set of response controls for this modify DN operation. |
| | | private List<Control> responseControls; |
| | | |
| | |
| | | cancelRequest = null; |
| | | modifications = null; |
| | | changeNumber = -1; |
| | | currentEntry = null; |
| | | newEntry = null; |
| | | } |
| | | |
| | | |
| | |
| | | cancelRequest = null; |
| | | modifications = null; |
| | | changeNumber = -1; |
| | | currentEntry = null; |
| | | newEntry = null; |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the current entry, before it is renamed. This will not be |
| | | * available to pre-parse plugins or during the conflict resolution portion of |
| | | * the synchronization processing. |
| | | * |
| | | * @return The current entry, or <CODE>null</CODE> if it is not yet |
| | | * available. |
| | | */ |
| | | public Entry getOriginalEntry() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getOriginalEntry"); |
| | | |
| | | return currentEntry; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the new entry, as it will appear after it is renamed. This will |
| | | * not be available to pre-parse plugins or during the conflict resolution |
| | | * portion of the synchronization processing. |
| | | * |
| | | * @return The updated entry, or <CODE>null</CODE> if it is not yet |
| | | * available. |
| | | */ |
| | | public Entry getUpdatedEntry() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getUpdatedEntry"); |
| | | |
| | | return newEntry; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the time that processing started for this operation. |
| | | * |
| | | * @return The time that processing started for this operation. |
| | |
| | | assert debugEnter(CLASS_NAME, "run"); |
| | | |
| | | setResultCode(ResultCode.UNDEFINED); |
| | | Entry currentEntry = null; |
| | | Entry newEntry = null; |
| | | |
| | | |
| | | // Get the plugin config manager that will be used for invoking plugins. |
| | |
| | | // The DN of the entry for the modify operation. |
| | | private DN entryDN; |
| | | |
| | | // The current entry, before any changes are applied. |
| | | private Entry currentEntry; |
| | | |
| | | // The modified entry that will be stored in the backend. |
| | | private Entry modifiedEntry; |
| | | |
| | |
| | | |
| | | entryDN = null; |
| | | modifications = null; |
| | | currentEntry = null; |
| | | modifiedEntry = null; |
| | | responseControls = new ArrayList<Control>(); |
| | | cancelRequest = null; |
| | |
| | | new LDAPAttribute(m.getAttribute()))); |
| | | } |
| | | |
| | | currentEntry = null; |
| | | modifiedEntry = null; |
| | | responseControls = new ArrayList<Control>(); |
| | | cancelRequest = null; |
| | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the current entry before any modifications are applied. This |
| | | * will not be available to pre-parse plugins. |
| | | * |
| | | * @return The current entry, or <CODE>null</CODE> if it is not yet |
| | | * available. |
| | | */ |
| | | public Entry getCurrentEntry() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getCurrentEntry"); |
| | | |
| | | return currentEntry; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the modified entry that is to be written to the backend. This |
| | | * will be available to pre-operation plugins, and if such a plugin does make |
| | | * a change to this entry, then it is also necessary to add that change to |
| | |
| | | assert debugEnter(CLASS_NAME, "run"); |
| | | |
| | | setResultCode(ResultCode.UNDEFINED); |
| | | Entry currentEntry = null; |
| | | |
| | | |
| | | // Get the plugin config manager that will be used for invoking plugins. |