Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Mortar contains common code needed by our SAP apps.  All of your Actions actions should be subclasses of SAPBaseAction whose code you can access via Open Declaration -> Attach Source...

First check out the version of mortar used by your application via SVN mortar -> tags -> version of interest.

Then navigate to SAPBaseAction via Open Declaration and attach the source:
 
In the Source Attachment Configuration window click on the Workspace... button. Select the src directory within the mortar project you checked out above.  
 
A number of useful session attributes are set via mortar. Your actions can access these session attributes with the following code:

String usefulAttribute = (String)request.getSession().getAttribute(GlobalKeys.xxx);

where xxx is one of the following constants: 

  1. CERT (base64EncodedCert)
  2. USERNAME (Users Full Name taken from their certificate)
  3. KERBID (Users Kerberos Principle taken from their certificate)
  4. SAP_SYSTEM_ID (e.g., SF2, SF5, etc)
  5. WAS_SYSTEM_ID (e.g., J02?)
  6. WAS_HOST (e.g., insidemit-apps-dev)
  7. USER_HOME (Where restart should go to)