directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
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 GMT
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 <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+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 <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @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;
+    }
+}



Mime
View raw message