org.eclipse.datatools.modelbase.sql.accesscontrol.provider
Class SQLAccessControlItemProviderAdapterFactory

java.lang.Object
  extended by AdapterFactoryImpl
      extended by org.eclipse.datatools.modelbase.sql.accesscontrol.util.SQLAccessControlAdapterFactory
          extended by org.eclipse.datatools.modelbase.sql.accesscontrol.provider.SQLAccessControlItemProviderAdapterFactory

public class SQLAccessControlItemProviderAdapterFactory
extends SQLAccessControlAdapterFactory

This is the factory that is used to provide the interfaces needed to support Viewers. The adapters generated by this factory convert EMF adapter notifications into calls to fireNotifyChanged. The adapters also support Eclipse property sheets. Note that most of the adapters are shared among multiple instances.


Constructor Summary
SQLAccessControlItemProviderAdapterFactory()
          This constructs an instance.
 
Method Summary
 Adapter adapt(Notifier notifier, java.lang.Object type)
          This implementation substitutes the factory itself as the key for the adapter.
 void addListener(INotifyChangedListener notifyChangedListener)
          This adds a listener.
 Adapter createGroupAdapter()
          This creates an adapter for a Group.
 Adapter createPrivilegeAdapter()
          This creates an adapter for a Privilege.
 Adapter createRoleAdapter()
          This creates an adapter for a Role.
 Adapter createRoleAuthorizationAdapter()
          This creates an adapter for a RoleAuthorization.
 Adapter createUserAdapter()
          This creates an adapter for a User.
 void fireNotifyChanged(Notification notification)
          This delegates to changeNotifier and to parentAdapterFactory.
 ComposeableAdapterFactory getRootAdapterFactory()
          This returns the root adapter factory that contains this factory.
 boolean isFactoryForType(java.lang.Object type)
           
 void removeListener(INotifyChangedListener notifyChangedListener)
          This removes a listener.
 void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
          This sets the composed adapter factory that contains this factory.
 
Methods inherited from class org.eclipse.datatools.modelbase.sql.accesscontrol.util.SQLAccessControlAdapterFactory
createAdapter, createAuthorizationIdentifierAdapter, createEModelElementAdapter, createENamedElementAdapter, createEObjectAdapter, createSQLObjectAdapter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLAccessControlItemProviderAdapterFactory

public SQLAccessControlItemProviderAdapterFactory()
This constructs an instance.

Method Detail

createPrivilegeAdapter

public Adapter createPrivilegeAdapter()
This creates an adapter for a Privilege.

Overrides:
createPrivilegeAdapter in class SQLAccessControlAdapterFactory
Returns:
the new adapter.
See Also:
Privilege

createGroupAdapter

public Adapter createGroupAdapter()
This creates an adapter for a Group.

Overrides:
createGroupAdapter in class SQLAccessControlAdapterFactory
Returns:
the new adapter.
See Also:
Group

createUserAdapter

public Adapter createUserAdapter()
This creates an adapter for a User.

Overrides:
createUserAdapter in class SQLAccessControlAdapterFactory
Returns:
the new adapter.
See Also:
User

createRoleAdapter

public Adapter createRoleAdapter()
This creates an adapter for a Role.

Overrides:
createRoleAdapter in class SQLAccessControlAdapterFactory
Returns:
the new adapter.
See Also:
Role

createRoleAuthorizationAdapter

public Adapter createRoleAuthorizationAdapter()
This creates an adapter for a RoleAuthorization.

Overrides:
createRoleAuthorizationAdapter in class SQLAccessControlAdapterFactory
Returns:
the new adapter.
See Also:
RoleAuthorization

getRootAdapterFactory

public ComposeableAdapterFactory getRootAdapterFactory()
This returns the root adapter factory that contains this factory.


setParentAdapterFactory

public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
This sets the composed adapter factory that contains this factory.


isFactoryForType

public boolean isFactoryForType(java.lang.Object type)

Overrides:
isFactoryForType in class SQLAccessControlAdapterFactory
Returns:
whether this factory is applicable for the type of the object.

adapt

public Adapter adapt(Notifier notifier,
                     java.lang.Object type)
This implementation substitutes the factory itself as the key for the adapter.


addListener

public void addListener(INotifyChangedListener notifyChangedListener)
This adds a listener.


removeListener

public void removeListener(INotifyChangedListener notifyChangedListener)
This removes a listener.


fireNotifyChanged

public void fireNotifyChanged(Notification notification)
This delegates to changeNotifier and to parentAdapterFactory.



Copyright © 2006 -- 2008 Actuate, IBM Corporation, Sybase, Inc. and others. All rights reserved.