|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the methods that can be implemented by the delegate of EODistributionContexts -- mostly to control security. The delegate does not have to actually implement the interface and all methods of it; it is sufficient to implement just the methods needed, but by implementing the interface the compiler helps to find problems with wrong method signatures.
Method Summary | |
NSData |
distributionContextDidReceiveData(EODistributionContext distributionContext,
NSData data)
Gives the delegate an opportunity to decrypt data sent from the client. |
boolean |
distributionContextShouldAllowAccessToClassDescription(EODistributionContext distributionContext,
EOClassDescription classDescription)
Returns whether the client application of this distribution context should have access to a class description or not. |
boolean |
distributionContextShouldAllowInvocation(EODistributionContext distributionContext,
Object object,
NSSelector selector,
Object[] arguments)
Returns whether a remote method invocation to object should be
allowed for the client application of this distribution context or not. |
boolean |
distributionContextShouldFetchObjectsWithFetchSpecification(EODistributionContext distributionContext,
EOFetchSpecification fetchSpecification)
Returns whether the client application of this distribution context should be permitted to execute a fetch with a fetch specification. |
boolean |
distributionContextShouldFetchObjectWithGlobalID(EODistributionContext distributionContext,
EOGlobalID globalID,
EOClassDescription classDescription)
Returns whether the client application of this distribution context should be permitted to fire a fault for a global ID. |
boolean |
distributionContextShouldFollowKeyPath(EODistributionContext distributionContext,
String keyPath)
Returns whether a remote method invocation to the object identified by keyPath (which is relative to the invocation target of the
distribution context) should be allowed for the client application of this
distribution context or not. |
boolean |
distributionContextShouldSave(EODistributionContext distributionContext,
EOEditingContext editingContext)
Returns whether the client application of this distribution context should be permitted to save the state of the editing context editingContext
(which is the editing context of the distribution context). |
NSData |
distributionContextWillSendData(EODistributionContext distributionContext,
NSData data)
Gives the delegate an opportunity to encrypt data sent to the client. |
Method Detail |
public NSData distributionContextDidReceiveData(EODistributionContext distributionContext, NSData data)
distributionContext
- the distribution contextdata
- the data received from the clientpublic boolean distributionContextShouldAllowAccessToClassDescription(EODistributionContext distributionContext, EOClassDescription classDescription)
distributionContext
- the distribution contextclassDescription
- the class description to testtrue
if the access to the class description should be permitted;
false
otherwise.public boolean distributionContextShouldAllowInvocation(EODistributionContext distributionContext, Object object, NSSelector selector, Object[] arguments)
object
should be
allowed for the client application of this distribution context or not.
If the delegate returns false
, an exception is raised and
sent to the client, so the method invocation is forbidden.distributionContext
- the distribution contextobject
- the remote method receiverselector
- the selector identifying the method to be invokedarguments
- the arguments to be passed to the methodtrue
if the remote method invocation should be permitted;
false
otherwisepublic boolean distributionContextShouldFetchObjectWithGlobalID(EODistributionContext distributionContext, EOGlobalID globalID, EOClassDescription classDescription)
distributionContextShouldFetchObjectsWithFetchSpecification
method
(in addition to this method). If the delegate returns false
,
an exception is raised and sent to the client, so the fetch is forbidden.distributionContext
- the distribution contextglobalID
- the global ID to testclassDescription
- the class description for the object identified by the global ID.true
if the fetch should be permitted;
false
otherwisedistributionContextShouldFetchObjectsWithFetchSpecification(EODistributionContext, EOFetchSpecification)
public boolean distributionContextShouldFetchObjectsWithFetchSpecification(EODistributionContext distributionContext, EOFetchSpecification fetchSpecification)
distributionContextShouldFetchObjectWithGlobalID
method
(in addition to this method). If the delegate returns false
,
an exception is raised and sent to the client, so the fetch is forbidden.distributionContext
- the distribution contextfetchSpecification
- the fetch specification to testtrue
if the fetch should be permitted;
false
otherwisedistributionContextShouldFetchObjectWithGlobalID(EODistributionContext, EOGlobalID, EOClassDescription)
public boolean distributionContextShouldFollowKeyPath(EODistributionContext distributionContext, String keyPath)
keyPath
(which is relative to the invocation target of the
distribution context) should be allowed for the client application of this
distribution context or not. If the delegate returns false
,
an exception is raised and sent to the client, so the method invocation is
forbidden.distributionContext
- the distribution contextkeyPath
- the key path identifying the remote method targettrue
if the remote method invocation should be permitted;
false
otherwisepublic boolean distributionContextShouldSave(EODistributionContext distributionContext, EOEditingContext editingContext)
editingContext
(which is the editing context of the distribution context). This method allows you to
control in great detail which changes a client can make. The delegate can examine
the state of the object graph in the editing context and if it returns
false
, an exception is raised and sent to the client, so the save
is forbidden.distributionContext
- the distribution contexteditingContext
- the editing context to be savedtrue
if the save should be permitted;
false
otherwisepublic NSData distributionContextWillSendData(EODistributionContext distributionContext, NSData data)
distributionContext
- the distribution contextdata
- the data to be sent to the client
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |