@Transactional@grails.transaction.Transactional @GrailsCompileStatic@grails.compiler.GrailsCompileStatic class BroFwkSyncSourceService extends Object
以 BroFramework 为源的数据拉取服务
如果要使用本服务,务必继承本类、并覆盖 processEmployee、processPosition、processOrganization 等方法,否则仅供测试。
| Type | Name and description |
|---|---|
void |
getOrganizationChangeLog(Source source, Date start, Date end, Closure callback) |
void |
getPositionChangeLog(Source source, Date start, Date end, Closure callback) |
void |
getUserChangeLog(Source source, Date start, Date end, Closure callback) |
void |
initOrganization(Source source, String syncId, Closure callback) |
void |
initOrganizations(Source source, Closure callback) |
void |
initPosition(Source source, String syncId, Closure callback) |
void |
initPositions(Source source, Closure callback) |
void |
initUser(Source source, String syncId, Boolean isManual, Closure callback) |
void |
initUsers(Source source, Closure callback) |
protected void |
processEmployee(Map entity) |
protected void |
processOrganization(Map entity) |
protected void |
processPosition(Map entity) |
| Methods inherited from class | Name |
|---|---|
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |