| | |
| | | */ |
| | | public ModifyRequestProtocolOp(ASN1OctetString dn) |
| | | { |
| | | |
| | | this.dn = dn; |
| | | this.modifications = new ArrayList<LDAPModification>(); |
| | | } |
| | |
| | | public ModifyRequestProtocolOp(ASN1OctetString dn, |
| | | ArrayList<LDAPModification> modifications) |
| | | { |
| | | |
| | | this.dn = dn; |
| | | |
| | | if (modifications == null) |
| | |
| | | */ |
| | | public ASN1OctetString getDN() |
| | | { |
| | | |
| | | return dn; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setDN(ASN1OctetString dn) |
| | | { |
| | | |
| | | this.dn = dn; |
| | | } |
| | | |
| | |
| | | */ |
| | | public ArrayList<LDAPModification> getModifications() |
| | | { |
| | | |
| | | return modifications; |
| | | } |
| | | |
| | |
| | | */ |
| | | public byte getType() |
| | | { |
| | | |
| | | return OP_TYPE_MODIFY_REQUEST; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getProtocolOpName() |
| | | { |
| | | |
| | | return "Modify Request"; |
| | | } |
| | | |
| | |
| | | */ |
| | | public ASN1Element encode() |
| | | { |
| | | |
| | | ArrayList<ASN1Element> elements = new ArrayList<ASN1Element>(2); |
| | | elements.add(dn); |
| | | |
| | |
| | | public static ModifyRequestProtocolOp decodeModifyRequest(ASN1Element element) |
| | | throws LDAPException |
| | | { |
| | | |
| | | ArrayList<ASN1Element> elements; |
| | | try |
| | | { |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append("ModifyRequest(dn="); |
| | | dn.toString(buffer); |
| | | buffer.append(", mods={"); |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer, int indent) |
| | | { |
| | | |
| | | StringBuilder indentBuf = new StringBuilder(indent); |
| | | for (int i=0 ; i < indent; i++) |
| | | { |