001/* 002 * Syncany, www.syncany.org 003 * Copyright (C) 2011-2016 Philipp C. Heckel <philipp.heckel@gmail.com> 004 * 005 * This program is free software: you can redistribute it and/or modify 006 * it under the terms of the GNU General Public License as published by 007 * the Free Software Foundation, either version 3 of the License, or 008 * (at your option) any later version. 009 * 010 * This program is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 013 * GNU General Public License for more details. 014 * 015 * You should have received a copy of the GNU General Public License 016 * along with this program. If not, see <http://www.gnu.org/licenses/>. 017 */ 018package org.syncany.operations.plugin; 019 020import java.util.List; 021 022import org.syncany.operations.OperationResult; 023 024public class PluginOperationResult implements OperationResult { 025 public enum PluginResultCode { 026 OK, NOK 027 } 028 029 private PluginResultCode resultCode; 030 private PluginOperationAction action; 031 private List<ExtendedPluginInfo> pluginList; 032 private String sourcePluginPath; 033 private String targetPluginPath; 034 private PluginInfo affectedPluginInfo; 035 private List<String> conflictingPluginIds; 036 private List<String> updatedPluginIds; 037 private List<String> erroneousPluginIds; 038 private List<String> delayedPluginIds; 039 040 public PluginOperationAction getAction() { 041 return action; 042 } 043 044 public void setAction(PluginOperationAction action) { 045 this.action = action; 046 } 047 048 public List<ExtendedPluginInfo> getPluginList() { 049 return pluginList; 050 } 051 052 public void setPluginList(List<ExtendedPluginInfo> pluginList) { 053 this.pluginList = pluginList; 054 } 055 056 public PluginResultCode getResultCode() { 057 return resultCode; 058 } 059 060 public void setResultCode(PluginResultCode resultCode) { 061 this.resultCode = resultCode; 062 } 063 064 public PluginInfo getAffectedPluginInfo() { 065 return affectedPluginInfo; 066 } 067 068 public void setAffectedPluginInfo(PluginInfo affectedPluginInfo) { 069 this.affectedPluginInfo = affectedPluginInfo; 070 } 071 072 public String getSourcePluginPath() { 073 return sourcePluginPath; 074 } 075 076 public void setSourcePluginPath(String affectedPluginPath) { 077 this.sourcePluginPath = affectedPluginPath; 078 } 079 080 public String getTargetPluginPath() { 081 return targetPluginPath; 082 } 083 084 public void setTargetPluginPath(String targetPluginPath) { 085 this.targetPluginPath = targetPluginPath; 086 } 087 088 public List<String> getConflictingPluginIds() { 089 return conflictingPluginIds; 090 } 091 092 public void setConflictingPlugins(List<String> conflictingPluginIds) { 093 this.conflictingPluginIds = conflictingPluginIds; 094 } 095 public List<String> getUpdatedPluginIds() { 096 return updatedPluginIds; 097 } 098 099 public void setUpdatedPluginIds(List<String> updatedPluginIds) { 100 this.updatedPluginIds = updatedPluginIds; 101 } 102 103 public List<String> getErroneousPluginIds() { 104 return erroneousPluginIds; 105 } 106 107 public void setErroneousPluginIds(List<String> erroneousPluginIds) { 108 this.erroneousPluginIds = erroneousPluginIds; 109 } 110 111 public void setDelayedPluginIds(List<String> delayedPluginIds) { 112 this.delayedPluginIds = delayedPluginIds; 113 } 114 115 public List<String> getDelayedPluginIds() { 116 return delayedPluginIds; 117 } 118}