Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.wlp.rest.command
Interface MethodPermission

All Known Implementing Classes:
  AlwaysDisabled, AlwaysEnabled, LoginRequired

    public interface MethodPermission

Represents whether or not a `RestCommand` is enabled or not, depending on configuration in wlp-restapi-config.xml.

There are three REST framework supplied implementations of this interface: `AlwaysEnabled`, `AlwaysDisabled` and `LoginRequired`.

By implementing and configuring a one of these or a custom version of this interface via wlp-restapi-config.xml, arbitrary logic can be invoked to determine whether or not a particular `RestCommand` should be dispatched based on all information contained in the supplied `RestContext`.

Method Summary
`boolean` | `isEnabled(RestContext restContext)` Returns whether or not, based on the state of the supplied `RestContext`, the REST framework should invoke the `RestCommand` that this `MethodPermission` is associated with.

Method Detail

### isEnabled

    boolean isEnabled(RestContext restContext)

  Returns whether or not, based on the state of the supplied `RestContext`, the REST framework should invoke the `RestCommand` that this `MethodPermission` is associated with.

  Parameters
    `restContext` - the incoming `RestContext`
  Returns
    true if the `RestCommand` should be allowed to execute, false otherwise.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.