|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.ram.policy.PolicyContext
public class PolicyContext
Allows a policy to access an asset that is being validated, and queues other assets to be modified or created
| Constructor Summary | |
|---|---|
PolicyContext(Asset asset)
|
|
| Method Summary | |
|---|---|
void |
createAsset(Asset asset)
Deprecated. use PolicyContext#getRAMSession().createAsset() |
Asset |
getAsset()
Deprecated. use getRAMAsset() |
java.util.List<PolicyEvent> |
getEventList()
Deprecated. |
RAMAsset |
getRAMAsset()
|
RAMSession |
getRAMSession()
|
void |
setAsset(Asset asset)
Deprecated. |
void |
setRAMSession(RAMSession ramSession)
|
void |
updateAsset(Asset asset)
Deprecated. use PolicyContext#getRAMSession().put(RAMAsset) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolicyContext(Asset asset)
asset - The asset being validated.| Method Detail |
|---|
public RAMSession getRAMSession()
public void setRAMSession(RAMSession ramSession)
ramSession - The ramSession to set.
Set the ramSession. *NOTE* This is not intended for use from within a Policy.public Asset getAsset()
getRAMAsset()
public void setAsset(Asset asset)
Policy.
public java.util.List<PolicyEvent> getEventList()
createAsset(Asset asset) or
updateAsset(Asset asset) to add events to this list.public void createAsset(Asset asset)
PolicyContext#getRAMSession().createAsset()
asset - The asset to create.public void updateAsset(Asset asset)
PolicyContext#getRAMSession().put(RAMAsset)
asset - The asset to update.public RAMAsset getRAMAsset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||