|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AlgorithmInterpreter
This interface is an implementation of the design pattern Interpreter in the GoF collection, to store the paths search algorithms of an EPR view, a NoThan view or the sketch view. For the core algorithms, each view uses a dedicated instance of the 8 gWork classes and 1 gBase class. For the NodeRight and LinkRight classes, each view includes one instance for each node of the view. Each AcsAddon may provide a subclass of NodeRightsImpl or LinkRightsImpl. They have to be used when a node from this AcsAddon is in the view. All the instances in the gBase, gWork and AcsAddon.gWork packages that are necessary in the access paths search are get through this interface.
RightsMediatorImpl
Field Summary | |
---|---|
static java.util.List |
L_CORE_ALGORITHMS_KEYS
The keys of the 9 core algorithm classes in gWork, to use in getCoreAlgorithm(). |
Method Summary | |
---|---|
NodeRights |
addInstancesForNode(BaseObject _node)
Creates a new NodeRights and a new LinkRights instances for a view node or an intermediate node. |
java.util.Collection<LinkRights> |
getAllLinkRights(java.util.Collection<DisplayableLinkImpl> _l_dLinks)
Gets all the LinkRights associated to the nodes in the DisplayableLinkImpls of a collection. |
CoreAlgorithm |
getCoreAlgorithm(java.lang.String _key)
Gets the instance to use for this view for a given core algorithm, as instance of one of the 9 classes RightsFactory_Facade, AclRightsFactoryImpl, AgoRightsFactoryImpl, CompoundRightsFactoryImpl, DisplayableLinkUtilities, PrivilegeRightsFactoryImpl, FactoryUtilities, ThreeNodesRightsFactoryImpl and gBase.UtilityImpl. |
java.util.Map<ImmutableName,LinkRights> |
getLinkRightsInstances()
Gets the map of the LinkRights instances to use for each view node or intermediate node. |
java.util.Map<ImmutableName,NodeRights> |
getNodeRightsInstances()
Gets the map of the NodeRights instances to use for each view node or intermediate node. |
BaseObject |
getSource()
|
void |
removeInstancesForNode(ImmutableName _name)
Removes the NodeRights and the LinkRights instances for a view node or an intermediate node. |
void |
updateNonCoreAlgorithmsForViewNodes(boolean _clearIntermediateNodes)
When the view nodes have changed, this method updates the NodeRights and the LinkRights instances of each node. |
Field Detail |
---|
static final java.util.List L_CORE_ALGORITHMS_KEYS
Method Detail |
---|
BaseObject getSource()
CoreAlgorithm getCoreAlgorithm(java.lang.String _key)
_key
- belongs to L_CORE_ALGORITHMS_KEYS
java.util.Map<ImmutableName,NodeRights> getNodeRightsInstances()
java.util.Map<ImmutableName,LinkRights> getLinkRightsInstances()
void updateNonCoreAlgorithmsForViewNodes(boolean _clearIntermediateNodes)
_clearIntermediateNodes
- true only for the sketch view, to finalize
the NodeRights and linkRights instances of all the nodes that are
not in the view, including all the previous intermediate nodesNodeRights addInstancesForNode(BaseObject _node)
_node
- node of the view or intermediate node
void removeInstancesForNode(ImmutableName _name)
_name
- name of the view node or the intermediate nodejava.util.Collection<LinkRights> getAllLinkRights(java.util.Collection<DisplayableLinkImpl> _l_dLinks)
_l_dLinks
- DisplayableLinkImpls to analyze, all with the same two ends or not.
Not null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |