/*
* Aipo is a groupware program developed by TOWN, Inc.
* Copyright (C) 2004-2015 TOWN, Inc.
* http://www.aipo.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.aimluck.eip.services.social.model;
/**
*
*/
public class ALActivityGetRequest {
private int limit = -1;
private int page = -1;
private int isRead = -1;
private String keyword;
private String appId;
private int externalId;
private String loginName;
private String targetLoginName;
private long max = -1;
private float priority = -1f;
private String postId;
// 自分宛のお知らせかどうかのフラグ
private boolean targetLoginNameLimit = false;
/**
* @return limit
*/
public int getLimit() {
return limit;
}
/**
* @param limit
* セットする limit
*/
public void setLimit(int limit) {
this.limit = limit;
}
public ALActivityGetRequest withLimit(int limit) {
setLimit(limit);
return this;
}
/**
* @return page
*/
public int getPage() {
return page;
}
/**
* @param page
* セットする page
*/
public void setPage(int page) {
this.page = page;
}
public ALActivityGetRequest withPage(int page) {
setPage(page);
return this;
}
public int getExternalId() {
return externalId;
}
public void setExternalId(int externalId) {
this.externalId = externalId;
}
public ALActivityGetRequest withExternalId(int externalId) {
setExternalId(externalId);
return this;
}
public int isRead() {
return isRead;
}
/**
* @param limit
* セットする limit
*/
public void setRead(int isRead) {
this.isRead = isRead;
}
public ALActivityGetRequest withRead(int isRead) {
setRead(isRead);
return this;
}
/**
* @param keyword
* セットする keyword
*/
public void setKeyword(String keyword) {
this.keyword = keyword;
}
public ALActivityGetRequest withKeyword(String keyword) {
setKeyword(keyword);
return this;
}
/**
* @param appId
* セットする appId
*/
public void setAppId(String appId) {
this.appId = appId;
}
public ALActivityGetRequest withAppId(String appId) {
setAppId(appId);
return this;
}
/**
* @return keyword
*/
public String getKeyword() {
return keyword;
}
/**
* @return appId
*/
public String getAppId() {
return appId;
}
public String getLoginName() {
return loginName;
}
public void setLoginName(String loginName) {
this.loginName = loginName;
}
public ALActivityGetRequest withLoginName(String loginName) {
setLoginName(loginName);
return this;
}
public String getTargetLoginName() {
return targetLoginName;
}
public void setTargetLoginName(String targetLoginName) {
this.targetLoginName = targetLoginName;
}
public ALActivityGetRequest withTargetLoginName(String targetLoginName) {
setTargetLoginName(targetLoginName);
return this;
}
public ALActivityGetRequest withTargetLoginNameLimit(
boolean targetLoginNameLimit) {
setTargetLoginNameLimit(targetLoginNameLimit);
return this;
}
/**
* @param priority
* セットする priority
*/
public void setPriority(float priority) {
this.priority = priority;
}
public ALActivityGetRequest withPriority(float priority) {
setPriority(priority);
return this;
}
/**
* @return priority
*/
public float getPriority() {
return priority;
}
/**
* @return max
*/
public long getMax() {
return max;
}
public ALActivityGetRequest withMax(long max) {
setMax(max);
return this;
}
/**
* @param max
* セットする max
*/
public void setMax(long max) {
this.max = max;
}
/**
* @param targetLoginNameLimit
* セットする targetLoginNameLimit
*/
public void setTargetLoginNameLimit(boolean targetLoginNameLimit) {
this.targetLoginNameLimit = targetLoginNameLimit;
}
/**
* @return targetLoginNameLimit
*/
public boolean isTargetLoginNameLimit() {
return targetLoginNameLimit;
}
/**
* @return postId
*/
public String getPostId() {
return postId;
}
/**
* @param postId
* セットする postId
*/
public void setPostId(String postId) {
this.postId = postId;
}
public ALActivityGetRequest withPostId(String postId) {
setPostId(postId);
return this;
}
}