Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery.common.java
/
mcz-core
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cc3fa79b
authored
Jun 28, 2016
by
amir
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
version 1.0.1 fix missing jars
parent
64e320a2
Show whitespace changes
Inline
Side-by-side
Showing
39 changed files
with
47 additions
and
43 deletions
README.md
build.gradle
src/main/java/mcz/core/beans/DaoImplBase.java
src/main/java/mcz/core/beans/DaoLogWriter.java
src/main/java/mcz/core/beans/Subscriber.java
src/main/java/mcz/core/beans/UserProfile.java
src/main/java/mcz/core/beans/credentials/Credentials.java
src/main/java/mcz/core/beans/tv/StaticChannel.java
src/main/java/mcz/core/beans/tv/VideoProfile.java
src/main/java/mcz/core/dsclient/BeanConvertor.java
src/main/java/mcz/core/dsclient/DaoCacheListener.java
src/main/java/mcz/core/dsclient/DaoDsImpl.java
src/main/java/mcz/core/dsclient/DefaultMessageDelegate.java
src/main/java/mcz/core/dsclient/activity/Activities_Service.java
src/main/java/mcz/core/dsclient/buddy/Buddies_Service.java
src/main/java/mcz/core/dsclient/chatattendee/ChatAttendees_Service.java
src/main/java/mcz/core/dsclient/deviceInstance/DeviceInstances_Service.java
src/main/java/mcz/core/dsclient/profile/Profiles_Service.java
src/main/java/mcz/core/dsclient/rest/RestClient.java
src/main/java/mcz/core/dsclient/subscriber/Subscribers_Service.java
src/main/java/mcz/core/tv/data/TvData.java
src/main/java/mcz/core/util/CommonHandler.java
src/main/java/mcz/core/util/Image.java
src/main/java/mcz/core/util/JSONUtil.java
src/main/java/mcz/core/util/MultiThreadQueueHander.java
src/main/java/mcz/core/util/MultiThreadQueueManager.java
src/main/java/mcz/core/util/MultimediaDataRepository.java
src/main/java/mcz/core/util/Skin.java
src/main/java/mcz/core/util/image/ImageCompression.java
src/main/java/mcz/core/util/image/ImageThumbnail.java
src/main/java/mcz/core/util/image/VideoUtils.java
src/main/java/mcz/core/util/pushNotification/ApplePushUtil.java
src/main/java/mcz/core/util/pushNotification/PushHandler.java
src/main/java/mcz/core/util/pushNotification/PushUtil.java
src/main/java/mcz/core/util/pushNotification/Sender.java
src/main/java/mcz/core/util/security/SecurityUtil.java
src/main/java/mcz/core/util/workers/PostActivityWorker.java
src/main/java/mcz/core/web/httpclient/DefaultHttpClientImpl.java
src/test/java/mcz/core/TestJson.java
README.md
View file @
cc3fa79b
## mcz core
1.
0.1:
-
link with 'com.ipgallery.common:utils:1.1.0' instead of 1.0.0 since google-gdata repository no longer exists
build.gradle
View file @
cc3fa79b
group
'com.ipgallery.common'
version
'1.0.
0
'
version
'1.0.
1
'
apply
plugin:
'java'
apply
plugin:
'maven-publish'
...
...
@@ -16,7 +16,7 @@ dependencies {
compile
'com.fasterxml.jackson.core:jackson-databind:2.2.3'
compile
'com.github.stephenc.eaio-uuid:uuid:3.4.0'
compile
'redis.clients:jedis:2.4.2'
compile
'com.ipgallery.common:utils:1.
0
.0'
compile
'com.ipgallery.common:utils:1.
1
.0'
compile
group:
'org.springframework'
,
name:
'spring-web'
,
version:
'3.2.6.RELEASE'
compile
group:
'com.google.code.gson'
,
name:
'gson'
,
version:
'2.2.2'
compile
'redis.clients:jedis:2.4.2'
...
...
src/main/java/mcz/core/beans/DaoImplBase.java
View file @
cc3fa79b
...
...
@@ -24,7 +24,7 @@ import org.apache.commons.net.ftp.FTPClient;
import
redis.clients.jedis.Jedis
;
import
redis.clients.jedis.JedisPool
;
import
redis.clients.jedis.JedisPoolConfig
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
//import mcz.conn.SocialSipConnection;
import
mcz.core.defs.Constants
;
import
mcz.core.defs.Enums.EnumNetworkConnection
;
...
...
src/main/java/mcz/core/beans/DaoLogWriter.java
View file @
cc3fa79b
package
mcz
.
core
.
beans
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
public
class
DaoLogWriter
implements
DaoListener
{
...
...
src/main/java/mcz/core/beans/Subscriber.java
View file @
cc3fa79b
...
...
@@ -16,6 +16,7 @@ import java.util.SortedSet;
import
java.util.TreeSet
;
//import Util.Log4jHandler;
import
common.Log4jHandler
;
import
mcz.core.beans.credentials.Credentials
;
import
mcz.core.beans.devices.Device
;
import
mcz.core.beans.groups.GroupFactory
;
...
...
@@ -29,7 +30,7 @@ import mcz.core.beans.tv.Content;
import
mcz.core.beans.tv.VideoProfile
;
import
mcz.core.defs.Enums.EnumNetworkConnectorState
;
import
mcz.core.defs.Enums.EnumNetworkConnection
;
import
utils.
common.Log4jHandler
;
//import
common.Log4jHandler;
/**
* Data object describing a single subscriber, with all its details, contacts,
...
...
src/main/java/mcz/core/beans/UserProfile.java
View file @
cc3fa79b
...
...
@@ -22,7 +22,7 @@ import mcz.core.defs.Constants;
import
mcz.core.defs.Enums.EnumDeviceState
;
import
mcz.core.defs.Enums.EnumNetworkConnection
;
import
mcz.core.util.SocialNetworkServersMap
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
/**
* Data object that describes a contact's user profile. A contact has a user profile for each communication option; for example
...
...
src/main/java/mcz/core/beans/credentials/Credentials.java
View file @
cc3fa79b
...
...
@@ -7,7 +7,7 @@ import java.util.HashSet;
import
java.util.Map
;
import
java.util.Set
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
mcz.core.beans.Dao
;
import
mcz.core.beans.Subscriber
;
import
mcz.core.defs.Enums.EnumNetworkConnection
;
...
...
src/main/java/mcz/core/beans/tv/StaticChannel.java
View file @
cc3fa79b
...
...
@@ -8,7 +8,7 @@ import java.lang.reflect.Type;
import
java.util.HashSet
;
import
java.util.Set
;
import
mcz.core.beans.MczBean
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
com.google.gson.Gson
;
import
com.google.gson.reflect.TypeToken
;
...
...
src/main/java/mcz/core/beans/tv/VideoProfile.java
View file @
cc3fa79b
...
...
@@ -6,7 +6,7 @@ package mcz.core.beans.tv;
import
java.io.File
;
import
java.io.Serializable
;
import
java.util.List
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
mcz.core.beans.MczBean
;
import
mcz.core.tv.data.TvData
;
import
mcz.core.util.SystemUtil
;
...
...
src/main/java/mcz/core/dsclient/BeanConvertor.java
View file @
cc3fa79b
...
...
@@ -60,7 +60,7 @@ import mcz.core.dsclient.subscriber.Subscriber;
import
mcz.core.dsclient.subscriber.UserProfile
;
import
mcz.core.dsclient.profile.ClientProfile
;
import
mcz.core.util.security.SecurityUtil
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
public
class
BeanConvertor
{
...
...
src/main/java/mcz/core/dsclient/DaoCacheListener.java
View file @
cc3fa79b
...
...
@@ -2,7 +2,7 @@ package mcz.core.dsclient;
import
redis.clients.jedis.Jedis
;
import
redis.clients.jedis.JedisPubSub
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
public
class
DaoCacheListener
{
...
...
src/main/java/mcz/core/dsclient/DaoDsImpl.java
View file @
cc3fa79b
...
...
@@ -83,10 +83,10 @@ import mcz.core.util.Common;
import
mcz.core.util.CommonHandler
;
import
mcz.core.util.JSONUtil
;
import
mcz.core.util.MultiThreadQueueManager
;
import
utils.
common.Log4jHandler
;
import
utils.
http.StringResponse
;
import
utils.
http.simpleRestClient.SimpleRestClient
;
import
utils.
http.simpleRestClient.SimpleRestResponse
;
import
common.Log4jHandler
;
import
http.StringResponse
;
import
http.simpleRestClient.SimpleRestClient
;
import
http.simpleRestClient.SimpleRestResponse
;
public
class
DaoDsImpl
extends
DaoImplBase
{
...
...
src/main/java/mcz/core/dsclient/DefaultMessageDelegate.java
View file @
cc3fa79b
...
...
@@ -13,7 +13,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
import
com.fasterxml.jackson.databind.JsonMappingException
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.SerializationFeature
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
//import java.io.UnsupportedEncodingException;
//import org.apache.commons.lang.CharEncoding;
//import org.springframework.data.redis.connection.Message;
...
...
src/main/java/mcz/core/dsclient/activity/Activities_Service.java
View file @
cc3fa79b
package
mcz
.
core
.
dsclient
.
activity
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
java.net.MalformedURLException
;
import
java.net.URL
;
...
...
src/main/java/mcz/core/dsclient/buddy/Buddies_Service.java
View file @
cc3fa79b
package
mcz
.
core
.
dsclient
.
buddy
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
java.net.MalformedURLException
;
import
java.net.URL
;
...
...
src/main/java/mcz/core/dsclient/chatattendee/ChatAttendees_Service.java
View file @
cc3fa79b
package
mcz
.
core
.
dsclient
.
chatattendee
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
java.net.MalformedURLException
;
import
java.net.URL
;
...
...
src/main/java/mcz/core/dsclient/deviceInstance/DeviceInstances_Service.java
View file @
cc3fa79b
package
mcz
.
core
.
dsclient
.
deviceInstance
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
java.net.MalformedURLException
;
import
java.net.URL
;
...
...
src/main/java/mcz/core/dsclient/profile/Profiles_Service.java
View file @
cc3fa79b
package
mcz
.
core
.
dsclient
.
profile
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
java.net.MalformedURLException
;
import
java.net.URL
;
...
...
src/main/java/mcz/core/dsclient/rest/RestClient.java
View file @
cc3fa79b
package
mcz
.
core
.
dsclient
.
rest
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
mcz.core.web.httpclient.HttpClientFactory
;
import
mcz.core.web.httpclient.HttpClientInterface
;
...
...
src/main/java/mcz/core/dsclient/subscriber/Subscribers_Service.java
View file @
cc3fa79b
package
mcz
.
core
.
dsclient
.
subscriber
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
java.net.MalformedURLException
;
import
java.net.URL
;
...
...
src/main/java/mcz/core/tv/data/TvData.java
View file @
cc3fa79b
...
...
@@ -25,7 +25,7 @@ import mcz.core.util.ScreenTarget;
import
com.google.gson.Gson
;
import
com.google.gson.GsonBuilder
;
import
com.google.gson.reflect.TypeToken
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
/**
* @author user
...
...
src/main/java/mcz/core/util/CommonHandler.java
View file @
cc3fa79b
...
...
@@ -5,7 +5,7 @@ import java.util.List;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.node.ObjectNode
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
mcz.core.beans.Contact
;
import
mcz.core.beans.Dao
;
import
mcz.core.beans.Subscriber
;
...
...
src/main/java/mcz/core/util/Image.java
View file @
cc3fa79b
...
...
@@ -14,7 +14,7 @@ import javax.imageio.ImageIO;
import
javax.imageio.ImageReader
;
import
javax.imageio.stream.ImageInputStream
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
/**
*
...
...
src/main/java/mcz/core/util/JSONUtil.java
View file @
cc3fa79b
package
mcz
.
core
.
util
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.databind.JsonNode
;
...
...
src/main/java/mcz/core/util/MultiThreadQueueHander.java
View file @
cc3fa79b
package
mcz
.
core
.
util
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
src/main/java/mcz/core/util/MultiThreadQueueManager.java
View file @
cc3fa79b
...
...
@@ -7,7 +7,7 @@ import java.util.ArrayDeque;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.List
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
/**
* this manager holds thread that handle async jobs
...
...
src/main/java/mcz/core/util/MultimediaDataRepository.java
View file @
cc3fa79b
package
mcz
.
core
.
util
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
src/main/java/mcz/core/util/Skin.java
View file @
cc3fa79b
package
mcz
.
core
.
util
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
/**
* an instance of this interface contains all the data needed in order to draw a specific string.
...
...
src/main/java/mcz/core/util/image/ImageCompression.java
View file @
cc3fa79b
package
mcz
.
core
.
util
.
image
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
java.io.BufferedOutputStream
;
import
java.io.ByteArrayOutputStream
;
...
...
src/main/java/mcz/core/util/image/ImageThumbnail.java
View file @
cc3fa79b
...
...
@@ -4,7 +4,7 @@ import java.io.BufferedOutputStream;
import
java.io.ByteArrayOutputStream
;
import
java.io.File
;
import
java.io.IOException
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
public
class
ImageThumbnail
{
...
...
src/main/java/mcz/core/util/image/VideoUtils.java
View file @
cc3fa79b
...
...
@@ -2,7 +2,7 @@ package mcz.core.util.image;
import
java.io.File
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
mcz.core.defs.Constants
;
public
class
VideoUtils
{
...
...
src/main/java/mcz/core/util/pushNotification/ApplePushUtil.java
View file @
cc3fa79b
...
...
@@ -7,7 +7,7 @@ import java.util.List;
import
javapns.org.json.JSONException
;
import
mcz.core.util.pushNotification.PushCustomerList.Provider
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
javapns.Push
;
import
javapns.communication.exceptions.CommunicationException
;
import
javapns.communication.exceptions.KeystoreException
;
...
...
src/main/java/mcz/core/util/pushNotification/PushHandler.java
View file @
cc3fa79b
...
...
@@ -17,8 +17,8 @@ import com.google.gson.Gson;
import
mcz.core.beans.Dao
;
import
mcz.core.beans.RestResponse
;
import
mcz.core.defs.Enums.EnumMobilePhoneOS
;
import
utils.
http.simpleRestClient.SimpleRestClient
;
import
utils.
http.simpleRestClient.SimpleRestResponse
;
import
http.simpleRestClient.SimpleRestClient
;
import
http.simpleRestClient.SimpleRestResponse
;
public
class
PushHandler
{
...
...
src/main/java/mcz/core/util/pushNotification/PushUtil.java
View file @
cc3fa79b
...
...
@@ -2,7 +2,7 @@ package mcz.core.util.pushNotification;
import
java.util.List
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
mcz.core.beans.deviceinstances.DeviceInstance
;
import
mcz.core.defs.Enums.EnumNetworkConnection
;
import
mcz.core.defs.Enums.EnumMobilePhoneOS
;
...
...
src/main/java/mcz/core/util/pushNotification/Sender.java
View file @
cc3fa79b
...
...
@@ -50,7 +50,7 @@ import org.json.simple.JSONValue;
import
org.json.simple.parser.JSONParser
;
import
org.json.simple.parser.ParseException
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
java.io.BufferedReader
;
import
java.io.Closeable
;
...
...
src/main/java/mcz/core/util/security/SecurityUtil.java
View file @
cc3fa79b
...
...
@@ -6,7 +6,7 @@
package
mcz
.
core
.
util
.
security
;
import
java.security.MessageDigest
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
com.google.gdata.util.common.util.Base64
;
...
...
src/main/java/mcz/core/util/workers/PostActivityWorker.java
View file @
cc3fa79b
package
mcz
.
core
.
util
.
workers
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
import
mcz.core.beans.Dao
;
import
mcz.core.beans.RestResponse
;
import
mcz.core.domain.Activity
;
...
...
src/main/java/mcz/core/web/httpclient/DefaultHttpClientImpl.java
View file @
cc3fa79b
...
...
@@ -30,7 +30,7 @@ import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
import
org.apache.http.params.HttpParams
;
import
org.apache.http.util.EntityUtils
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
public
class
DefaultHttpClientImpl
implements
HttpClientInterface
{
...
...
src/test/java/mcz/core/TestJson.java
View file @
cc3fa79b
...
...
@@ -22,7 +22,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
import
com.fasterxml.jackson.databind.JsonNode
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.SerializationFeature
;
import
utils.
common.Log4jHandler
;
import
common.Log4jHandler
;
public
class
TestJson
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment