001
014
015 package com.liferay.portal.kernel.xuggler;
016
017 import com.liferay.portal.kernel.progress.InstallStatus;
018
019
022 public class XugglerInstallStatus implements InstallStatus {
023
024 public static final int COMPLETED = 2;
025
026 public static final int COPYING = 1;
027
028 public static final int DOWNLOADING = 0;
029
030 public int getStatus() {
031 return _status;
032 }
033
034 public String getStatusLabel() {
035 int status = getStatus();
036
037 if (status == 0) {
038 return "downloading-xuggler";
039 }
040 else if (status == 1) {
041 return "copying-xuggler";
042 }
043 else if (status == 2) {
044 return "completed";
045 }
046
047 return "unknown";
048 }
049
050 public void setStatus(int status) {
051 _status = status;
052 }
053
054 private int _status = UNKNOWN;
055
056 }