Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected static String |
FULLNAME_IN_PROFILE_KEY |
protected GcoreEndpointReaderSNL |
gcoreEndpointReaderSNL |
protected com.fasterxml.jackson.databind.JsonNode |
gCubeUserProfile |
static String |
ITEM_URL |
protected String |
itemID |
protected String |
itemTitle |
protected String |
itemURL |
protected static String |
NOTIFICATION_MESSAGE |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected static String |
RESULT_KEY |
protected static String |
SOCIAL_POST_ENABLE_NOTIFICATION_KEY |
protected static String |
SOCIAL_POST_RESPONSE_MESSAGE_KEY |
protected static String |
SOCIAL_POST_RESPONSE_SUCCESS_KEY |
protected static String |
SOCIAL_POST_TEXT_KEY |
protected static String |
SOCIAL_SERVICE_GET_USER_INFO_PATH |
protected static String |
SOCIAL_SERVICE_WRITE_APPLICATION_POST_PATH |
protected List<String> |
tags |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
SocialService() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFullName() |
com.fasterxml.jackson.databind.JsonNode |
getGCubeUserProfile()
Execute the GET http request at this url, and return the result as string
|
protected com.fasterxml.jackson.databind.JsonNode |
getGCubeUserProfile(String username) |
String |
getItemID() |
String |
getItemTitle() |
String |
getItemURL() |
protected String |
getResultAsString(HttpURLConnection httpURLConnection) |
protected StringBuilder |
getStringBuilder(InputStream inputStream) |
List<String> |
getTags() |
void |
run() |
void |
sendSocialPost(boolean notifyUsers) |
void |
setItemID(String itemID) |
void |
setItemTitle(String itemTitle) |
void |
setItemURL(String itemURL) |
void |
setTags(com.fasterxml.jackson.databind.node.ArrayNode tags) |
void |
setTags(List<String> tags) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic static final String ITEM_URL
protected static final String SOCIAL_SERVICE_WRITE_APPLICATION_POST_PATH
protected static final String SOCIAL_SERVICE_GET_USER_INFO_PATH
protected static final String NOTIFICATION_MESSAGE
protected static final String RESULT_KEY
protected static final String FULLNAME_IN_PROFILE_KEY
protected static final String SOCIAL_POST_TEXT_KEY
protected static final String SOCIAL_POST_ENABLE_NOTIFICATION_KEY
protected static final String SOCIAL_POST_RESPONSE_SUCCESS_KEY
protected static final String SOCIAL_POST_RESPONSE_MESSAGE_KEY
protected final GcoreEndpointReaderSNL gcoreEndpointReaderSNL
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected String itemID
protected String itemURL
protected String itemTitle
protected com.fasterxml.jackson.databind.JsonNode gCubeUserProfile
public String getItemID()
public void setItemID(String itemID)
public String getItemURL()
public void setItemURL(String itemURL)
public String getItemTitle()
public void setItemTitle(String itemTitle)
public void setTags(com.fasterxml.jackson.databind.node.ArrayNode tags)
public com.fasterxml.jackson.databind.JsonNode getGCubeUserProfile()
throws Exception
Exceptionprotected StringBuilder getStringBuilder(InputStream inputStream) throws IOException
IOExceptionprotected String getResultAsString(HttpURLConnection httpURLConnection) throws IOException
IOExceptionprotected com.fasterxml.jackson.databind.JsonNode getGCubeUserProfile(String username) throws Exception
Exceptionpublic void sendSocialPost(boolean notifyUsers)
Copyright © 2019. All Rights Reserved.