Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 31371 invoked from network); 29 Jan 2011 08:41:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Jan 2011 08:41:25 -0000 Received: (qmail 37913 invoked by uid 500); 29 Jan 2011 08:41:25 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 37861 invoked by uid 500); 29 Jan 2011 08:41:24 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 37853 invoked by uid 99); 29 Jan 2011 08:41:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Jan 2011 08:41:23 +0000 X-ASF-Spam-Status: No, hits=-1996.4 required=5.0 tests=ALL_TRUSTED,FS_REPLICA X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Jan 2011 08:41:22 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0EFB02388A36; Sat, 29 Jan 2011 08:41:02 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1064982 - in /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncStateValue: ISyncStateValue.java SyncStateValue.java Date: Sat, 29 Jan 2011 08:41:02 -0000 To: commits@directory.apache.org From: akarasulu@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110129084102.0EFB02388A36@eris.apache.org> Author: akarasulu Date: Sat Jan 29 08:41:01 2011 New Revision: 1064982 URL: http://svn.apache.org/viewvc?rev=1064982&view=rev Log: forgot some java files Added: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncStateValue/ISyncStateValue.java directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncStateValue/SyncStateValue.java Added: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncStateValue/ISyncStateValue.java URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncStateValue/ISyncStateValue.java?rev=1064982&view=auto ============================================================================== --- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncStateValue/ISyncStateValue.java (added) +++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncStateValue/ISyncStateValue.java Sat Jan 29 08:41:01 2011 @@ -0,0 +1,77 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +package org.apache.directory.shared.ldap.codec.controls.replication.syncStateValue; + + +import org.apache.directory.shared.ldap.message.control.replication.SyncStateTypeEnum; +import org.apache.directory.shared.ldap.model.message.Control; + + +/** + * A syncStateValue object, as defined in RFC 4533 + * + * @author Apache Directory Project + */ +public interface ISyncStateValue extends Control +{ + /** This control OID */ + public static final String OID = "1.3.6.1.4.1.4203.1.9.1.2"; + + + /** + * @return the cookie + */ + public abstract byte[] getCookie(); + + + /** + * @param cookie the cookie to set + */ + public abstract void setCookie( byte[] cookie ); + + + /** + * @return the syncState's type + */ + public abstract SyncStateTypeEnum getSyncStateType(); + + + /** + * set the syncState's type + * + * @param syncStateType the syncState's type + */ + public abstract void setSyncStateType( SyncStateTypeEnum syncStateType ); + + + /** + * @return the entryUUID + */ + public abstract byte[] getEntryUUID(); + + + /** + * set the entryUUID + * + * @param entryUUID the entryUUID + */ + public abstract void setEntryUUID( byte[] entryUUID ); + +} \ No newline at end of file Added: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncStateValue/SyncStateValue.java URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncStateValue/SyncStateValue.java?rev=1064982&view=auto ============================================================================== --- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncStateValue/SyncStateValue.java (added) +++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/controls/replication/syncStateValue/SyncStateValue.java Sat Jan 29 08:41:01 2011 @@ -0,0 +1,120 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +package org.apache.directory.shared.ldap.codec.controls.replication.syncStateValue; + + +import org.apache.directory.shared.ldap.message.control.replication.SyncStateTypeEnum; +import org.apache.directory.shared.ldap.model.message.Control; + + +/** + * A simple SyncStateValue {@link Control} implementation. + * + * @author Apache Directory Project + * @version $Rev$, $Date$ + */ +public class SyncStateValue implements ISyncStateValue +{ + private boolean critical; + private byte[] cookie; + private byte[] entryUuid; + private SyncStateTypeEnum type; + + + /** + * {@inheritDoc} + */ + public String getOid() + { + return OID; + } + + + /** + * {@inheritDoc} + */ + public boolean isCritical() + { + return critical; + } + + + /** + * {@inheritDoc} + */ + public void setCritical( boolean isCritical ) + { + this.critical = isCritical; + } + + + /** + * {@inheritDoc} + */ + public byte[] getCookie() + { + return cookie; + } + + + /** + * {@inheritDoc} + */ + public void setCookie( byte[] cookie ) + { + this.cookie = cookie; + } + + + /** + * {@inheritDoc} + */ + public SyncStateTypeEnum getSyncStateType() + { + return type; + } + + + /** + * {@inheritDoc} + */ + public void setSyncStateType( SyncStateTypeEnum syncStateType ) + { + this.type = syncStateType; + } + + + /** + * {@inheritDoc} + */ + public byte[] getEntryUUID() + { + return entryUuid; + } + + + /** + * {@inheritDoc} + */ + public void setEntryUUID( byte[] entryUUID ) + { + this.entryUuid = entryUUID; + } +}