use of org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook in project ovirt-engine by oVirt.
the class GlusterHookSyncJob method buildServerHook.
private GlusterServerHook buildServerHook(Guid serverId, Guid hookId, GlusterHookEntity returnedHook) {
GlusterServerHook serverHook = new GlusterServerHook();
serverHook.setHookId(hookId);
serverHook.setServerId(serverId);
serverHook.setStatus(returnedHook.getStatus());
serverHook.setContentType(returnedHook.getContentType());
serverHook.setChecksum(returnedHook.getChecksum());
return serverHook;
}
use of org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook in project ovirt-engine by oVirt.
the class GlusterHookResolveConflictsPopupView method initEditors.
private void initEditors() {
contentSourcesTable = new EntityModelCellTable<>(false, true);
statusEditor = new EntityModelLabelEditor<>(new EnumRenderer<GlusterHookStatus>());
resolveContentConflict = new EntityModelCheckBoxEditor(Align.RIGHT);
useContentSourceEditor = new ListModelListBoxEditor<>(new NullSafeRenderer<GlusterServerHook>() {
@Override
protected String renderNullSafe(GlusterServerHook hook) {
return hook.getServerName();
}
});
resolveStatusConflict = new EntityModelCheckBoxEditor(Align.RIGHT);
// $NON-NLS-1$
resolveStatusConflictEnable = new EntityModelRadioButtonEditor("status", Align.RIGHT);
// $NON-NLS-1$
resolveStatusConflictDisable = new EntityModelRadioButtonEditor("status", Align.RIGHT);
resolveMissingConflict = new EntityModelCheckBoxEditor(Align.RIGHT);
// $NON-NLS-1$
resolveMissingConflictCopyEditor = new EntityModelRadioButtonEditor("missing_hook", Align.RIGHT);
// $NON-NLS-1$
resolveMissingConflictRemoveEditor = new EntityModelRadioButtonEditor("missing_hook", Align.RIGHT);
}
Aggregations