| | |
| | | { |
| | | ArrayList<ASN1OctetString> values = this.toASN1ArrayList(); |
| | | |
| | | if (values.size() == 0) |
| | | return ResultCode.SUCCESS; |
| | | |
| | | LDAPAttribute attr = |
| | | new LDAPAttribute(REPLICATION_STATE, values); |
| | | LDAPModification mod = new LDAPModification(ModificationType.REPLACE, attr); |
| | |
| | | } |
| | | return op.getResultCode(); |
| | | } |
| | | |
| | | /** |
| | | * Empty the ServerState. |
| | | * After this call the Server State will be in the same state |
| | | * as if it was just created. |
| | | */ |
| | | public void clearInMemory() |
| | | { |
| | | super.clear(); |
| | | this.savedStatus = false; |
| | | } |
| | | |
| | | /** |
| | | * Empty the ServerState. |
| | | * After this call the Server State will be in the same state |
| | | * as if it was just created. |
| | | */ |
| | | public void clear() |
| | | { |
| | | clearInMemory(); |
| | | save(); |
| | | } |
| | | } |