Hi,

I have checked the various interfaces we have. Here is some first result.

The OperationManager interface defines those methods :
*    void add( AddOperationContext opContext ) throws Exception;
*    void bind( BindOperationContext opContext ) throws Exception;
   boolean compare( CompareOperationContext opContext) throws Exception;
*    void delete( DeleteOperationContext opContext ) throws Exception;
LdapDN getMatchedName( GetMatchedNameOperationContext opContext ) throws Exception; ClonedServerEntry getRootDSE( GetRootDSEOperationContext opContext ) throws Exception; LdapDN getSuffix ( GetSuffixOperationContext opContext ) throws Exception;
*    boolean hasEntry( EntryOperationContext opContext ) throws Exception;
* EntryFilteringCursor list( ListOperationContext opContext ) throws Exception; Set<String> listSuffixes( ListSuffixOperationContext opContext ) throws Exception; * ClonedServerEntry lookup( LookupOperationContext opContext ) throws Exception;
*    void modify( ModifyOperationContext opContext ) throws Exception;
*    void move( MoveOperationContext opContext ) throws Exception;
* void moveAndRename( MoveAndRenameOperationContext opContext ) throws Exception;
*    void rename( RenameOperationContext opContext ) throws Exception;
* EntryFilteringCursor search( SearchOperationContext opContext ) throws Exception;
*    void unbind( UnbindOperationContext opContext ) throws Exception;

The Partition interface defines those methods :
*    void add( AddOperationContext opContext ) throws Exception;
*    void bind( BindOperationContext opContext ) throws Exception;
*    void delete( DeleteOperationContext opContext ) throws Exception;
   void destroy() throws Exception;
   int getCacheSize();
   String getId();
   String getSuffix();
   LdapDN getSuffixDn() throws Exception;
   LdapDN getUpSuffixDn() throws Exception;
*    boolean hasEntry( EntryOperationContext opContext ) throws Exception;
   void init( DirectoryService core ) throws Exception;
   boolean isInitialized();
* EntryFilteringCursor list( ListOperationContext opContext ) throws Exception;
   ClonedServerEntry lookup( Long id ) throws Exception;
* ClonedServerEntry lookup( LookupOperationContext lookupContext ) throws Exception;
*    void modify( ModifyOperationContext opContext ) throws Exception;
*    void move( MoveOperationContext opContext ) throws Exception;
* void moveAndRename( MoveAndRenameOperationContext opContext ) throws Exception;
*    void rename( RenameOperationContext opContext ) throws Exception;
* EntryFilteringCursor search( SearchOperationContext opContext ) throws Exception;
   void setCacheSize( int cacheSize );
   void setId( String id );
   void setSuffix( String suffix );
   void sync() throws Exception;
   void unbind( UnbindOperationContext opContext ) throws Exception;


The '*' in front of each methods describe the common methods. Can't we define a common interface for those methods, and other interfaces for specific methods ?

Thoughts ?

--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org


Reply via email to