Skip to content

Commit e5259ad

Browse files
committed
feat: added TornadoUserProfileManagerHandler
1 parent 6661728 commit e5259ad

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

src/DIRAC/FrameworkSystem/ConfigTemplate.cfg

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,17 @@ Services
120120
Default = authenticated
121121
}
122122
}
123+
##BEGIN TornadoUserProfileManager:
124+
# Section to describe UserProfileManager service
125+
TornadoUserProfileManager
126+
{
127+
Port = 9155
128+
Authorization
129+
{
130+
Default = authenticated
131+
}
132+
}
133+
##END
123134
BundleDelivery
124135
{
125136
Port = 9158
@@ -160,7 +171,7 @@ Services
160171
}
161172
}
162173
##BEGIN TornadoNotification:
163-
# Section to describe Notification system
174+
# Section to describe Notification service
164175
TornadoNotification
165176
{
166177
SMSSwitch = sms.switch.ch
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
""" TornadoUserProfileManager is the implementation of the UserProfileManager service in HTTPS
2+
3+
.. literalinclude:: ../ConfigTemplate.cfg
4+
:start-after: ##BEGIN TornadoUserProfileManager:
5+
:end-before: ##END
6+
:dedent: 2
7+
:caption: TornadoUserProfileManager options
8+
"""
9+
from DIRAC.Core.Tornado.Server.TornadoService import TornadoService
10+
from DIRAC.FrameworkSystem.Service.UserProfileManagerHandler import UserProfileManagerHandlerMixin
11+
12+
13+
class TornadoUserProfileManagerHandler(UserProfileManagerHandlerMixin, TornadoService):
14+
pass

src/DIRAC/FrameworkSystem/Service/UserProfileManagerHandler.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from DIRAC.Core.Security import Properties
88

99

10-
class UserProfileManagerHandler(RequestHandler):
10+
class UserProfileManagerHandlerMixin:
1111
@classmethod
1212
def initializeHandler(cls, serviceInfo):
1313
"""Handler initialization"""
@@ -148,3 +148,7 @@ def export_getUserProfileNames(self, permission):
148148
it returns the available profile names by not taking account the permission: ReadAccess and PublishAccess
149149
"""
150150
return self.upDB.getUserProfileNames(permission)
151+
152+
153+
class UserProfileManagerHandler(UserProfileManagerHandlerMixin, RequestHandler):
154+
pass

0 commit comments

Comments
 (0)