|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.data.dir.AttributeModel
public class AttributeModel
A model used to access an attribute's value and title, based on the principal URI, provider thing Id, and attribute name.
Field Summary | |
---|---|
protected String |
fAttributeName
|
protected String |
fDisplayName
|
protected IPrincipalAttributeBizPolicy |
fPapBizPolicy
|
protected IContext |
fPortalContext
|
protected IURI |
fPrincipalURI
|
protected IThingID |
fProviderThingID
|
Constructor Summary | |
---|---|
AttributeModel()
Default constructor. |
|
AttributeModel(IThingID providerThingID,
IURI principalURI,
String attributeName)
Create an attribute model from a provider thing Id, principal URI, and the attribute's name. |
Method Summary | |
---|---|
String |
getAttributeName()
Get the name of the attribute to reference by the biz policy. |
String |
getDisplayName()
Get the display name for this attribute. |
protected IContext |
getPortalContext()
Acquire a portal context and cache it. |
protected IPrincipalAttributeBizPolicy |
getPrincipalAttributeBizPolicy()
Get the biz policy for handling principal attributes. |
IURI |
getPrincipalURI()
Get the principal URI. |
IThingID |
getProviderThingID()
Get the provider thing Id. |
Object |
getValue()
Get the attribute from the biz policy using this principal URI, thing Id, and attribute name. |
protected void |
initialize(IThingID providerThingID,
IURI principalURI,
String attributeName)
Copies the supplied values into the classes members. |
void |
setAttributeName(String attrName)
Set the name of the attribute to reference by the biz policy. |
void |
setPrincipalURI(IURI principalURI)
Set the principal URI. |
void |
setProviderThingID(IThingID providerThingID)
Set the provider thing Id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IThingID fProviderThingID
protected IURI fPrincipalURI
protected String fAttributeName
protected String fDisplayName
protected transient IContext fPortalContext
protected transient IPrincipalAttributeBizPolicy fPapBizPolicy
Constructor Detail |
---|
public AttributeModel()
public AttributeModel(IThingID providerThingID, IURI principalURI, String attributeName)
providerThingID
- The provider thing Id.principalURI
- The principal URI.attributeName
- The name of the attribute to reference by the biz policy.Method Detail |
---|
protected void initialize(IThingID providerThingID, IURI principalURI, String attributeName)
providerThingID
- The provider thing Id.principalURI
- The principal URIattributeName
- The name of the attribute to reference by the biz policy.public IURI getPrincipalURI()
public void setPrincipalURI(IURI principalURI)
principalURI
- The principal URI.public IThingID getProviderThingID()
public void setProviderThingID(IThingID providerThingID)
providerThingID
- The provider thing Id.public String getAttributeName()
public void setAttributeName(String attrName)
attrName
- The attribute reference name. IE. "lastName"public String getDisplayName()
public Object getValue()
protected IContext getPortalContext()
protected IPrincipalAttributeBizPolicy getPrincipalAttributeBizPolicy() throws BizException
BizException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |