UserProfileManagerHandler

ProfileManager manages web user profiles in the DISET framework

class DIRAC.FrameworkSystem.Service.UserProfileManagerHandler.UserProfileManagerHandler(handlerInitDict, trid)

Bases: DIRAC.Core.DISET.RequestHandler.RequestHandler

exception ConnectionError(msg)

Bases: exceptions.Exception

__init__(msg)

x.__init__(…) initializes x; see help(type(x)) for signature

args
message
__init__(handlerInitDict, trid)

Constructor

Parameters:
  • handlerInitDict (dictionary) – Information vars for the service
  • trid (object) – Transport to use
auth_ping = ['all']
export_deleteProfileVar(profileName, varName)

Set profile data for web

export_deleteProfiles(userList)

Delete profiles for a list of users

static export_echo(data)

This method used for testing the performance of a service

export_getProfileVarPermissions(profileName, varName)

Set profile data for web

export_getUserProfileNames(permission)

it returns the available profile names by not taking account the permission: ReadAccess and PublishAccess

export_getUserProfiles()

Get all profiles for a user

export_listAvailableProfileVars(profileName, filterDict={})

Set profile data for web

export_ping()
export_retrieveAllHashTags()

Get all hash tags

export_retrieveHashTag(hashTag)

Get hash tag

export_retrieveProfileAllVars(profileName)

Get profile data for web

export_retrieveProfileVar(profileName, varName)

Get profile data for web

export_retrieveProfileVarFromUser(ownerName, ownerGroup, profileName, varName)

Get profile data for web for any user according to perms

export_setProfileVarPermissions(profileName, varName, perms)

Set profile data for web

export_storeHashTag(tagName)

Set hash tag

export_storeProfileVar(profileName, varName, data, perms)

Set profile data for web

classmethod getCSOption(optionName, defaultValue=False)

Get an option from the CS section of the services

Returns:Value for serviceSection/optionName in the CS being defaultValue the default
getRemoteAddress()

Get the address of the remote peer.

Returns:Address of remote peer.
getRemoteCredentials()

Get the credentials of the remote peer.

Returns:Credentials dictionary of remote peer.
initialize()

Initialize this instance of the handler (to be overwritten)

srv_disconnect(trid=None)
classmethod srv_disconnectClient(trid)
srv_getActionTuple()
classmethod srv_getCSOption(optionName, defaultValue=False)

Get an option from the CS section of the services

Returns:Value for serviceSection/optionName in the CS being defaultValue the default
srv_getClientSetup()
srv_getClientVO()
srv_getFormattedRemoteCredentials()
classmethod srv_getMonitor()
srv_getRemoteAddress()

Get the address of the remote peer.

Returns:Address of remote peer.
srv_getRemoteCredentials()

Get the credentials of the remote peer.

Returns:Credentials dictionary of remote peer.
classmethod srv_getServiceName()
srv_getTransportID()
classmethod srv_getURL()
classmethod srv_msgCreate(msgName)
srv_msgReply(msgObj)
classmethod srv_msgSend(trid, msgObj)
transfer_bulkFromClient(bulkId, token, bulkSize, fileHelper)
transfer_bulkToClient(bulkId, token, fileHelper)
transfer_fromClient(fileId, token, fileSize, fileHelper)
transfer_listBulk(bulkId, token, fileHelper)
transfer_toClient(fileId, token, fileHelper)
types_deleteProfileVar = [(<type 'str'>, <type 'unicode'>), (<type 'str'>, <type 'unicode'>)]
types_deleteProfiles = [<type 'list'>]
types_echo = [<type 'basestring'>]
types_getProfileVarPermissions = [(<type 'str'>, <type 'unicode'>), (<type 'str'>, <type 'unicode'>)]
types_getUserProfileNames = [<type 'dict'>]
types_getUserProfiles = []
types_listAvailableProfileVars = [(<type 'str'>, <type 'unicode'>)]
types_ping = []
types_retrieveAllHashTags = []
types_retrieveHashTag = [(<type 'str'>, <type 'unicode'>)]
types_retrieveProfileAllVars = [(<type 'str'>, <type 'unicode'>)]
types_retrieveProfileVar = [(<type 'str'>, <type 'unicode'>), (<type 'str'>, <type 'unicode'>)]
types_retrieveProfileVarFromUser = [(<type 'str'>, <type 'unicode'>), (<type 'str'>, <type 'unicode'>), (<type 'str'>, <type 'unicode'>), (<type 'str'>, <type 'unicode'>)]
types_setProfileVarPermissions = [(<type 'str'>, <type 'unicode'>), (<type 'str'>, <type 'unicode'>), <type 'dict'>]
types_storeHashTag = [(<type 'str'>, <type 'unicode'>)]
types_storeProfileVar = [(<type 'str'>, <type 'unicode'>), (<type 'str'>, <type 'unicode'>), (<type 'str'>, <type 'unicode'>), <type 'dict'>]
DIRAC.FrameworkSystem.Service.UserProfileManagerHandler.initializeUserProfileManagerHandler(serviceInfo)