def get_asset_admin_session_for_repository(self, repository_id=None, *args, **kwargs):
        """Gets an asset administration session for the given repository.

        arg:    repository_id (osid.id.Id): the Id of the repository
        return: (osid.repository.AssetAdminSession) - an
                AssetAdminSession
        raise:  NotFound - repository_id not found
        raise:  NullArgument - repository_id is null
        raise:  OperationFailed - unable to complete request
        raise:  Unimplemented - supports_asset_admin() or
                supports_visible_federation() is false
        compliance: optional - This method must be implemented if
                    supports_asset_admin() and
                    supports_visible_federation() are true.

        """
        if not repository_id:
            raise NullArgument()
        if not self.supports_asset_admin():
            raise Unimplemented()
        try:
            from . import sessions
        except ImportError:
            raise OperationFailed('import error')
        try:
            session = sessions.AssetAdminSession(repository_id,
                                                 proxy=self._proxy,
                                                 runtime=self._runtime, **kwargs)
        except AttributeError:
            raise OperationFailed('attribute error')
        return session
def get_asset_admin_session_for_repository ( self , repository_id = None , * args , ** kwargs ) : if not repository_id : raise NullArgument ( ) if not self . supports_asset_admin ( ) : raise Unimplemented ( ) try : from . import sessions except ImportError : raise OperationFailed ( 'import error' ) try : session = sessions . AssetAdminSession ( repository_id , proxy = self . _proxy , runtime = self . _runtime , ** kwargs ) except AttributeError : raise OperationFailed ( 'attribute error' ) return session
Gets an asset administration session for the given repository.

        arg:    repository_id (osid.id.Id): the Id of the repository
        return: (osid.repository.AssetAdminSession) - an
                AssetAdminSession
        raise:  NotFound - repository_id not found
        raise:  NullArgument - repository_id is null
        raise:  OperationFailed - unable to complete request
        raise:  Unimplemented - supports_asset_admin() or
                supports_visible_federation() is false
        compliance: optional - This method must be implemented if
                    supports_asset_admin() and
                    supports_visible_federation() are true.