home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / som30tk.zip / som30os2.zip / include / principl.idl < prev    next >
Text File  |  1996-12-24  |  2KB  |  81 lines

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