本文整理了Java中org.bonitasoft.engine.recorder.Recorder.recordDeleteAll
方法的一些代码示例,展示了Recorder.recordDeleteAll
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Recorder.recordDeleteAll
方法的具体详情如下:
包路径:org.bonitasoft.engine.recorder.Recorder
类名称:Recorder
方法名:recordDeleteAll
[英]Delete all records for a table from database, for the connected tenant
[中]从数据库中删除连接租户的表的所有记录
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllUsers() throws SUserDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SUser.class, null);
recorder.recordDeleteAll(record);
final DeleteAllRecord record2 = new DeleteAllRecord(SUserLogin.class, null);
recorder.recordDeleteAll(record2);
} catch (final SRecorderException e) {
throw new SUserDeletionException("Can't delete all users.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllUsers() throws SUserDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SUser.class, null);
recorder.recordDeleteAll(record);
final DeleteAllRecord record2 = new DeleteAllRecord(SUserLogin.class, null);
recorder.recordDeleteAll(record2);
} catch (final SRecorderException e) {
throw new SUserDeletionException("Can't delete all users.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllExternalIdentityMappings() throws SExternalIdentityMappingDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SExternalIdentityMapping.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SExternalIdentityMappingDeletionException("Can't delete all process external identity mappings ", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllActorMembers() throws SActorMemberDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SActorMember.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SActorMemberDeletionException("Can't delete all actor members.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllRoles() throws SRoleDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SRole.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SRoleDeletionException("Can't delete all roles.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllProfileMembers() throws SProfileMemberDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SProfileMember.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SProfileMemberDeletionException("Can't delete all profile members.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllGroups() throws SGroupDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SGroup.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SGroupDeletionException("Can't delete all groups.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllRoles() throws SRoleDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SRole.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SRoleDeletionException("Can't delete all roles.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllUserMemberships() throws SMembershipDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SUserMembership.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SMembershipDeletionException("Can't delete all user memberships.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllActorMembers() throws SActorMemberDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SActorMember.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SActorMemberDeletionException("Can't delete all actor members.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllProcessSupervisors() throws SSupervisorDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SProcessSupervisor.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SSupervisorDeletionException("Can't delete all process supervisors.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllExternalIdentityMappings() throws SExternalIdentityMappingDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SExternalIdentityMapping.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SExternalIdentityMappingDeletionException("Can't delete all process external identity mappings ", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllGroups() throws SGroupDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SGroup.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SGroupDeletionException("Can't delete all groups.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllUserMemberships() throws SMembershipDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SUserMembership.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SMembershipDeletionException("Can't delete all user memberships.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllProcessSupervisors() throws SSupervisorDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SProcessSupervisor.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SSupervisorDeletionException("Can't delete all process supervisors.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllProfileMembers() throws SProfileMemberDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SProfileMember.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SProfileMemberDeletionException("Can't delete all profile members.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void restoreDefaultTheme(final SThemeType type) throws SRestoreThemeException {
try {
final FilterOption defaultFilter = new FilterOption(STheme.class, SThemeBuilderFactory.IS_DEFAULT, false);
final FilterOption typeFilter = new FilterOption(STheme.class, SThemeBuilderFactory.TYPE, type.name());
final List<FilterOption> filterOptions = new ArrayList<FilterOption>();
filterOptions.add(defaultFilter);
filterOptions.add(typeFilter);
final DeleteAllRecord record = new DeleteAllRecord(STheme.class, filterOptions);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SRestoreThemeException("Can't delete custom themes for type = " + type, e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllPendingMappings() throws SActivityModificationException {
try {
final FilterOption filterOption = new FilterOption(SPendingActivityMapping.class, SPendingActivityMappingBuilderFactory.ACTOR_ID, -1);
final DeleteAllRecord record = new DeleteAllRecord(SPendingActivityMapping.class, Collections.singletonList(filterOption));
getRecorder().recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SActivityModificationException("Can't delete all pending mappings not attached to an actor.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void restoreDefaultTheme(final SThemeType type) throws SRestoreThemeException {
try {
final FilterOption defaultFilter = new FilterOption(STheme.class, SThemeBuilderFactory.IS_DEFAULT, false);
final FilterOption typeFilter = new FilterOption(STheme.class, SThemeBuilderFactory.TYPE, type.name());
final List<FilterOption> filterOptions = new ArrayList<FilterOption>();
filterOptions.add(defaultFilter);
filterOptions.add(typeFilter);
final DeleteAllRecord record = new DeleteAllRecord(STheme.class, filterOptions);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SRestoreThemeException("Can't delete custom themes for type = " + type, e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllPendingMappings() throws SActivityModificationException {
try {
final FilterOption filterOption = new FilterOption(SPendingActivityMapping.class, SPendingActivityMappingBuilderFactory.ACTOR_ID, -1);
final DeleteAllRecord record = new DeleteAllRecord(SPendingActivityMapping.class, Collections.singletonList(filterOption));
getRecorder().recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SActivityModificationException("Can't delete all pending mappings not attached to an actor.", e);
}
}
内容来源于网络,如有侵权,请联系作者删除!