ARoad0.gWorkInterface
Interface RightsNetworkObserver

All Superinterfaces:
java.util.EventListener, MVC_Controller, java.beans.PropertyChangeListener
All Known Subinterfaces:
RightsMediator
All Known Implementing Classes:
RightsMediatorImpl

public interface RightsNetworkObserver
extends MVC_Controller, java.beans.PropertyChangeListener

This interface is responsible to follow the property change events from all the BaseObjects associated to a view, to inform the view GraphicViewBaselistenerImpl that the rights may have changed. It is independant of the graphic view, which may be deleted and created several times by GraphicViewBaselistenerImpl. The BaseListener which manages the view instance must register itself as a PropertyChangeListener of this RightsNetworkObserver instance.

See Also:
RightsMediatorImpl

Field Summary
static int INITIAL_CAPACITY
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener _listener)
          Register a listener for the PropertyChange event The class will fire a PropertyChange value whenever the value is updated.
 void finalizeForProcess()
          Finalize the instance; the call is reserved to ViewTreeBaseListenerImpl.
 BaseObject getSource()
           
 void propertyChange(java.beans.PropertyChangeEvent _evt)
          Manage the events fired by the base objects of the rights network.
 void removePropertyChangeListener(java.beans.PropertyChangeListener _listener)
          Remove a listener for the PropertyChange event
 void setRightsNetwork(java.util.Set _l_baseObjects)
          For a new view or when the view nodes have changed, this method registers this instance as a listener of the bound property changes in the network of ACSObjects and properties which are implied in the view.
 java.lang.String toString()
          Get the values of the view
 

Field Detail

INITIAL_CAPACITY

static final int INITIAL_CAPACITY
See Also:
Constant Field Values
Method Detail

getSource

BaseObject getSource()
Returns:
the view or another base object which defines the rights network

addPropertyChangeListener

void addPropertyChangeListener(java.beans.PropertyChangeListener _listener)
Register a listener for the PropertyChange event The class will fire a PropertyChange value whenever the value is updated.

Parameters:
_listener - An object to be invoked when a PropertyChange event is fired.

removePropertyChangeListener

void removePropertyChangeListener(java.beans.PropertyChangeListener _listener)
Remove a listener for the PropertyChange event

Parameters:
_listener - to be removed.

propertyChange

void propertyChange(java.beans.PropertyChangeEvent _evt)
Manage the events fired by the base objects of the rights network.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
_evt - to process

setRightsNetwork

void setRightsNetwork(java.util.Set _l_baseObjects)
For a new view or when the view nodes have changed, this method registers this instance as a listener of the bound property changes in the network of ACSObjects and properties which are implied in the view.

This includes the listening of the intermediate nodes for each access path, and also for the non-intermediates which should become intermediates when a property change. This includes the AclEntries and the PrivilegeForLinks, respectively for their rights and their sources/targets. This includes the listening of the specific events from any AcsAddon ACS or any of its objects, for which BaseUtilityImpl.add/removeAddonInner/ParentPropertyChangeListener() are called.

Parameters:
_l_baseObjects - the BaseObjects which are intermediate nodes in the detected access paths of the view, or an intermediate-node AclEntry

toString

java.lang.String toString()
Get the values of the view

Overrides:
toString in class java.lang.Object
Returns:
view.toString() with the name of the class

finalizeForProcess

void finalizeForProcess()
Finalize the instance; the call is reserved to ViewTreeBaseListenerImpl.