'Receives admin data from the Portal (allows the portal to
perform admin operations on the server). This is executed on
the Server.
Args:
packed_data (str): Incoming, pickled data.'

@AdminPortal2Server.responder
def server_receive_adminportal2server(self, packed_data):

    (sessid, kwargs) = loads(packed_data)
    operation = kwargs.pop('operation', '')
    server_sessionhandler = self.factory.server.sessions
    if (operation == PCONN):
        server_sessionhandler.portal_connect(kwargs.get('sessiondata'))
    elif (operation == PCONNSYNC):
        server_sessionhandler.portal_session_sync(kwargs.get('sessiondata'))
    elif (operation == PDISCONN):
        session = server_sessionhandler.get(sessid)
        if session:
            server_sessionhandler.portal_disconnect(session)
    elif (operation == PDISCONNALL):
        server_sessionhandler.portal_disconnect_all()
    elif (operation == PSYNC):
        server_sessionhandler.portal_sessions_sync(kwargs.get('sessiondata'))
    else:
        raise Exception(('operation    %(op)s    not    recognized.' % {'op': operation}))
    return {}
