Correções na contribuição de MEDEIROS
Esse commit está contido em:
@@ -13,7 +13,7 @@ $(document).ready(function(){
|
|||||||
function checkStatus(){
|
function checkStatus(){
|
||||||
$('ul.all-participants li').each(function(index,element){
|
$('ul.all-participants li').each(function(index,element){
|
||||||
if( $(this).hasClass('participant-name') )
|
if( $(this).hasClass('participant-name') )
|
||||||
$.get('/amadeuslms/user.do?method=userStatus&accessInfoId='+ element.id, function(data){
|
$.get('user.do?method=userStatus&accessInfoId='+ element.id, function(data){
|
||||||
if(data == 1){
|
if(data == 1){
|
||||||
$(element).removeClass('offlineUser').addClass('onlineUser');
|
$(element).removeClass('offlineUser').addClass('onlineUser');
|
||||||
} else {
|
} else {
|
||||||
@@ -243,7 +243,7 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
//Funcao que exibe o dialog de resposta
|
//Funcao que exibe o dialog de resposta
|
||||||
function showReplyDialog(title,href){
|
function showReplyDialog(title,href){
|
||||||
$('#form-reply-to').load('/amadeuslms/jsp/messenger/form-reply.jsp', function(){
|
$('#form-reply-to').load('jsp/messenger/form-reply.jsp', function(){
|
||||||
if($('#reply-assunto').length){
|
if($('#reply-assunto').length){
|
||||||
$('#reply-assunto').val(title);
|
$('#reply-assunto').val(title);
|
||||||
$('#reply-content').focus();
|
$('#reply-content').focus();
|
||||||
|
|||||||
@@ -62,9 +62,9 @@ $(document).ready(function(){
|
|||||||
$('#hash-alert').html('');
|
$('#hash-alert').html('');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var ctx = "${pageContext.request.contextPath}";
|
||||||
// Controle do monitoramento do twitter
|
// Controle do monitoramento do twitter
|
||||||
var urlToCheck = 'http://localhost:8080/amadeuslms/social.do?method=showViewSocialNetworkMonitoring&courseId=18';
|
var urlToCheck = ctx + 'social.do?method=showViewSocialNetworkMonitoring&courseId=18';
|
||||||
if(window.location == urlToCheck){
|
if(window.location == urlToCheck){
|
||||||
$(window).bind('beforeunload', function(){
|
$(window).bind('beforeunload', function(){
|
||||||
if($('#monitoring-start').attr('disabled') == 'disabled'){
|
if($('#monitoring-start').attr('disabled') == 'disabled'){
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título
|
|||||||
</div>
|
</div>
|
||||||
<jsp:include page="/jsp/conf/logo.jsp" />
|
<jsp:include page="/jsp/conf/logo.jsp" />
|
||||||
<div id="pTitle" class="pTitle">
|
<div id="pTitle" class="pTitle">
|
||||||
<h2><bean:message key="viewCourse.heading"/></h2>
|
<h2>Mensagens</h2>
|
||||||
</div>
|
</div>
|
||||||
<div id="pBreadCrumbs" class="pBreadCrumbs">
|
<div id="pBreadCrumbs" class="pBreadCrumbs">
|
||||||
<ul id="breadcrumb">
|
<ul id="breadcrumb">
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título
|
|||||||
<div id="user-twitter">
|
<div id="user-twitter">
|
||||||
<c:if test="${ empty user.person.twitterLogin }">
|
<c:if test="${ empty user.person.twitterLogin }">
|
||||||
<p class="no-user-twitter">
|
<p class="no-user-twitter">
|
||||||
Adicione seu Twitter ao seu perfil <a href="/amadeuslms/user.do?method=showViewIntegrationSocialNetworks"><b>aqui</b></a>.
|
Adicione seu Twitter ao seu perfil <a href="user.do?method=showViewIntegrationSocialNetworks"><b>aqui</b></a>.
|
||||||
</p>
|
</p>
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${ ! empty user.person.twitterLogin }">
|
<c:if test="${ ! empty user.person.twitterLogin }">
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título
|
|||||||
</div>
|
</div>
|
||||||
<jsp:include page="/jsp/conf/logo.jsp" />
|
<jsp:include page="/jsp/conf/logo.jsp" />
|
||||||
<div id="pTitle" class="pTitle">
|
<div id="pTitle" class="pTitle">
|
||||||
<h2><bean:message key="viewCourse.heading"/></h2>
|
<h2>Monitorar Redes Sociais</h2>
|
||||||
</div>
|
</div>
|
||||||
<div id="pBreadCrumbs" class="pBreadCrumbs">
|
<div id="pBreadCrumbs" class="pBreadCrumbs">
|
||||||
<ul id="breadcrumb">
|
<ul id="breadcrumb">
|
||||||
@@ -60,7 +60,7 @@ Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título
|
|||||||
<div id="social-network-monitoring">
|
<div id="social-network-monitoring">
|
||||||
<h2>Social Network Monitoring</h2>
|
<h2>Social Network Monitoring</h2>
|
||||||
<div id="social-network-monitoring-content">
|
<div id="social-network-monitoring-content">
|
||||||
<img src="themes/default/img/twitter_icon.jpg" /><br />
|
<div class="social-icon"><img src="themes/default/imgs/twitter.png" /></div>
|
||||||
<label for="ipt-hashtag" id="lbl-hashtag" class="lbl-hashtag">Hashtag: </label><small id="hash-alert"></small><br />
|
<label for="ipt-hashtag" id="lbl-hashtag" class="lbl-hashtag">Hashtag: </label><small id="hash-alert"></small><br />
|
||||||
<input type="text" id="ipt-hashtag" name="ipt-hashtag" class="ipt-hashtag" /><br />
|
<input type="text" id="ipt-hashtag" name="ipt-hashtag" class="ipt-hashtag" /><br />
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título
|
|||||||
</div>
|
</div>
|
||||||
<jsp:include page="/jsp/conf/logo.jsp" />
|
<jsp:include page="/jsp/conf/logo.jsp" />
|
||||||
<div id="pTitle" class="pTitle">
|
<div id="pTitle" class="pTitle">
|
||||||
<h2><bean:message key="editPassword.heading"/></h2>
|
<h2>Integração com Redes Sociais</h2>
|
||||||
</div>
|
</div>
|
||||||
<div id="pBreadCrumbs" class="pBreadCrumbs">
|
<div id="pBreadCrumbs" class="pBreadCrumbs">
|
||||||
<ul id="breadcrumb">
|
<ul id="breadcrumb">
|
||||||
@@ -76,7 +76,7 @@ Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título
|
|||||||
<html:form action="/integrationSocialNetworks" focus="twitterLogin">
|
<html:form action="/integrationSocialNetworks" focus="twitterLogin">
|
||||||
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
|
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="formAttribute"><img src="themes/default/imgs/twitter.png" style="padding-right: 20px;" border="0" height="32px" width="32px" title="Social Accounts"/><bean:message key="integrationSocialNetworks.twitterLogin"/>:</td>
|
<td class="formAttribute"><img src="themes/default/imgs/twitter.png" style="padding-right: 25px;" border="0" height="32px" width="32px" title="Social Accounts"/><bean:message key="integrationSocialNetworks.twitterLogin"/>:</td>
|
||||||
<td>
|
<td>
|
||||||
<html:text name="socialProfiles" property="twitterLogin" style="width: 100%;" />
|
<html:text name="socialProfiles" property="twitterLogin" style="width: 100%;" />
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -34,6 +34,10 @@ div#seemessages{
|
|||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
div#seemessages h2{
|
div#seemessages h2{
|
||||||
margin: 9px 0;
|
margin: 9px 0;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
@@ -126,7 +130,7 @@ p.the-message-content a.message-delete-link{
|
|||||||
p.the-message-content a.message-reply-link,
|
p.the-message-content a.message-reply-link,
|
||||||
p.the-message-content a.message-delete-link,
|
p.the-message-content a.message-delete-link,
|
||||||
p.the-message-content a.reply-to-all-link{
|
p.the-message-content a.reply-to-all-link{
|
||||||
color: #00f;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
p.the-message-content a.reply-to-all-link{
|
p.the-message-content a.reply-to-all-link{
|
||||||
@@ -149,9 +153,9 @@ div.the-message .message-date, div.the-message .from-user{
|
|||||||
div#all-messages-unread,
|
div#all-messages-unread,
|
||||||
p.the-message-content
|
p.the-message-content
|
||||||
{
|
{
|
||||||
-webkit-border-radius: 5px;
|
/*-webkit-border-radius: 5px;
|
||||||
-moz-border-radius: 5px;
|
-moz-border-radius: 5px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
p.the-message-content{
|
p.the-message-content{
|
||||||
@@ -171,7 +175,7 @@ h3.the-message-title{
|
|||||||
}
|
}
|
||||||
|
|
||||||
h3.the-message-title a{
|
h3.the-message-title a{
|
||||||
color: #00f;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3.the-message-title a.lida, h3.the-message-title a.lida-true{
|
h3.the-message-title a.lida, h3.the-message-title a.lida-true{
|
||||||
@@ -184,7 +188,7 @@ h3.the-message-title:HOVER {
|
|||||||
|
|
||||||
.reply-assunto{
|
.reply-assunto{
|
||||||
width: 232px;
|
width: 232px;
|
||||||
margin-left: 11px;
|
margin-left: 16px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -201,10 +205,14 @@ h3.the-message-title:HOVER {
|
|||||||
}
|
}
|
||||||
|
|
||||||
a.link-see-all-messages{
|
a.link-see-all-messages{
|
||||||
color: #00f;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#div-link-see-all-messages{
|
div#div-link-see-all-messages{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
fieldset {
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
@@ -73,12 +73,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
div#social-network-monitoring{
|
div#social-network-monitoring{
|
||||||
border: 1px solid black;
|
border: none;
|
||||||
background: #edf5ea;
|
background: #edf5ea;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#social-network-monitoring h2{
|
div#social-network-monitoring h2{
|
||||||
border-bottom: 1px solid black;
|
border-bottom: none;
|
||||||
padding: 7px 0 7px 15px;
|
padding: 7px 0 7px 15px;
|
||||||
background: #b6d7a8;
|
background: #b6d7a8;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
@@ -105,8 +105,18 @@ div#social-network-monitoring-content .monitoring-start-disabled{
|
|||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
div##waiting {
|
div.social-icon {
|
||||||
align:center;
|
height: 80px;
|
||||||
|
float: left;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.social-icon img {
|
||||||
|
width: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#waiting {
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
p.no-user-twitter{
|
p.no-user-twitter{
|
||||||
@@ -116,5 +126,5 @@ p.no-user-twitter{
|
|||||||
}
|
}
|
||||||
|
|
||||||
p.no-user-twitter a{
|
p.no-user-twitter a{
|
||||||
color: #00f;
|
color: #000;
|
||||||
}
|
}
|
||||||
Arquivo binário não exibido.
|
Antes Largura: | Altura: | Tamanho: 13 KiB |
Arquivo binário não exibido.
|
Antes Largura: | Altura: | Tamanho: 19 KiB Depois Largura: | Altura: | Tamanho: 1.6 KiB |
Arquivo binário não exibido.
|
Antes Largura: | Altura: | Tamanho: 4.3 KiB Depois Largura: | Altura: | Tamanho: 3.5 KiB |
@@ -37,7 +37,7 @@ import br.ufpe.cin.amadeus.amadeus_web.util.SocialInteractions;
|
|||||||
import br.ufpe.cin.amadeus.amadeus_web.util.TweetInteractionType;
|
import br.ufpe.cin.amadeus.amadeus_web.util.TweetInteractionType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Classe responsável por centralizar as ações referentes ao monitoramento da
|
* Classe respons�vel por centralizar as a��es referentes ao monitoramento da
|
||||||
* ferramenta do twitter
|
* ferramenta do twitter
|
||||||
*
|
*
|
||||||
* @author Nailson Cunha
|
* @author Nailson Cunha
|
||||||
@@ -48,10 +48,10 @@ public class TwitterActions extends SystemActions {
|
|||||||
private final String FORWARD_SHOW_VIEW_SOCIAL_NETWORK_MONITORING = "fshowViewSocialNetworkMonitoring";
|
private final String FORWARD_SHOW_VIEW_SOCIAL_NETWORK_MONITORING = "fshowViewSocialNetworkMonitoring";
|
||||||
private final String FORWARD_SHOW_VIEW_SOCIAL_TEST_TOOLS = "fshowViewTestTools";
|
private final String FORWARD_SHOW_VIEW_SOCIAL_TEST_TOOLS = "fshowViewTestTools";
|
||||||
|
|
||||||
private final String CONSUMER_KEY = "lZJGjiuAdYjiRvuNqBp5kg";
|
private final String CONSUMER_KEY = "ERHBlUYrxgYCrWxAWWMq7COtv";
|
||||||
private final String CONSUMER_SECRET = "ygeVV2WVXjYMyL8HkH065WmVC985RtSufYUpSA";
|
private final String CONSUMER_SECRET = "XmbsO9aOXPaA0j7gcB9arCYMXsNbDZDjJthxuUgJiyQP8Yba5d";
|
||||||
private final String ACESS_TOKEN = "248676552-gaRX2FU7IGcqXxLoGZfFROQ9jTymfYWySoWtHhBG";
|
private final String ACESS_TOKEN = "37861885-wdk6sIq38Yy5VlJshAQgwbf2Q41mrOvEF8B1eGCBi";
|
||||||
private final String ACESS_TOKEN_SECRET = "7MxIfOc2lfn9NP2TaIQaIDl9A6kEqtc3J5myLgJfRY";
|
private final String ACESS_TOKEN_SECRET = "FJ38O1JA9GU32CxyhiBnSdtIZcUqqRx3WDuyfiD9jZGEC";
|
||||||
private final String ACESS_TOKEN_URL = "https://api.twitter.com/oauth/access_token";
|
private final String ACESS_TOKEN_URL = "https://api.twitter.com/oauth/access_token";
|
||||||
private final String ACESS_TOKEN_AUTHORIZATION = "https://api.twitter.com/oauth/authorize";
|
private final String ACESS_TOKEN_AUTHORIZATION = "https://api.twitter.com/oauth/authorize";
|
||||||
|
|
||||||
@@ -72,8 +72,8 @@ public class TwitterActions extends SystemActions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Action que retorna a visualização da página de Monitoramento de
|
* Action que retorna a visualiza��o da p�gina de Monitoramento de
|
||||||
* Interações Sociais do Twitter.
|
* Intera��es Sociais do Twitter.
|
||||||
*
|
*
|
||||||
* @param mapping
|
* @param mapping
|
||||||
* @param form
|
* @param form
|
||||||
@@ -143,7 +143,7 @@ public class TwitterActions extends SystemActions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Método que inicia o monitoramento do twitter
|
* M�todo que inicia o monitoramento do twitter
|
||||||
*
|
*
|
||||||
* @param mapping
|
* @param mapping
|
||||||
* @param form
|
* @param form
|
||||||
@@ -218,7 +218,7 @@ public class TwitterActions extends SystemActions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Método que para as threads que estão monitorando alguma hashtag no twitter.
|
* M�todo que para as threads que est�o monitorando alguma hashtag no twitter.
|
||||||
* @param mapping
|
* @param mapping
|
||||||
* @param form
|
* @param form
|
||||||
* @param request
|
* @param request
|
||||||
@@ -250,17 +250,17 @@ public class TwitterActions extends SystemActions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Método que salva os tweets como retweet
|
* M�todo que salva os tweets como retweet
|
||||||
* @param status
|
* @param status
|
||||||
*/
|
*/
|
||||||
private void saveAsRetweet(Status status) {
|
private void saveAsRetweet(Status status) {
|
||||||
JdbcDAO jd = new JdbcDAO();
|
JdbcDAO jd = new JdbcDAO();
|
||||||
|
|
||||||
// Se o dono do tweet não estiver cadastrado
|
// Se o dono do tweet n�o estiver cadastrado
|
||||||
if (!jd.userTwitterExists(status.getUser().getScreenName()))
|
if (!jd.userTwitterExists(status.getUser().getScreenName()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Se o usuario retweetado não estiver cadastrado
|
// Se o usuario retweetado n�o estiver cadastrado
|
||||||
int idUserRetweeted = jd.getUserIdByScreenName(status
|
int idUserRetweeted = jd.getUserIdByScreenName(status
|
||||||
.getRetweetedStatus().getUser().getScreenName());
|
.getRetweetedStatus().getUser().getScreenName());
|
||||||
if (idUserRetweeted == 0)
|
if (idUserRetweeted == 0)
|
||||||
@@ -278,7 +278,7 @@ public class TwitterActions extends SystemActions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Método que salva os tweets como reply
|
* M�todo que salva os tweets como reply
|
||||||
* @param status
|
* @param status
|
||||||
*/
|
*/
|
||||||
private void saveAsReply(Status status) {
|
private void saveAsReply(Status status) {
|
||||||
@@ -316,7 +316,7 @@ public class TwitterActions extends SystemActions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Método que salva os tweets como mention
|
* M�todo que salva os tweets como mention
|
||||||
* @param status
|
* @param status
|
||||||
*/
|
*/
|
||||||
private void saveAsMention(Status status) {
|
private void saveAsMention(Status status) {
|
||||||
@@ -346,9 +346,9 @@ public class TwitterActions extends SystemActions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//Métodos de testes das ferramentas de Interações Sociais
|
//M�todos de testes das ferramentas de Intera��es Sociais
|
||||||
/**
|
/**
|
||||||
* Redireciona para a página de teste das ferramentas.
|
* Redireciona para a p�gina de teste das ferramentas.
|
||||||
*/
|
*/
|
||||||
public ActionForward showViewTestTools(ActionMapping mapping,
|
public ActionForward showViewTestTools(ActionMapping mapping,
|
||||||
ActionForm form, HttpServletRequest request,
|
ActionForm form, HttpServletRequest request,
|
||||||
@@ -365,7 +365,7 @@ public class TwitterActions extends SystemActions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Método criado pra teste do método getSocialInteractions da ferramenta de mensagens
|
* M�todo criado pra teste do m�todo getSocialInteractions da ferramenta de mensagens
|
||||||
* @param mapping
|
* @param mapping
|
||||||
* @param form
|
* @param form
|
||||||
* @param request
|
* @param request
|
||||||
@@ -396,7 +396,7 @@ public class TwitterActions extends SystemActions {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Método criado pra teste do método getSocialInteractions da ferramenta do twitter
|
* M�todo criado pra teste do m�todo getSocialInteractions da ferramenta do twitter
|
||||||
* @param mapping
|
* @param mapping
|
||||||
* @param form
|
* @param form
|
||||||
* @param request
|
* @param request
|
||||||
|
|||||||
Referência em uma Nova Issue
Bloquear um usuário