server/sources/__init__.py
changeset 4913 083b4d454192
parent 4807 5642bfa43236
child 5124 d4d0b4b2298a
equal deleted inserted replaced
4912:9767cc516b4f 4913:083b4d454192
   349 
   349 
   350     def update_entity(self, session, entity):
   350     def update_entity(self, session, entity):
   351         """update an entity in the source"""
   351         """update an entity in the source"""
   352         raise NotImplementedError()
   352         raise NotImplementedError()
   353 
   353 
   354     def delete_entity(self, session, etype, eid):
   354     def delete_entity(self, session, entity):
   355         """delete an entity from the source"""
   355         """delete an entity from the source"""
   356         raise NotImplementedError()
   356         raise NotImplementedError()
   357 
   357 
   358     def add_relation(self, session, subject, rtype, object):
   358     def add_relation(self, session, subject, rtype, object):
   359         """add a relation to the source"""
   359         """add a relation to the source"""
   370         raise NotImplementedError()
   370         raise NotImplementedError()
   371 
   371 
   372     def create_eid(self, session):
   372     def create_eid(self, session):
   373         raise NotImplementedError()
   373         raise NotImplementedError()
   374 
   374 
   375     def add_info(self, session, entity, source, extid=None):
   375     def add_info(self, session, entity, source, extid):
   376         """add type and source info for an eid into the system table"""
   376         """add type and source info for an eid into the system table"""
   377         raise NotImplementedError()
   377         raise NotImplementedError()
   378 
   378 
   379     def delete_info(self, session, eid, etype, uri, extid):
   379     def update_info(self, session, entity, need_fti_update):
       
   380         """mark entity as being modified, fulltext reindex if needed"""
       
   381         raise NotImplementedError()
       
   382 
       
   383     def delete_info(self, session, entity, uri, extid, attributes, relations):
   380         """delete system information on deletion of an entity by transfering
   384         """delete system information on deletion of an entity by transfering
   381         record from the entities table to the deleted_entities table
   385         record from the entities table to the deleted_entities table
   382         """
   386         """
   383         raise NotImplementedError()
   387         raise NotImplementedError()
   384 
   388