home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / principl.idl < prev    next >
Text File  |  1999-02-22  |  2KB  |  74 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. //#  @(#) 2.13 src/somd/principl.idl, somd, som2.1 4/3/95 13:27:25 [7/30/96 14:45:38]
  14.  
  15.  
  16.  
  17.  
  18. #ifndef principl_idl
  19. #define principl_idl
  20.  
  21. #include <somobj.idl>
  22.  
  23.  
  24. interface Principal : SOMObject
  25.  
  26. //   This is a class interface definition which defines the CORBA-defined
  27. //   Principal object. CORBA defines the Principal object but (at this
  28. //   time) does not define the interface to this object. The methods for
  29. //   this object are, therefore, subject to change in future implementations.
  30. //
  31. //   The BOA guarantees that for every method invocation it will identify
  32. //   the principal on whose behalf the request is performed. An object
  33. //   implementation may request an instance of this class to determine
  34. //   if a method invocation has been made by someone with the appropriate
  35. //   authority. An instance of this class is returned when the following
  36. //   method is invoked on the BOA:
  37. //
  38. //     get_principal(in BOA boaobj, in Environment lcl_ev,
  39. //                   in SOMDObject obj, in Environment req_ev);
  40. //
  41. {
  42.   attribute string userName;
  43.   // User who made the request.
  44.  
  45.   attribute string hostName;
  46.   // Host from which the request was made.
  47.  
  48. #ifdef __SOMIDL__
  49.  
  50.   implementation
  51.   {
  52.     releaseorder: _set_userName, _get_userName,
  53.                   _set_hostName, _get_hostName;
  54.  
  55.     // Class Modifiers
  56.     callstyle = idl;
  57.     dllname = "somd.dll";
  58.     majorversion = 1;
  59.     minorversion = 0;
  60.  
  61.     // Attribute Modifiers
  62.     userName : noset;
  63.     hostName : noset;
  64.     somDefaultInit : override, init;
  65.     somDestruct: override;
  66.  
  67.   };
  68.  
  69. #endif /* __SOMIDL__ */
  70.  
  71. };
  72.  
  73. #endif  /* principl_idl */
  74.