| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | * |
| | | * @return The DN of the entry in a raw, unparsed form. |
| | | */ |
| | | public abstract ByteString getRawEntryDN(); |
| | | ByteString getRawEntryDN(); |
| | | |
| | | /** |
| | | * Specifies the raw entry DN for the entry to add. This should only be |
| | |
| | | * |
| | | * @param rawEntryDN The raw entry DN for the entry to add. |
| | | */ |
| | | public abstract void setRawEntryDN(ByteString rawEntryDN); |
| | | void setRawEntryDN(ByteString rawEntryDN); |
| | | |
| | | /** |
| | | * Retrieves the DN of the entry to add. This method should not be called |
| | |
| | | * @return The DN of the entry to add, or <CODE>null</CODE> if it has not yet |
| | | * been parsed from the raw DN. |
| | | */ |
| | | public abstract DN getEntryDN(); |
| | | DN getEntryDN(); |
| | | |
| | | /** |
| | | * Retrieves the set of attributes in their raw, unparsed form as read from |
| | |
| | | * @return The set of attributes in their raw, unparsed form as read from the |
| | | * client request. |
| | | */ |
| | | public abstract List<RawAttribute> getRawAttributes(); |
| | | List<RawAttribute> getRawAttributes(); |
| | | |
| | | /** |
| | | * Adds the provided attribute to the set of raw attributes for this add |
| | |
| | | * @param rawAttribute The attribute to add to the set of raw attributes for |
| | | * this add operation. |
| | | */ |
| | | public abstract void addRawAttribute(RawAttribute rawAttribute); |
| | | void addRawAttribute(RawAttribute rawAttribute); |
| | | |
| | | /** |
| | | * Replaces the set of raw attributes for this add operation. This should |
| | |
| | | * |
| | | * @param rawAttributes The set of raw attributes for this add operation. |
| | | */ |
| | | public abstract void setRawAttributes(List<RawAttribute> rawAttributes); |
| | | void setRawAttributes(List<RawAttribute> rawAttributes); |
| | | |
| | | /** |
| | | * Retrieves the set of processed user attributes for the entry to add. This |
| | |
| | | * @return The set of processed user attributes for the entry to add, or |
| | | * <CODE>null</CODE> if that information is not yet available. |
| | | */ |
| | | public abstract Map<AttributeType, List<Attribute>> getUserAttributes(); |
| | | Map<AttributeType, List<Attribute>> getUserAttributes(); |
| | | |
| | | /** |
| | | * Sets the specified attribute in the entry to add, overwriting any existing |
| | |
| | | * @param attributeType The attribute type for the attribute. |
| | | * @param attributeList The attribute list for the provided attribute type. |
| | | */ |
| | | public abstract void setAttribute(AttributeType attributeType, |
| | | List<Attribute> attributeList); |
| | | void setAttribute(AttributeType attributeType, List<Attribute> attributeList); |
| | | |
| | | /** |
| | | * Removes the specified attribute from the entry to add. This should only be |
| | |
| | | * |
| | | * @param attributeType The attribute tyep for the attribute to remove. |
| | | */ |
| | | public abstract void removeAttribute(AttributeType attributeType); |
| | | |
| | | /** |
| | | * Retrieves the change number that has been assigned to this operation. |
| | | * |
| | | * @return The change number that has been assigned to this operation, or -1 |
| | | * if none has been assigned yet or if there is no applicable |
| | | * synchronization mechanism in place that uses change numbers. |
| | | */ |
| | | public abstract long getChangeNumber(); |
| | | |
| | | /** |
| | | * Specifies the change number that has been assigned to this operation by the |
| | | * synchronization mechanism. |
| | | * |
| | | * @param changeNumber The change number that has been assigned to this |
| | | * operation by the synchronization mechanism. |
| | | */ |
| | | public abstract void setChangeNumber(long changeNumber); |
| | | void removeAttribute(AttributeType attributeType); |
| | | |
| | | /** |
| | | * Retrieves the set of processed objectclasses for the entry to add. This |
| | |
| | | * @return The set of processed objectclasses for the entry to add, or |
| | | * <CODE>null</CODE> if that information is not yet available. |
| | | */ |
| | | public abstract Map<ObjectClass,String> getObjectClasses(); |
| | | Map<ObjectClass, String> getObjectClasses(); |
| | | |
| | | /** |
| | | * Adds the provided objectclass to the entry to add. This should only be |
| | |
| | | * @param objectClass The objectclass to add to the entry. |
| | | * @param name The name to use for the objectclass. |
| | | */ |
| | | public abstract void addObjectClass(ObjectClass objectClass, String name); |
| | | void addObjectClass(ObjectClass objectClass, String name); |
| | | |
| | | /** |
| | | * Removes the provided objectclass from the entry to add. This should only |
| | |
| | | * |
| | | * @param objectClass The objectclass to remove from the entry. |
| | | */ |
| | | public abstract void removeObjectClass(ObjectClass objectClass); |
| | | void removeObjectClass(ObjectClass objectClass); |
| | | |
| | | /** |
| | | * Retrieves the set of processed operational attributes for the entry to add. |
| | |
| | | * @return The set of processed operational attributes for the entry to add, |
| | | * or <CODE>null</CODE> if that information is not yet available. |
| | | */ |
| | | public abstract Map<AttributeType,List<Attribute>> getOperationalAttributes(); |
| | | Map<AttributeType, List<Attribute>> getOperationalAttributes(); |
| | | |
| | | /** |
| | | * Retrieves the proxied authorization DN for this operation if proxied |
| | |
| | | * authorization has been requested, or {@code null} if proxied |
| | | * authorization has not been requested. |
| | | */ |
| | | public abstract DN getProxiedAuthorizationDN(); |
| | | DN getProxiedAuthorizationDN(); |
| | | |
| | | /** |
| | | * Set the proxied authorization DN for this operation if proxied |
| | |
| | | * authorization has been requested, or {@code null} if proxied |
| | | * authorization has not been requested. |
| | | */ |
| | | public abstract void setProxiedAuthorizationDN(DN proxiedAuthorizationDN); |
| | | void setProxiedAuthorizationDN(DN proxiedAuthorizationDN); |
| | | |
| | | } |