/* * * * Copyright 2013 Jive Software * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org/licenses/LICENSE-2.0 * * * * Unless required by applicable law or agreed to in writing, software * * distributed under the License is distributed on an "AS IS" BASIS, * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and * * limitations under the License. * */ package com.jivesoftware.sdk.api.data; import org.codehaus.jackson.annotate.JsonIgnoreProperties; import org.codehaus.jackson.map.annotate.JsonSerialize; import java.util.List; import java.util.Map; /** * Created by rrutan on 11/10/14. */ @JsonIgnoreProperties(ignoreUnknown = true) @JsonSerialize(include= JsonSerialize.Inclusion.NON_DEFAULT) public class JivePlace { private long id; private Map<String,JiveResource> resources; private long followerCount; private List<String> tags; private String updated; //TODO: CONVERT TO DATE private String iconCss; private long placeID; private List<String> contentTypes; private String description; private String displayName; private String name; private String parent; private String status; private long viewCount; private boolean visibleToExternalContributors; private JivePerson creator; //TODO: HOW BEST TO TYPE THESE VARIABLES FOR ONLY GROUPS private String groupType; private long memberCount; //TODO: HOW BEST TO TYPE THESE VARIABLES FOR ONLY PROJECTS private String dueDate; //TODO: CONVERT TO DATE private String projectStatus; private String startDate; //TODO: CONVERT TO DATE private String type; public long getId() { return id; } public void setId(long id) { this.id = id; } public Map<String, JiveResource> getResources() { return resources; } public void setResources(Map<String, JiveResource> resources) { this.resources = resources; } public long getFollowerCount() { return followerCount; } public void setFollowerCount(long followerCount) { this.followerCount = followerCount; } public List<String> getTags() { return tags; } public void setTags(List<String> tags) { this.tags = tags; } public String getUpdated() { return updated; } public void setUpdated(String updated) { this.updated = updated; } public String getIconCss() { return iconCss; } public void setIconCss(String iconCss) { this.iconCss = iconCss; } public long getPlaceID() { return placeID; } public void setPlaceID(long placeID) { this.placeID = placeID; } public List<String> getContentTypes() { return contentTypes; } public void setContentTypes(List<String> contentTypes) { this.contentTypes = contentTypes; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getDisplayName() { return displayName; } public void setDisplayName(String displayName) { this.displayName = displayName; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getParent() { return parent; } public void setParent(String parent) { this.parent = parent; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public long getViewCount() { return viewCount; } public void setViewCount(long viewCount) { this.viewCount = viewCount; } public boolean isVisibleToExternalContributors() { return visibleToExternalContributors; } public void setVisibleToExternalContributors(boolean visibleToExternalContributors) { this.visibleToExternalContributors = visibleToExternalContributors; } public JivePerson getCreator() { return creator; } public void setCreator(JivePerson creator) { this.creator = creator; } public String getDueDate() { return dueDate; } public void setDueDate(String dueDate) { this.dueDate = dueDate; } public String getProjectStatus() { return projectStatus; } public void setProjectStatus(String projectStatus) { this.projectStatus = projectStatus; } public String getStartDate() { return startDate; } public void setStartDate(String startDate) { this.startDate = startDate; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getGroupType() { return groupType; } public void setGroupType(String groupType) { this.groupType = groupType; } public long getMemberCount() { return memberCount; } public void setMemberCount(long memberCount) { this.memberCount = memberCount; } }