mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix ALF-10402: PUB: Access tokens are not being stored in encrypted properties
- NOTE: this fix means that any existing publishing channels in the repo will cease to work and will cause the publishing generally to have problems. If you have publishing channels in your repo then you must remove them following this fix. This can be done by either cleaning your repo out completely or deleting the node underneath "Data Dictionary/Publishing Root" (it has a UUID as its name). git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30646 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -30,7 +30,6 @@ import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import com.benfante.jslideshare.DocumentParser;
|
||||
import com.benfante.jslideshare.DocumentParserResult;
|
||||
import com.benfante.jslideshare.SlideShareAPI;
|
||||
import com.benfante.jslideshare.SlideShareConnector;
|
||||
import com.benfante.jslideshare.SlideShareErrorException;
|
||||
import com.benfante.jslideshare.SlideShareException;
|
||||
@@ -40,7 +39,7 @@ import com.benfante.jslideshare.messages.SlideshowInfo;
|
||||
import com.benfante.jslideshare.messages.Tag;
|
||||
import com.benfante.jslideshare.messages.User;
|
||||
|
||||
public class SlideShareApiImpl implements SlideShareAPI
|
||||
public class SlideShareApiImpl implements SlideShareApi
|
||||
{
|
||||
private static final Log logger = LogFactory.getLog(SlideShareApiImpl.class);
|
||||
|
||||
@@ -57,12 +56,12 @@ public class SlideShareApiImpl implements SlideShareAPI
|
||||
static
|
||||
{
|
||||
DEFAULT_API_URLS.put(URL_GET_SLIDESHOW, "http://www.slideshare.net/api/2/get_slideshow");
|
||||
DEFAULT_API_URLS.put(URL_GET_SLIDESHOW_INFO, "https://www.slideshare.net/api/2/get_slideshow_info");
|
||||
DEFAULT_API_URLS.put(URL_GET_SLIDESHOW_BY_USER, "https://www.slideshare.net/api/2/get_slideshow_by_user");
|
||||
DEFAULT_API_URLS.put(URL_GET_SLIDESHOW_BY_TAG, "https://www.slideshare.net/api/2/get_slideshow_by_tag");
|
||||
DEFAULT_API_URLS.put(URL_GET_SLIDESHOW_BY_GROUP, "https://www.slideshare.net/api/2/get_slideshow_from_group");
|
||||
DEFAULT_API_URLS.put(URL_GET_SLIDESHOW_INFO, "http://www.slideshare.net/api/2/get_slideshow");
|
||||
DEFAULT_API_URLS.put(URL_GET_SLIDESHOW_BY_USER, "http://www.slideshare.net/api/2/get_slideshow_by_user");
|
||||
DEFAULT_API_URLS.put(URL_GET_SLIDESHOW_BY_TAG, "http://www.slideshare.net/api/2/get_slideshow_by_tag");
|
||||
DEFAULT_API_URLS.put(URL_GET_SLIDESHOW_BY_GROUP, "http://www.slideshare.net/api/2/get_slideshow_from_group");
|
||||
DEFAULT_API_URLS.put(URL_UPLOAD_SLIDESHOW, "http://www.slideshare.net/api/2/upload_slideshow");
|
||||
DEFAULT_API_URLS.put(URL_DELETE_SLIDESHOW, "https://www.slideshare.net/api/2/delete_slideshow");
|
||||
DEFAULT_API_URLS.put(URL_DELETE_SLIDESHOW, "http://www.slideshare.net/api/2/delete_slideshow");
|
||||
}
|
||||
|
||||
private Map<String, String> apiUrls = new TreeMap<String, String>(DEFAULT_API_URLS);
|
||||
@@ -200,7 +199,7 @@ public class SlideShareApiImpl implements SlideShareAPI
|
||||
addParameter(parameters, "username", username);
|
||||
addParameter(parameters, "password", password);
|
||||
addParameter(parameters, "slideshow_id", id);
|
||||
return sendGetMessage(URL_DELETE_SLIDESHOW, parameters).getSlideShowId();
|
||||
return sendMessage(URL_DELETE_SLIDESHOW, parameters).getSlideShowId();
|
||||
}
|
||||
|
||||
private Map<String, String> addParameter(Map<String, String> parameters, String name, String value)
|
||||
|
Reference in New Issue
Block a user