Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *  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.studio.connection.core.io;
 
 
 
 
 import  org.apache.directory.studio.common.core.jobs.StudioProgressMonitor;
A ConnectionWrapper is a wrapper for a real directory connection implementation.

Author(s):
Apache Directory Project
 
 public interface ConnectionWrapper
 {

    
Connects to the directory server.

Parameters:
monitor the progres monitor
 
     public void connect( StudioProgressMonitor monitor );


    
Disconnects from the directory server.
 
     public void disconnect();


    
Binds to the directory server.

Parameters:
monitor the progress monitor
 
     public void bind( StudioProgressMonitor monitor );


    
Unbinds from the directory server.
 
     public void unbind();


    
Checks if is connected.

Returns:
true, if is connected
 
     public boolean isConnected();


    
Sets the binary attributes.

Parameters:
binaryAttributes the binary attributes
 
     public void setBinaryAttributesCollection<StringbinaryAttributes );


    
Search.

Parameters:
searchBase the search base
filter the filter
searchControls the controls
aliasesDereferencingMethod the aliases dereferencing method
referralsHandlingMethod the referrals handling method
controls the LDAP controls
monitor the progress monitor
referralsInfo the referrals info
Returns:
the naming enumeration or null if an exception occurs.
    public StudioNamingEnumeration searchfinal String searchBasefinal String filter,
        final SearchControls searchControlsfinal AliasDereferencingMethod aliasesDereferencingMethod,
        final ReferralHandlingMethod referralsHandlingMethodfinal Control[] controls,
        final StudioProgressMonitor monitorfinal ReferralsInfo referralsInfo );


    
Modifies attributes of an entry.

Parameters:
dn the Dn
modificationItems the modification items
controls the controls
monitor the progress monitor
referralsInfo the referrals info
    public void modifyEntryfinal String dnfinal ModificationItem[] modificationItemsfinal Control[] controls,
        final StudioProgressMonitor monitorfinal ReferralsInfo referralsInfo );


    
Renames an entry.

Parameters:
oldDn the old Dn
newDn the new Dn
deleteOldRdn true to delete the old Rdn
controls the controls
monitor the progress monitor
referralsInfo the referrals info
    public void renameEntryfinal String oldDnfinal String newDnfinal boolean deleteOldRdn,
        final Control[] controlsfinal StudioProgressMonitor monitorfinal ReferralsInfo referralsInfo );


    
Creates an entry.

Parameters:
dn the entry's Dn
attributes the entry's attributes
controls the controls
monitor the progress monitor
referralsInfo the referrals info
    public void createEntryfinal String dnfinal Attributes attributesfinal Control[] controls,
        final StudioProgressMonitor monitorfinal ReferralsInfo referralsInfo );


    
Deletes an entry.

Parameters:
dn the Dn of the entry to delete
controls the controls
monitor the progress monitor
referralsInfo the referrals info
    public void deleteEntryfinal String dnfinal Control[] controlsfinal StudioProgressMonitor monitor,
        final ReferralsInfo referralsInfo );
New to GrepCode? Check out our FAQ X