001/* 002 * (C) Copyright 2014 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 * Contributors: 017 * Thierry Delprat 018 */ 019package org.nuxeo.segment.io.extension; 020 021import org.joda.time.DateTime; 022 023import com.github.segmentio.models.BasePayload; 024import com.github.segmentio.models.Context; 025import com.github.segmentio.models.Traits; 026 027public class Group extends BasePayload { 028 029 @SuppressWarnings("unused") 030 private String action = "group"; 031 032 private String groupId; 033 034 private Traits traits; 035 036 public Group(String userId, String groupId, Traits traits, DateTime timestamp, 037 Context context) { 038 super(userId, timestamp, context, null); 039 this.groupId=groupId; 040 this.traits = traits; 041 } 042 043 public String getGroupId() { 044 return groupId; 045 } 046 047 public void setGroupId(String groupId) { 048 this.groupId = groupId; 049 } 050 051 public Traits getTraits() { 052 return traits; 053 } 054 055 public void setTraits(Traits traits) { 056 this.traits = traits; 057 } 058 059}