001 /****************************************************************
002 * Licensed to the Apache Software Foundation (ASF) under one *
003 * or more contributor license agreements. See the NOTICE file *
004 * distributed with this work for additional information *
005 * regarding copyright ownership. The ASF licenses this file *
006 * to you under the Apache License, Version 2.0 (the *
007 * "License"); you may not use this file except in compliance *
008 * with the License. You may obtain a copy of the License at *
009 * *
010 * http://www.apache.org/licenses/LICENSE-2.0 *
011 * *
012 * Unless required by applicable law or agreed to in writing, *
013 * software distributed under the License is distributed on an *
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
015 * KIND, either express or implied. See the License for the *
016 * specific language governing permissions and limitations *
017 * under the License. *
018 ****************************************************************/
019
020 package org.apache.hupa.shared.rpc;
021
022 import java.io.Serializable;
023 import java.util.ArrayList;
024
025 import net.customware.gwt.dispatch.shared.Action;
026
027 import org.apache.hupa.shared.data.IMAPFolder;
028 import org.apache.hupa.shared.data.Message.IMAPFlag;
029
030 public class SetFlag implements Action<GenericResult>, Serializable {
031
032 private static final long serialVersionUID = 662741801793895357L;
033 private IMAPFlag flag;
034 private ArrayList<Long> uids;
035 private IMAPFolder folder;
036 private boolean value;
037
038 public SetFlag(IMAPFolder folder, IMAPFlag flag, boolean value, ArrayList<Long> uids) {
039 this.flag = flag;
040 this.value = value;
041 this.uids = uids;
042 this.folder = folder;
043 }
044
045 protected SetFlag() {
046 }
047
048 public IMAPFolder getFolder() {
049 return folder;
050 }
051
052 public boolean getValue() {
053 return value;
054 }
055 public IMAPFlag getFlag() {
056 return flag;
057 }
058
059 public ArrayList<Long> getUids() {
060 return uids;
061 }
062 }