|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectARoad0.gWork.FactoryUtilities
public class FactoryUtilities
This class provides some core algorithms about the rights and the 'See why' texts. It consists exclusively of final methods, and most of them are static. This class is stateless, and RightsMediatorImpl at its creation setups an instance for its ViewInBase. No direct call to the ACS methods. It is used by gWork and Gui2 classes.
AccessControlLinkImpl
Field Summary | |
---|---|
private UtilityImpl |
baseUtil_
|
private AlgorithmInterpreter |
interpreter_
|
private java.util.Set<StringRight> |
l_rights_
|
private static java.lang.String |
lineSepar__
|
private DisplayableLinkUtilities |
linkUtil_
|
private static java.util.Map |
M_RIGHTS_ACRONYMS
|
Fields inherited from interface ARoad0.gWorkInterface.CoreAlgorithm |
---|
INITIAL_CAPACITY |
Constructor Summary | |
---|---|
protected |
FactoryUtilities(AlgorithmInterpreter _interpreter)
only one protected constructor |
Method Summary | |
---|---|
static void |
appendText(javax.swing.JTextPane _textPane,
java.lang.String _text,
javax.swing.text.SimpleAttributeSet _attributes)
Adds a text at the end of a JTextPane. |
void |
finalizeForProcess()
Finalizes the instance. |
javax.swing.JTextPane |
getEPRWhyText(GraphicEPRView _gview,
java.util.Map _m_l_DisplayableLinks,
EPRViewInBase _view)
Construct a JTextPane with the tree of all DisplayableLinks and AccessControlLinks, to be displayed as a text comment for a GraphicView. |
javax.swing.JTextPane |
getNoThanWhyText(GraphicNoThanView _gview,
java.util.Map _m_l_DisplayableLinks,
NoThanViewInBase _view)
Get a JTextPane with the tree of all DisplayableLinks and AccessControlLinks, to be displayed as a text comment for a GraphicNoThanView. |
java.lang.String |
getRightAcronym(StringRight _st)
Gets the standardized acronym of a right, if it exists for its metaright. |
static javax.swing.JTextPane |
getWhyText(GraphicView _gview,
java.util.Map _m_l_DisplayableLinks,
ViewInBase _view)
Construct a JTextPane with the tree of all DisplayableLinks and AccessControlLinks, to be displayed as a comment for the GraphicView associated to _m_l_DisplayableLinks. |
boolean |
isActivePath(DisplayableLinkImpl _dLink)
Returns true if each node pair in the DisplayableLink is activated, that is each AccessControlLink contains one pseudo-structural link or non-null rights. |
java.util.Set<StringRight> |
substractNegativeFromPositiveRights(java.util.Set<StringRight> _l_upd_rights)
Wrapper and caller of gBase.UtilityImpl.subtractNegativeNotRemovingInOneACS(). |
StringRight |
withSomeAccess(java.util.Set<StringRight> _l_rights)
Called by RightsFactory_Facade.getEffectiveRightsForPair(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.lang.String lineSepar__
private static java.util.Map M_RIGHTS_ACRONYMS
private AlgorithmInterpreter interpreter_
private UtilityImpl baseUtil_
private DisplayableLinkUtilities linkUtil_
private java.util.Set<StringRight> l_rights_
Constructor Detail |
---|
protected FactoryUtilities(AlgorithmInterpreter _interpreter)
_interpreter
- algorithm interpreterMethod Detail |
---|
public final boolean isActivePath(DisplayableLinkImpl _dLink)
_dLink
- to analyze
public static final javax.swing.JTextPane getWhyText(GraphicView _gview, java.util.Map _m_l_DisplayableLinks, ViewInBase _view)
_gview
- is the graphic view associated to the view_m_l_DisplayableLinks
- immutable Map of DisplayableLinks lists._view
- associated to _m_l_DisplayableLinks
public final javax.swing.JTextPane getEPRWhyText(GraphicEPRView _gview, java.util.Map _m_l_DisplayableLinks, EPRViewInBase _view)
_gview
- is the graphic view associated to the view_m_l_DisplayableLinks
- immutable Map of DisplayableLinks lists._view
- associated to _m_l_DisplayableLinks
public final javax.swing.JTextPane getNoThanWhyText(GraphicNoThanView _gview, java.util.Map _m_l_DisplayableLinks, NoThanViewInBase _view)
_gview
- is the graphic view associated to the view_m_l_DisplayableLinks
- immutable Map of DisplayableLinks lists._view
- associated to _m_l_DisplayableLinks
public static final void appendText(javax.swing.JTextPane _textPane, java.lang.String _text, javax.swing.text.SimpleAttributeSet _attributes)
_textPane
- to update_text
- to add_attributes
- associated to _textpublic final StringRight withSomeAccess(java.util.Set<StringRight> _l_rights)
_l_rights
- to analyze
public final java.lang.String getRightAcronym(StringRight _st)
_st
- ACS right or metaright
public final java.util.Set<StringRight> substractNegativeFromPositiveRights(java.util.Set<StringRight> _l_upd_rights)
_l_upd_rights
- to analyze. Not null. Updated by the method.
public final void finalizeForProcess()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |