text stringlengths 3 1.18M |
|---|
/**
*
*/
package com.tuan.splider.parser;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.Date;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateUtils;
import com.hunthawk.reader.en... |
/**
*
*/
package com.tuan.splider.parser;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.Date;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateUtils;
import com.hunthawk.reader.en... |
/**
*
*/
package com.tuan.splider.parser;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.Date;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateUtils;
import com.hunthawk.reader.en... |
/**
*
*/
package com.tuan.splider.parser;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.Date;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateUtils;
import com.hunthawk.reader.en... |
/**
*
*/
package com.tuan.splider.parser;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.Date;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateUtils;
import com.hunthawk.reader.en... |
package com.tuan.splider.parser;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.Date;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateUtils;
import com.hunthawk.reader.enhance.util.Tool... |
/**
*
*/
package com.tuan.splider.parser;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.Date;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateUtils;
import com.hunthawk.reader.en... |
/**
*
*/
package com.tuan.splider.parser;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.Date;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateUtils;
import com.hunthawk.reader.en... |
package com.tuan.splider;
import com.tuan.domain.Article;
public interface ArticleParser {
public Article parse(String htmlurl, Integer cityId,Integer fromId) throws Exception ;
}
|
/**
*
*/
package com.tuan.util;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
/**
* @author sunquanzhi
*
*/
public class PropertiesReaderUtil {
priva... |
/**
*
*/
package com.tuan.util;
import java.io.StringWriter;
import java.util.Map;
import java.util.Properties;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.Velocity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* ... |
/**
*
*/
package com.tuan.util;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* Date utility methods.
* @author BruceSun
*
*/
public class DateUtil {
private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFo... |
/**
*
*/
package com.tuan.util;
import java.util.List;
import com.aspire.wap.core.common.StringUtil;
/**
* Html message parser
* @author BruceSun
*
*/
public class HTMLMessageParser {
/**
* Parse inline html content.
* @param item
* @param str
* @return
*/
// public static St... |
package com.tuan.util;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Generic utility methods
* @author BruceSun
*
*/
@SuppressWarnings("unchecked")
public class GenericsUtils {
private static final Logger ... |
/**
*
*/
package com.tuan.util;
import java.util.Date;
/**
* String utility methods.
* @author BruceSun
*
*/
public class StringUtil {
/**
* Judge string whether string is null or empty.
* @param str
* @return
*/
public static boolean isEmpty(String str){
return str == null ... |
/**
*
*/
package com.tuan.util;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
/**
* Request utility methods.
* @author BruceSun
*
*/
public class RequestUtil {
/**
* Get parameter int value . If has not return defaultNum.
* @param... |
/**
*
*/
package com.tuan.util;
import java.text.MessageFormat;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Locale;
import java.util.Map;
import java.util.ResourceBundle;
import java.util.Set;
import java.util.StringTokenizer;
import java.util.con... |
package com.tuan.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
/**
* IO utility methods.... |
/**
*
*/
package com.tuan.util;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.beanutils.BeanUtilsBean;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
imp... |
/**
*
*/
package com.tuan.web.framework;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
... |
/**
*
*/
package com.tuan.web.framework;
/**
* Web exception.
* @author BruceSun
*
*/
public class WebException extends Exception {
private static final long serialVersionUID = 1315140201522815272L;
/**
* Constructs a DataException object with a message.
*
* @param msg
... |
/**
*
*/
package com.tuan.web.framework;
/**
* Authentication Exception
* @author BruceSun
*
*/
public class AuthenticationException extends Exception {
/**
*
*/
private static final long serialVersionUID = -6109818325910655494L;
/**
* Constructs a AuthenticationException object... |
/**
*
*/
package com.tuan.web.framework;
import java.util.StringTokenizer;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.tuan.util.I18NUtil;
/**
* @author BruceSun
*
*/
public abstract class BaseS... |
/**
*
*/
package com.tuan.web.framework.ajax;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com... |
/**
*
*/
package com.tuan.web.framework.ajax;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* @author BruceSun
*
*/
public interface AjaxAction {
public abstract void ... |
/**
*
*/
package com.tuan.web.framework.ajax;
import java.io.IOException;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... |
/**
*
*/
package com.tuan.web.framework;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.tuan.web.framework.ajax.AjaxSe... |
/*
* GetArticleHotListAction.java
*
* Created on 2010-7-6
*
* Copyright(C) 2010, by Ambow Develop & Research Branch.
*
* Original Author: liujia
* Contributor(s):
*
* Changes
* -------
* $Log$
*/
package com.tuan.web.action;
import java.io.IOException;
import java.util.ArrayList;
i... |
/*
* AddFeedbackAction.java
*
* Created on 2010-6-25
*
* Copyright(C) 2010, by Ambow Develop & Research Branch.
*
* Original Author: liujia
* Contributor(s):
*
* Changes
* -------
* $Log$
*/
package com.tuan.web.action;
import java.io.IOException;
import java.io.PrintWriter;
import... |
package com.tuan.web.action;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRespon... |
/**
*
*/
package com.tuan.web.action.admin;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.hunthawk.reader.enhance.util.ToolDateUtil;
import com.tuan... |
/**
*
*/
package com.tuan.web.action.admin;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Enumeration;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.tuan.domain.SpliderItem;
im... |
/**
*
*/
package com.tuan.web.action.admin;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.tuan.domain.User;
import com.tuan.ser... |
/**
*
*/
package com.tuan.web.action.admin;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;... |
/**
*
*/
package com.tuan.web.action.admin;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;... |
/**
*
*/
package com.tuan.web.action;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.tuan.domain.Article;
import com.tuan.service.SpliderService;
im... |
/*
* AddFeedbackAction.java
*
* Created on 2010-6-25
*
* Copyright(C) 2010, by Ambow Develop & Research Branch.
*
* Original Author: liujia
* Contributor(s):
*
* Changes
* -------
* $Log$
*/
package com.tuan.web.action;
import java.io.IOException;
import java.io.PrintWriter;
import... |
/*
* GetArticleRandomAction.java
*
* Created on 2010-7-6
*
* Copyright(C) 2010, by Ambow Develop & Research Branch.
*
* Original Author: liujia
* Contributor(s):
*
* Changes
* -------
* $Log$
*/
package com.tuan.web.action;
import java.io.IOException;
import java.util.ArrayList;
im... |
package com.tuan.web.action;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRespon... |
package com.tuan.domain;
import java.util.Date;
import java.util.Map;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Tra... |
/*
* Feedback.java
*
* Created on 2010-6-24
*
* Copyright(C) 2010, by Ambow Develop & Research Branch.
*
* Original Author: liujia
* Contributor(s):
*
* Changes
* -------
* $Log$
*/
package com.tuan.domain;
import java.util.Date;
import javax.persistence.Column;
import javax.pers... |
/**
*
*/
package com.tuan.domain;
import java.util.Map;
import java.util.TreeMap;
import com.tuan.util.PropertiesReaderUtil;
/**
* @author sunquanzhi
*
*/
public class Constants {
public static Map<String, Integer> CITY_ID = new TreeMap<String, Integer>();
static {
String citystr = Prop... |
/**
*
*/
package com.tuan.domain;
import java.util.Map;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
... |
import java.lang.reflect.Field;
import fi.foyt.foursquare.api.entities.CompactVenue;
public class IndoorVenues extends CompactVenue {
public void setName(String meetingRoom) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {
Field name = CompactVenue.class.getField(... |
/*
* Copyright (c) 2010 Google Inc.
*
* 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 ... |
/*
* Copyright (c) 2010 Google Inc.
*
* 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 ... |
import org.junit.Before;
import org.junit.Test;
import fi.foyt.foursquare.api.FoursquareApi;
import fi.foyt.foursquare.api.FoursquareApiException;
import fi.foyt.foursquare.api.Result;
import fi.foyt.foursquare.api.entities.Checkin;
import fi.foyt.foursquare.api.entities.CompactVenue;
import fi.foyt.foursquare.api.ent... |
public class JiraClient {
}
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.net.URLConnection;
import java.util.HashMap;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.meth... |
package org.cms.annotation;
import javax.inject.Qualifier;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Created by elnoa on 21/10/14.
*/
@Qualifier
@Retention(RUNTIME)
... |
package org.cms.annotation;
import javax.inject.Qualifier;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Created by elnoa on 21/10/14.
*/
@Qualifier
@Retention(RUNTIME)
... |
package org.cms.annotation;
import javax.inject.Qualifier;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.ElementType.METHOD;
import static java.lan... |
package org.cms;
import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
import org.cms.annotation.GooglePlus;
import org.cms.call.GetNewTokenCall;
import org.cms.call.GetUserInfoCall;
import org.cms.raw.calendar.EventRaw;
import org.json.JSONE... |
package org.cms;
import com.google.common.collect.ImmutableList;
import net.oauth.OAuth;
import net.oauth.OAuthAccessor;
import net.oauth.OAuthConsumer;
import net.oauth.OAuthMessage;
import net.oauth.OAuthServiceProvider;
import net.oauth.client.OAuthClient;
import net.oauth.client.httpclient4.HttpClient4;
import net... |
package org.cms;
import com.atlassian.jira.rest.client.api.domain.Issue;
import org.cms.entities.JiraIssue;
import org.cms.entities.JiraUser;
import org.joda.time.DateTime;
import java.sql.Timestamp;
/**
* Created by elnon on 07.03.15.
*/
public class IssueMapper {
public static JiraIssue map(Issue issue) {
... |
package org.cms;
import java.util.List;
/**
* Created by elnoa on 21/10/14.
*/
public interface IUserProfileService<RESULT> {
public List<RESULT> getUserProfile();
}
|
package org.cms.raw;
/**
* Created by elnoa on 22/10/14.
*/
public class IconRaw {
private String prefix;
private String suffix;
public String getPrefix() {
return prefix;
}
public void setPrefix(String prefix) {
this.prefix = prefix;
}
public String getSuffix() {
... |
package org.cms.raw.calendar;
/**
* Created by elnoa on 23/10/14.
*/
public class EventRaw {
private String id;
private String created;
private String updated;
private TimeRaw start;
private TimeRaw end;
private String location;
private String status;
private String summary;
priv... |
package org.cms.raw.calendar;
/**
* Created by elnoa on 23/10/14.
*/
public class OrganizerRaw {
private String email;
private String displayName;
private boolean self;
}
|
package org.cms.raw.calendar;
/**
* Created by elnoa on 23/10/14.
*/
public class TimeRaw {
private String dateTime;
private String timeZone;
public String getDateTime() {
return dateTime;
}
public void setDateTime(String dateTime) {
this.dateTime = dateTime;
}
public ... |
package org.cms.raw.calendar;
/**
* Created by elnoa on 23/10/14.
*/
public class AttendeeRaw {
private String email;
private String responseStatus;
private boolean organizer;
private String displayName;
private boolean optional;
private Integer additionalGuests;
private String comment;
... |
package org.cms.raw;
/**
* Created by elnoa on 22/10/14.
*/
public class PostsRaw {
private int count;
private int textCount;
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public int getTextCount() {
return text... |
package org.cms.raw;
/**
* Created by elnoa on 22/10/14.
*/
public class CategoriesRaw {
private String id;
private String name;
private String pluralName;
private String shortName;
private IconRaw icon;
private boolean primary;
public String getId() {
return id;
}
publ... |
package org.cms.raw;
/**
* Created by elnoa on 22/10/14.
*/
public class StatsRaw {
private int checkinsCount;
private int usersCount;
private int tipCount;
public int getCheckinsCount() {
return checkinsCount;
}
public void setCheckinsCount(int checkinsCount) {
this.checki... |
package org.cms.raw;
/**
* Created by elnoa on 22/10/14.
*/
public class CheckInRaw {
private String id;
private Long createdAt;
private String type;
private String shout;
private String timeZoneOffset;
private VenueRaw venue;
private LikesRaw likes;
private boolean like;
// priva... |
package org.cms.raw.task;
/**
* Created by elnon on 28.02.15.
*/
public class IssueRaw {
private ProjectRaw projectRaw;
}
|
package org.cms.raw.task;
import java.net.URI;
/**
* Created by elnon on 28.02.15.
*/
public class ProjectRaw {
private final URI self;
private final String key;
private final String name;
public ProjectRaw(URI self, String key, String name) {
this.self = self;
this.key = key;
... |
package org.cms.raw;
/**
* Created by elnoa on 22/10/14.
*/
public class LocationRaw {
private String address;
private String crossStreet;
private Double lat;
private Double lng;
private String postalCode;
private String cc;
private String city;
private String state;
private Strin... |
package org.cms.raw;
/**
* Created by elnoa on 22/10/14.
*/
public class CommentsRaw {
private int count;
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
}
|
package org.cms.raw;
/**
* Created by elnoa on 22/10/14.
*/
public class LikesRaw {
private int count;
private String[] groups;
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public String[] getGroups() {
return g... |
package org.cms.raw;
/**
* Created by elnoa on 22/10/14.
*/
public class VenueRaw {
private String id;
private String name;
private ContactRaw contact;
private LocationRaw location;
private CategoriesRaw[] categories;
private boolean verified;
private StatsRaw stats;
private boolean ... |
package org.cms.raw;
/**
* Created by elnoa on 22/10/14.
*/
public class ContactRaw {
private String phone;
private String formattedPhone;
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getFormattedPh... |
package org.cms.raw;
/**
* Created by elnoa on 22/10/14.
*/
public class SourceRaw {
private String name;
private String url;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getUrl() {
return url;
... |
package org.cms;
import org.cms.annotation.FourSquare;
import org.cms.dao.IDao;
import org.cms.entities.CheckIn;
import javax.annotation.Resource;
import javax.ejb.EJB;
import javax.ejb.Schedule;
import javax.ejb.Singleton;
import javax.ejb.TimerService;
import javax.inject.Inject;
import java.util.Date;
... |
package org.cms;
import org.cms.entities.*;
import org.cms.raw.*;
import java.util.ArrayList;
import java.util.List;
/**
* Created by elnoa on 29/10/14.
*/
public class CheckinMapper {
public static CheckIn map(CheckInRaw fsCheckIn) {
CheckIn ci = new CheckIn();
ci.setId(fsCheckIn.getId());
... |
package org.cms;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.HttpClients;
import org.cms.annotation.FourSquare;
import org.cms.call.GetCheckinsCall;
import org.cms.dao.IDao;
import org.cms.entities.CheckIn;
import org.cms... |
package org.cms;
import java.util.List;
/**
* Created by elnoa on 21/10/14.
*/
public interface ICalendarService<RESULT> {
public List<RESULT> getUserCalendar();
}
|
package org.cms.call;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
/**
* Created by elnoa on 28/10/14.
*/
public class GetCalendarListCall... |
package org.cms.call;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
/**
* Created by elnoa on 28/10/14.
*/
public class GetUserInfoCall ext... |
package org.cms.call;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONException;
import org.json.JSONObject;
... |
package org.cms.call;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
/**
* Created by elnoa on 28/10/14.
*/
public class GetEventsCall exten... |
package org.cms.call;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
/**
* Created by elnoa on 28/10/14.
*/
public class GetCheckinsCall ext... |
package org.cms.call;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpRequestBase;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* Created by elnoa on 28/10/14.
*/
public abstract class Abstr... |
package org.cms;
import java.net.URISyntaxException;
import java.util.List;
/**
* Created by elnoa on 21/10/14.
*/
public interface ITaskService<RESULT> {
public List<RESULT> getUserTasks() throws Exception;
}
|
package org.cms;
import java.io.*;
import java.nio.file.Path;
import java.util.Properties;
/**
* Created by elnoa on 25/10/14.
*/
public class PropertiesHandler {
private Properties properties;
private String fileName;
// private String jbossHome = System.getProperty("JBOSS_HOME");
private String jb... |
package org.cms;
import org.cms.annotation.GoogleCalendar;
import org.cms.dao.IDao;
import org.cms.entities.Event;
import javax.annotation.Resource;
import javax.ejb.*;
import javax.inject.Inject;
import java.util.Date;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.logging.... |
package org.cms;
import com.atlassian.jira.rest.client.api.domain.Issue;
import com.atlassian.jira.rest.client.internal.json.IssueJsonParser;
import org.cms.dao.IDao;
import org.cms.entities.Event;
import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONObject;
import javax.ejb.EJB;
import... |
package org.cms;
import java.util.List;
/**
* Created by elnoa on 21/10/14.
*/
public interface ILocationService<RESULT> {
public List<RESULT> getUserPlaces();
}
|
package org.cms;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
import org.cms.annotation.GoogleCalendar;
import org.cms.call.GetCalendarListCall;
import org.cms.call.Get... |
package org.cms;
import org.cms.entities.Attendee;
import org.cms.entities.AttendeeId;
import org.cms.entities.Event;
import org.cms.raw.calendar.AttendeeRaw;
import org.cms.raw.calendar.EventRaw;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList... |
package org.cms.dao;
import javax.ejb.Local;
import java.util.List;
/**
* Created by elnoa on 29/10/14.
*/
@Local
public interface IDao<E,K> {
public <E> void persist(E entity);
public <E> void remove(E entity);
public <E> void merge(E entity);
public <E> void mergeList(List<E> entity);
public ... |
package org.cms.dao;
import org.cms.entities.Event;
import javax.ejb.Stateless;
import javax.persistence.Query;
import java.util.List;
import java.util.logging.Logger;
/**
* Created by elnoa on 19/10/14.
*/
@Stateless(name = "EventDao")
public class EventDao extends AbstractDao<Event,String> implements IDao<Event,... |
package org.cms.dao;
import org.cms.entities.CheckIn;
import javax.ejb.Stateless;
import javax.persistence.NoResultException;
import java.util.List;
import java.util.logging.Logger;
/**
* Created by elnoa on 19/10/14.
*/
@Stateless(name = "CheckInDao")
public class CheckInDao extends AbstractDao<CheckIn,String> im... |
package org.cms.dao;
import org.cms.entities.CheckIn;
import org.cms.entities.JiraIssue;
import javax.ejb.Stateless;
import javax.persistence.NoResultException;
import java.util.List;
import java.util.logging.Logger;
/**
* Created by elnoa on 19/10/14.
*/
@Stateless(name = "TaskDao")
public class TaskDao extends A... |
package org.cms.dao;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.List;
import java.util.logging.Logger;
/**
* Created by elnoa on 29/10/14.
*/
public abstract class AbstractDao<E,K> i... |
package org.cms.entities;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
/**
* Created by elnon on 07.03.15.
*/
@Entity
public class JiraIssue {
@Id
@Column(insertable=true, updatable=tru... |
package org.cms.entities;
import javax.persistence.Entity;
/**
* Created by elnon on 07.03.15.
*/
@Entity
public class JiraUser {
private String name;
private String displayName;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
... |
package org.cms.entities;
import javax.persistence.*;
import java.util.List;
/**
* Created by elnoa on 22/10/14.
*/
@Entity
public class Attendee {
@EmbeddedId AttendeeId id;
@ManyToMany(mappedBy = "attendee")
private List<Event> events;
/**
* The attendee's response status. Possible valu... |
package org.cms.entities;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
/**
* Created by elnoa on 22/10/14.
*/
@Entity
public class Event implements Serializable {
@Id
@Column(insertable=true, updatable=true, unique=true, nullable=false)
pri... |
package org.cms.entities;
import javax.persistence.*;
/**
* Created by elnoa on 18/10/14.
*/
@Entity
@NamedQueries(value = {
@NamedQuery(name = "getAllCheckIn", query = "select c from CheckIn c"),
@NamedQuery(name = "getCheckInByID", query = "select c from CheckIn c where c.id=:id")
})
public class ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.