blob: 6b31dedf392ca3b5347175b5e9a13a208f5de806 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
// $Id$
#include "Context_Impl_Base.h"
namespace CIAO
{
Context_Impl_Base::Context_Impl_Base (void)
{
ACE_ASSERT (0);
}
Context_Impl_Base::Context_Impl_Base (Components::CCMHome_ptr home,
Session_Container * c)
: home_ (Components::CCMHome::_duplicate (home)),
container_ (c)
{
}
Context_Impl_Base::~Context_Impl_Base (void)
{
}
// Operations from ::Components::CCMContext.
Components::Principal_ptr
Context_Impl_Base::get_caller_principal (
ACE_ENV_SINGLE_ARG_DECL
)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (),
Components::Principal::_nil ());
}
Components::CCMHome_ptr
Context_Impl_Base::get_CCM_home (
ACE_ENV_SINGLE_ARG_DECL_NOT_USED
)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return Components::CCMHome::_duplicate (this->home_.in ());
}
CORBA::Boolean
Context_Impl_Base::get_rollback_only (
ACE_ENV_SINGLE_ARG_DECL
)
ACE_THROW_SPEC ((CORBA::SystemException,
Components::IllegalState))
{
ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), false);
}
Components::Transaction::UserTransaction_ptr
Context_Impl_Base::get_user_transaction (
ACE_ENV_SINGLE_ARG_DECL
)
ACE_THROW_SPEC ((CORBA::SystemException,
Components::IllegalState))
{
ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (),
Components::Transaction::UserTransaction::_nil ());
}
CORBA::Boolean
Context_Impl_Base::is_caller_in_role (
const char * /* role */
ACE_ENV_ARG_DECL
)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), false);
}
void
Context_Impl_Base::set_rollback_only (
ACE_ENV_SINGLE_ARG_DECL
)
ACE_THROW_SPEC ((CORBA::SystemException,
Components::IllegalState))
{
ACE_THROW (CORBA::NO_IMPLEMENT ());
}
// CIAO-specific.
CIAO::Session_Container *
Context_Impl_Base::_ciao_the_Container (void) const
{
return this->container_;
}
const char *
Context_Impl_Base::_ciao_instance_id (void) const
{
return this->ciao_instance_id_.in ();
}
void
Context_Impl_Base::_ciao_instance_id (const char *instance_id)
{
this->ciao_instance_id_ = instance_id;
}
}
|