|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.emframe.dev.UiHandlerContext
Contains information needed for a UiHandler to plug-in to iManager.
| Field Summary | |
protected java.lang.String |
m_attributeName
Attribute's name (ex: "CN"). |
protected java.lang.String |
m_client
Client device name (ex: "browser", "mozilla", "default", "pocket"). |
protected java.lang.String |
m_eDasName
m_eDasName = m_fieldPrefix + "$" + m_encodedAttributeName (ex: eDir$target$CN). |
protected java.lang.String |
m_eDasRights
m_eDasRights contains either ("edasRights.target." + m_encodedAttributeName + ".writeable") or "true". |
protected java.lang.String |
m_eDasRightsStandard
m_eDasRightsStandard contains either "DISABLED" or "". |
protected java.lang.String |
m_encodedAttributeName
Encoded attribute's name. |
protected java.lang.String |
m_firstValue
m_firstValue = "m_xPathValue" (ex: $edasXml/edas/attributeName). |
protected boolean |
m_forceMandatory
Force the control to have a value. |
protected boolean |
m_forceReadOnly
Force the control into read only mode or not. |
protected boolean |
m_forceSingleValued
Force the control to only allow a single value. |
protected java.lang.String |
m_syntaxName
Attribute's syntax (ex: "Case Ignore String"). |
protected java.lang.String |
m_xPathSet
m_xPathSet = "$edasXml/edas/"+ m_encodedAttributeName (ex: $edasXml/edas/attributeName). |
protected java.lang.String |
m_xPathValue
m_xPathValue = "$edasXml/edas/"+ m_encodedAttributeName +"/value" (ex: $edasXml/edas/attributeName/value). |
| Constructor Summary | |
UiHandlerContext(AttributeDefinition attributeDefinition,
java.lang.String client,
java.lang.String id,
boolean forceReadOnly,
boolean forceSingleValued,
boolean forceMandatory)
Constructs a UiHandlerContext with information about the attribute handled by the UiHandler. |
|
UiHandlerContext(java.lang.String attrName,
java.lang.String safeAttrName,
java.lang.String syntaxName,
java.lang.String client,
boolean forceReadOnly,
boolean forceSingleValued,
boolean isSized,
long upperBound,
long lowerBound,
boolean useDirectoryRights,
java.lang.String fieldPrefix,
UiHandlerActionTrigger[] actionTriggers,
boolean forceMandatory)
Constructs a UiHandlerContext with information about the attribute handled by the UiHandler. |
|
| Method Summary | |
UiHandlerActionTrigger[] |
getActionTriggers()
Returns the action triggers associated with this UiHandler. |
java.lang.String |
getAttributeName()
Returns the attribute name controlled by the UiHandler. |
java.lang.String |
getClient()
Returns the client device name (ex: "browser", "mozilla", "default", "pocket"). |
java.lang.String |
geteDasName()
Returns the String containing the m_eDasName variable. |
java.lang.String |
geteDasRights()
Returns the String containing the m_eDasRights variable. |
java.lang.String |
geteDasRightsStandard()
Returns the String containing the m_eDasRightsStandard variable. |
java.lang.String |
getEncodedAttributeName()
Returns the attribute name encoded for safe use on URLs. |
java.lang.String |
getFieldPrefix()
Returns the prefix for the field. |
java.lang.String |
getFirstValue()
Returns the String containing the m_firstValue variable. |
java.lang.String |
getId()
Returns the unique ID of the UiHandler from the XML descriptor registering the UiHandler with iManager. |
long |
getLowerBound()
Returns the lower bound of the attribute if the attribute is sized. |
java.lang.String |
getSyntaxName()
Returns the syntax of the attribute controlled by the UiHandler. |
long |
getUpperBound()
Returns the upper bound of the attribute if the attribute is sized. |
java.lang.String |
getxPathSet()
Returns the String containing the m_xPathSet variable. |
java.lang.String |
getxPathValue()
Returns the String containing the m_xPathValue variable. |
boolean |
isForceMandatory()
Returns whether to force the attribute to have a value or if it can be null. |
boolean |
isForceReadOnly()
Returns whether the control should be forced into read only mode. |
boolean |
isForceSingleValued()
Returns whether to force the control to only allow a single value. |
boolean |
isHideColon()
Returns whether the UiHandlerContext was not created from an AttributeDefinition and we should hide the colon. |
boolean |
isSized()
Returns whether the attribute has upper and lower size values. |
boolean |
useDirectoryRights()
Returns whether to use directory rights to determine whether the attribute is read only or whether to use the isForceReadOnly value instead. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String m_attributeName
protected java.lang.String m_client
protected java.lang.String m_eDasName
protected java.lang.String m_eDasRights
protected java.lang.String m_eDasRightsStandard
protected java.lang.String m_encodedAttributeName
protected java.lang.String m_firstValue
protected boolean m_forceMandatory
protected boolean m_forceReadOnly
protected boolean m_forceSingleValued
protected java.lang.String m_syntaxName
protected java.lang.String m_xPathSet
protected java.lang.String m_xPathValue
| Constructor Detail |
public UiHandlerContext(AttributeDefinition attributeDefinition,
java.lang.String client,
java.lang.String id,
boolean forceReadOnly,
boolean forceSingleValued,
boolean forceMandatory)
attributeDefinition - AttributeDefinition containing information about the attributeclient - String containing the client device name (ex: "browser", "mozilla", "default", "pocket").
This String can be obtained through the HttpSession.getAttribute("DeviceType"); call.id - String containing the unique ID of the UiHandlerforceReadOnly - boolean telling whether to force the control into read only mode or not. If true, control
should appear disabled to the end user.forceSingleValued - boolean telling whether to force the control to only allow a single valueforceMandatory - boolean telling whether to force the control to have a valuepublic UiHandlerContext(java.lang.String attrName,
java.lang.String safeAttrName,
java.lang.String syntaxName,
java.lang.String client,
boolean forceReadOnly,
boolean forceSingleValued,
boolean isSized,
long upperBound,
long lowerBound,
boolean useDirectoryRights,
java.lang.String fieldPrefix,
UiHandlerActionTrigger[] actionTriggers,
boolean forceMandatory)
attrName - String containing the attribute namesafeAttrName - String containing the encoded attribute name.syntaxName - String containing the attribute's syntaxclient - String containing the client device name (ex: "browser", "mozilla", "default", "pocket").
This String can be obtained through the HttpSession.getAttribute("DeviceType"); call.forceReadOnly - boolean telling whether to force the control into read only mode or not. If true, control
should appear disabled to the end user.forceSingleValued - boolean telling whether to force the control to only allow a single valueisSized - boolean telling whether the attribute has upper and lower size valuesupperBound - long containing the upper size valuelowerBound - long containing the lower size valueuseDirectoryRights - boolean telling whether this field is an eDirectory attribute and we should make it
read only if the user doesn't have rights to the attribute on the current objectfieldPrefix - String containing the prefix for the field (ex. "eDir$target")actionTriggers - UiHandlerActionTrigger array containing actions that trigger eventsforceMandatory - boolean telling whether to force the control to have a value| Method Detail |
public UiHandlerActionTrigger[] getActionTriggers()
public java.lang.String getAttributeName()
public java.lang.String getClient()
public java.lang.String geteDasName()
public java.lang.String geteDasRights()
public java.lang.String geteDasRightsStandard()
public java.lang.String getEncodedAttributeName()
public java.lang.String getFieldPrefix()
public java.lang.String getFirstValue()
public java.lang.String getId()
public long getLowerBound()
isSized(),
getUpperBound()public java.lang.String getSyntaxName()
public long getUpperBound()
isSized(),
getLowerBound()public java.lang.String getxPathSet()
public java.lang.String getxPathValue()
public boolean isForceMandatory()
public boolean isForceReadOnly()
useDirectoryRights()public boolean isForceSingleValued()
public boolean isHideColon()
public boolean isSized()
getLowerBound(),
getUpperBound()public boolean useDirectoryRights()
isForceReadOnly()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||