mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
GDoc:
- Added web script to return the status of the GDoc service (see ALF-8684) - Refactor of service code to fix some of the issues when configuration details are changed via JMX or Share git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28681 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -106,12 +106,15 @@ public class GoogleDocsServiceImpl extends TransactionListenerAdapter
|
||||
private AuthorityService authorityService;
|
||||
private DictionaryService dictionaryService;
|
||||
|
||||
/** Indicates whether the GDoc integration is enabled or not */
|
||||
private boolean enabled = false;
|
||||
|
||||
/** GoogleDoc base feed url */
|
||||
private String url = "http://docs.google.com/feeds/default/private/full";
|
||||
private String downloadUrl = "https://docs.google.com/feeds/download";
|
||||
|
||||
/** Authentication credentials */
|
||||
private boolean initialised = false;
|
||||
private boolean initialised = false;
|
||||
private String username;
|
||||
private String password;
|
||||
|
||||
@@ -246,6 +249,7 @@ public class GoogleDocsServiceImpl extends TransactionListenerAdapter
|
||||
public void setUsername(String username)
|
||||
{
|
||||
this.username = username;
|
||||
this.initialised = false;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -254,6 +258,7 @@ public class GoogleDocsServiceImpl extends TransactionListenerAdapter
|
||||
public void setPassword(String password)
|
||||
{
|
||||
this.password = password;
|
||||
this.initialised = false;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -263,6 +268,24 @@ public class GoogleDocsServiceImpl extends TransactionListenerAdapter
|
||||
{
|
||||
this.permissionMap = permissionMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set whether the service is enabled or not.
|
||||
* @param enabled true if enabled, false otherwise
|
||||
*/
|
||||
public void setEnabled(boolean enabled)
|
||||
{
|
||||
this.enabled = enabled;
|
||||
this.initialised = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.repo.googledocs.GoogleDocsService#isEnabled()
|
||||
*/
|
||||
public boolean isEnabled()
|
||||
{
|
||||
return enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialise google docs services
|
||||
|
Reference in New Issue
Block a user