|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ponder2.P2ManagedObject
public class P2ManagedObject
The base class for all Managed Objects within the system. The parent and policy sets are maintained here. All RPC calls come through this interface, the RPC is checked against the policies and then propagated to the actual object to perform the action.
Constructor Summary | |
---|---|
P2ManagedObject()
Constructor for serialisation |
|
P2ManagedObject(P2Object p2Object)
The base class for all Managed Objects within the system. |
Method Summary | |
---|---|
protected void |
addParent(P2ManagedObject mo)
adds a parent managed object as a parent of this one |
void |
applyPolicy(AuthorisationPolicy policy)
applies a policy to this managed object |
void |
applyPolicy(EventListener policy)
applies a policy to this managed object |
void |
attachRemotePolicy(P2Object remote)
|
P2Object |
create(P2Object source,
java.lang.String operation,
P2Object... args)
|
boolean |
equals(java.lang.Object obj)
|
java.util.Set<AuthorisationPolicy> |
getAuthorisationPolicies()
get all the authorisation policies applying to this managed object |
protected java.util.Set<EventListener> |
getEventListeners()
get all the obligation policies applying to this managed object |
OID |
getOID()
gets the object identifier for this object |
P2Object |
getP2Object()
gets the object identifier for this object |
java.util.Set<P2ManagedObject> |
getParentSet()
|
int |
hashCode()
|
boolean |
isDomain()
|
P2Object |
operation(P2Object source,
java.lang.String operation,
P2Object... args)
|
P2Object |
operation(P2Object source,
java.lang.String operation,
java.lang.String arg1,
java.lang.String... args)
|
int |
parentCount()
returns the number of parents that this managed object has |
void |
readExternal(java.io.ObjectInput arg0)
|
protected java.lang.Object |
readResolve()
Called by the serialization routines after readExternal as been called. |
protected void |
removeParent(P2ManagedObject mo)
removes a parent object from this object's parent set |
void |
removePolicy(AuthorisationPolicy policy)
removes a policy from this managed object's policy set |
void |
removePolicy(EventListener policy)
removes a policy from this managed object's policy set |
void |
sendEvent(Event event)
sends an event to policies attached to this managed object and above |
void |
writeExternal(java.io.ObjectOutput arg0)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public P2ManagedObject(P2Object p2Object)
public P2ManagedObject()
Method Detail |
---|
public OID getOID()
public boolean isDomain()
public P2Object getP2Object()
protected void addParent(P2ManagedObject mo)
mo
- the parent to be addedprotected void removeParent(P2ManagedObject mo)
mo
- the parent to be removedpublic java.util.Set<P2ManagedObject> getParentSet()
public int parentCount()
protected java.util.Set<EventListener> getEventListeners()
public java.util.Set<AuthorisationPolicy> getAuthorisationPolicies()
public void applyPolicy(EventListener policy)
policy
- the policy to be appliedpublic void applyPolicy(AuthorisationPolicy policy)
policy
- the policy to be appliedpublic void removePolicy(EventListener policy)
policy
- the policy to be removedpublic void removePolicy(AuthorisationPolicy policy)
policy
- the policy to be removedpublic void attachRemotePolicy(P2Object remote)
public void sendEvent(Event event)
event
- the event to be sent to the policies
Ponder2Exception
public P2Object create(P2Object source, java.lang.String operation, P2Object... args) throws Ponder2Exception
create
in interface Ponder2Message
Ponder2Exception
public P2Object operation(P2Object source, java.lang.String operation, P2Object... args) throws Ponder2Exception
operation
in interface Ponder2Message
Ponder2Exception
public P2Object operation(P2Object source, java.lang.String operation, java.lang.String arg1, java.lang.String... args) throws Ponder2Exception
operation
in interface Ponder2Message
Ponder2Exception
public void readExternal(java.io.ObjectInput arg0) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
public void writeExternal(java.io.ObjectOutput arg0) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |