ARoad0.gBaseInterface
Interface EPRViewInBase

All Superinterfaces:
BaseObject, BoundBean, java.util.EventListener, Folder, ImmutableFolder, java.beans.PropertyChangeListener, ViewInBase
All Known Subinterfaces:
NoThanViewInBase, SketchViewInBase
All Known Implementing Classes:
EPRViewInBaseImpl, NoThanViewInBaseImpl, SketchViewInBaseImpl

public interface EPRViewInBase
extends ViewInBase

This class is responsible for modeling in the base, a view about access control issues between eligible parties (EP of EPRViewInBase) as access sources, and resources (R of EPRViewInBase) or virtual folders (containing Resources or EPs) as access targets. It is used by the full views and the sketch views in the GUI to display all the rights between any couple of view objects, since an access source may also be an access target sometimes.

See Also:
GraphicEPRView, GraphicSketchView

Method Summary
 void addEorSource(ImmutableSource _sour)
          Updates all the internal maps after a test of the parameter type.
 void addEorTarget(ImmutableTarget _targ)
          Updates all the internal maps after a test of the parameter type.
 boolean containsSource(ImmutableSource _sour)
           
 boolean containsTarget(ImmutableTarget _targ)
           
 EPRViewInBase copyAndSave(ImmutableName _name)
          This method creates, registers and saves a view copy with another name.
 java.util.SortedMap<ImmutableName,ImmutableTarget> getEorM_NoSourceTargets()
          Gets the targets in this view which are not eligible parties (actors, accounts, groups) nor virtual folders.
 java.util.SortedMap<ImmutableName,ImmutableSource> getEorM_Sources()
          Gets all the sources in this view, and this covers the actors, accounts, groups and virtual folders.
 java.util.SortedMap<ImmutableName,ImmutableTarget> getEorM_Targets()
          Gets all the access targets in this view, and this covers simple resources, actors, directories, executables, accounts, groups and virtual folders.
 void removeEorSource(ImmutableSource _sour)
          Updates all the internal maps after a test of the parameter type.
 void removeEorTarget(ImmutableTarget _targ)
          Updates all the internal maps after a test of the parameter type.
 
Methods inherited from interface ARoad0.gBaseInterface.ViewInBase
getCompleteResults
 
Methods inherited from interface ARoad0.gBaseInterface.Folder
addEorBaseObject, addPropertyChangeListener, addPropertyChangeListener, propertyChange, removeEorBaseObject, removePropertyChangeListener, removePropertyChangeListener, setComment
 
Methods inherited from interface ARoad0.gBaseInterface.ImmutableFolder
containsBaseObject, getComment, getConnectedToSeveralACS, getEorL_ConnectedACSNames, getEorM_BaseObjects, getType, isEmpty
 
Methods inherited from interface ARoad0.gBaseInterface.BaseObject
equals, getFullName, getName, getNickName, hashCode
 

Method Detail

containsTarget

boolean containsTarget(ImmutableTarget _targ)
Parameters:
_targ - to test
Returns:
true if the view contains it

containsSource

boolean containsSource(ImmutableSource _sour)
Parameters:
_sour - to test
Returns:
true if the view contains it

addEorTarget

void addEorTarget(ImmutableTarget _targ)
                  throws CreateError
Updates all the internal maps after a test of the parameter type. So, an Actor is also added to the Sources internal map. Invoke super.addEorBaseObject(_targ). Overridden by the subclass.

Parameters:
_targ - to add to the view
Throws:
CreateError - if the target is already known by the view, if the name is null, or the object name is null or empty, or if the name is already known by the view.

addEorSource

void addEorSource(ImmutableSource _sour)
                  throws CreateError
Updates all the internal maps after a test of the parameter type. So, an Actor is also added to the Targets internal map. Invoke super.addEorBaseObject(_sour). Overridden by the subclass.

Parameters:
_sour - to add to the view
Throws:
CreateError - if the source is already known by the view, if the name is null, or the object name is null or empty, or if the name is already known by the view.

removeEorTarget

void removeEorTarget(ImmutableTarget _targ)
                     throws CreateError
Updates all the internal maps after a test of the parameter type. Invoke super.removeEorBaseObject(_targ). Overridden by the subclass.

Parameters:
_targ - to remove in the view
Throws:
CreateError - if the target is not known by the view, or if the object name is empty.

removeEorSource

void removeEorSource(ImmutableSource _sour)
                     throws CreateError
Updates all the internal maps after a test of the parameter type. Invoke super.removeEorBaseObject(_sour). Overridden by the subclass.

Parameters:
_sour - to remove in the view
Throws:
CreateError - if the source is null or not known by the view, or if the object name is empty.

getEorM_Targets

java.util.SortedMap<ImmutableName,ImmutableTarget> getEorM_Targets()
Gets all the access targets in this view, and this covers simple resources, actors, directories, executables, accounts, groups and virtual folders.

Returns:
unmodifiableSortedMap of the view targets

getEorM_NoSourceTargets

java.util.SortedMap<ImmutableName,ImmutableTarget> getEorM_NoSourceTargets()
Gets the targets in this view which are not eligible parties (actors, accounts, groups) nor virtual folders.

Returns:
unmodifiableSortedMap of the view targets

getEorM_Sources

java.util.SortedMap<ImmutableName,ImmutableSource> getEorM_Sources()
Gets all the sources in this view, and this covers the actors, accounts, groups and virtual folders.

Returns:
unmodifiableSortedMap of the view sources

copyAndSave

EPRViewInBase copyAndSave(ImmutableName _name)
                          throws BaseError
This method creates, registers and saves a view copy with another name. Each internal variable that is an external object reference have a shallow copy (no deep copy). Calls copy(), saves the new instance and calls finalizeForCopy(). Overridden by the subclass.

Parameters:
_name - of the copy. It is copied without test.
Returns:
the copied view
Throws:
BaseError - if _name is null or already known in BaseManagerImpl, or if _view is null or not known.