public class AttributeModel extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
fAttributeName |
protected String |
fDisplayName |
protected IPrincipalAttributeBizPolicy |
fPapBizPolicy |
protected IContext |
fPortalContext |
protected IURI |
fPrincipalURI |
protected IThingID |
fProviderThingID |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected IThingID fProviderThingID
protected IURI fPrincipalURI
protected String fAttributeName
protected String fDisplayName
protected transient IContext fPortalContext
protected transient IPrincipalAttributeBizPolicy fPapBizPolicy
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.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