com.softwareag.mdm.service
Interface ServicePermission


public interface ServicePermission

Attached to a service definition, this interface specifies in which conditions the service may be executed.

Schema definition

A service permission must be declared within a service declaration, at attribute class:

 <mdm:service 
    resourcePath="/myFirstPage.jsp" 
    class="com.foo.MyPermission" />
where com.foo.MyPermission is the fully qualified name of a class implementing this interface. It is also possible to set additional JavaBean properties:
 <mdm:service 
    resourcePath="/myFirstPage.jsp" 
    class="com.foo.MyPermission" >
 	 <param1>...</param1>
 	 <param2>...</param2>
 </mdm:service>
where param1 and param2 are JavaBean properties of the class specified.

For more information, read JavaBeans specification.

Life-cycle

  1. When the schema is loaded, on each node that declares a specific permission, the class specified is instantiated through its default constructor and the JavaBean properties' setters are called (in the example above, setParam1(...) and setParam2(...)).
  2. In operational phase: the method getPermission(SchemaNode, Adaptation, Session) is called each time the associated service is potentially displayed in a Manager session.

See Also:
ServiceContext

Method Summary
 ActionPermission getPermission(SchemaNode aNode, Adaptation anAdaptation, Session aSession)
          Returns a permission for the arguments specified.
 

Method Detail

getPermission

public ActionPermission getPermission(SchemaNode aNode,
                                      Adaptation anAdaptation,
                                      Session aSession)
Returns a permission for the arguments specified.

Multi-threading

For a single instance of this interface, this method may be called concurrently by several threads.



(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.