org.openpermis.editor.policy.view.component
Class AbstractLdapFinderComponent

java.lang.Object
  extended by org.openpermis.editor.policy.view.component.AbstractLdapFinderComponent
All Implemented Interfaces:
Chooser
Direct Known Subclasses:
LdapIdentityFinderComponent, LdapSubjectFinderComponent

public abstract class AbstractLdapFinderComponent
extends Object
implements Chooser

Since:
0.9.0

Constructor Summary
AbstractLdapFinderComponent(ApplicationContext context)
           
 
Method Summary
protected  String getBaseDN()
           
protected  String getBindDN()
           
protected  ApplicationContext getContext()
           
 String getInfo()
          Returns human readable information about the state of this component that can be displayed in a text field.
protected  String getLdapUrl()
           
protected  String getPassword()
           
 boolean isChoosable()
          Returns false if nothing can be chosen.
 boolean isPrepared()
          Returns if this component is prepared.
 void show(Component parent)
          Starts the chooser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLdapFinderComponent

public AbstractLdapFinderComponent(ApplicationContext context)
Since:
0.9.0
Method Detail

getContext

protected ApplicationContext getContext()
Returns:
the context.
Since:
0.9.0

getLdapUrl

protected String getLdapUrl()
Returns:
the ldapUrl.
Since:
0.9.0

getBindDN

protected String getBindDN()
Returns:
the bindDN.
Since:
0.9.0

getBaseDN

protected String getBaseDN()
Returns:
the baseDN.
Since:
0.9.0

getPassword

protected String getPassword()
Returns:
the password.
Since:
0.9.0

isPrepared

public boolean isPrepared()
Description copied from interface: Chooser
Returns if this component is prepared. A component is prepared if it has all necessary information to create a mutable subject finder.

Specified by:
isPrepared in interface Chooser
Returns:
true if this component is prepared.
Since:
0.9.0

getInfo

public String getInfo()
Description copied from interface: Chooser
Returns human readable information about the state of this component that can be displayed in a text field.

Specified by:
getInfo in interface Chooser
Since:
0.9.0

isChoosable

public boolean isChoosable()
Description copied from interface: Chooser
Returns false if nothing can be chosen. E.g. all informations are retrieved from a configuration and no graphical should be drawn.

Specified by:
isChoosable in interface Chooser
Since:
0.9.0

show

public void show(Component parent)
Description copied from interface: Chooser
Starts the chooser.

Specified by:
show in interface Chooser
Parameters:
parent - the parent component of the dialog.
Since:
0.9.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG