summaryrefslogtreecommitdiff
path: root/modules/CIAO/ccm/CCM_Context.idl
blob: a9950d6a3912eb6810965fb0587f701b3fd8ad9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// $Id$

#if !defined (CCM_CONTEXT_IDL)
#define CCM_CONTEXT_IDL

#include "ccm/Security.idl"
#include "ccm/CCM_Transaction.idl"
#include "ccm/CCM_Home.idl"
#include "ccm/CCM_CCMException.idl"

// *************** Basic Container interfaces ***************

module Components
{
  typeprefix Components "omg.org";

#if !defined (CCM_LW)
  typedef SecurityLevel2::Credentials Principal;
#endif

  exception IllegalState {};

  local interface CCMContext
  {
#if !defined (CCM_LW)
    Principal get_caller_principal();
#endif

    CCMHome get_CCM_home();

#if !defined (CCM_LW)
    boolean get_rollback_only()
      raises (IllegalState);
#endif

#if !defined (CCM_LW)
    Transaction::UserTransaction get_user_transaction()
      raises (IllegalState);
#endif

#if !defined (CCM_LW)
    boolean is_caller_in_role (in string role);
#endif

#if !defined (CCM_LW)
    void set_rollback_only()
      raises (IllegalState);
#endif

#if !defined (CCM_LW)
    /**
     * Added for QoS4CCM
     */
    Object resolve_service_reference(in string service_id)
      raises (CCMException);
#endif
  };
};
#endif /* CCM_CONTEXT_IDL */