home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / principl.idl < prev    next >
Encoding:
Text File  |  1996-02-21  |  1.9 KB  |  71 lines

  1. //
  2. //   COMPONENT_NAME: somd
  3. //
  4. //   ORIGINS: 27
  5. //
  6. //
  7. //   10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  8. //   All Rights Reserved
  9. //   Licensed Materials - Property of IBM
  10. //   US Government Users Restricted Rights - Use, duplication or
  11. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12. //
  13.  
  14.  
  15. #ifndef principl_idl
  16. #define principl_idl
  17.  
  18. #include <somobj.idl>
  19.  
  20.  
  21. interface Principal : SOMObject
  22.  
  23. //   This is a class interface definition which defines the CORBA-defined
  24. //   Principal object. CORBA defines the Principal object but (at this
  25. //   time) does not define the interface to this object. The methods for
  26. //   this object are, therefore, subject to change in future implementations.
  27. //
  28. //   The BOA guarantees that for every method invocation it will identify
  29. //   the principal on whose behalf the request is performed. An object
  30. //   implementation may request an instance of this class to determine
  31. //   if a method invocation has been made by someone with the appropriate
  32. //   authority. An instance of this class is returned when the following
  33. //   method is invoked on the BOA:
  34. //
  35. //     get_principal(in BOA boaobj, in Environment lcl_ev,
  36. //                   in SOMDObject obj, in Environment req_ev);
  37. //
  38. {
  39.   attribute string userName;
  40.   // User who made the request.
  41.  
  42.   attribute string hostName;
  43.   // Host from which the request was made.
  44.  
  45. #ifdef __SOMIDL__
  46.  
  47.   implementation
  48.   {
  49.     releaseorder: _set_userName, _get_userName,
  50.                   _set_hostName, _get_hostName;
  51.  
  52.     // Class Modifiers
  53.     callstyle = idl;
  54.     dllname = "somd.dll";
  55.     majorversion = 1;
  56.     minorversion = 0;
  57.  
  58.     // Attribute Modifiers
  59.     userName : noset;
  60.     hostName : noset;
  61.     somDefaultInit : override, init;
  62.     somDestruct: override;
  63.  
  64.   };
  65.  
  66. #endif /* __SOMIDL__ */
  67.  
  68. };
  69.  
  70. #endif  /* principl_idl */
  71.