|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.transaction.TransactionListenerAdapter
org.alfresco.repo.googledocs.GoogleDocsServiceImpl
public class GoogleDocsServiceImpl
Google docs integration service implementation
Field Summary | |
---|---|
static java.lang.String |
TYPE_DOCUMENT
Google document types |
static java.lang.String |
TYPE_PDF
|
static java.lang.String |
TYPE_PRESENTATION
|
static java.lang.String |
TYPE_SPREADSHEET
|
Fields inherited from interface org.alfresco.repo.googledocs.GoogleDocsModel |
---|
ASPECT_GOOGLEEDITABLE, ASPECT_GOOGLERESOURCE, GOOGLE_DOCS_MODEL_1_0_URI, GOOGLE_DOCS_PREFIX, PROP_RESOURCE_ID, PROP_RESOURCE_TYPE, PROP_URL |
Constructor Summary | |
---|---|
GoogleDocsServiceImpl()
|
Method Summary | |
---|---|
void |
afterCommit()
Invoked after transaction commit. |
void |
afterRollback()
Invoked after transaction rollback. |
void |
createGoogleDoc(NodeRef nodeRef,
GoogleDocsPermissionContext permissionContext)
Create a google doc from a given node. |
void |
deleteGoogleResource(NodeRef nodeRef)
Deletes the google resource associated with the node reference. |
java.io.InputStream |
getGoogleDocContent(NodeRef nodeRef)
Gets the content as an input stream of google doc associated with the given node. |
void |
initialise()
Initialise google docs services |
void |
setAuthorityService(AuthorityService authorityService)
|
void |
setContentService(ContentService contentService)
|
void |
setDictionaryService(DictionaryService dictionaryService)
|
void |
setGoogleDocumentService(com.google.gdata.client.docs.DocsService googleDocumentService)
|
void |
setMimetypeService(MimetypeService mimetypeService)
|
void |
setNodeService(NodeService nodeService)
|
void |
setOwnableService(OwnableService ownableService)
|
void |
setPassword(java.lang.String password)
|
void |
setPermissionMap(java.util.Map permissionMap)
|
void |
setPermissionService(PermissionService permissionService)
|
void |
setPersonService(PersonService personService)
|
void |
setSpreadsheetsService(com.google.gdata.client.GoogleService spreadsheetsService)
|
void |
setUrl(java.lang.String url)
|
void |
setUsername(java.lang.String username)
|
Methods inherited from class org.alfresco.repo.transaction.TransactionListenerAdapter |
---|
beforeCommit, beforeCompletion, flush |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TYPE_DOCUMENT
public static final java.lang.String TYPE_SPREADSHEET
public static final java.lang.String TYPE_PRESENTATION
public static final java.lang.String TYPE_PDF
Constructor Detail |
---|
public GoogleDocsServiceImpl()
Method Detail |
---|
public void setGoogleDocumentService(com.google.gdata.client.docs.DocsService googleDocumentService)
googleDocumentService
- google document servicepublic void setSpreadsheetsService(com.google.gdata.client.GoogleService spreadsheetsService)
spreadsheetsService
- spread sheets servicepublic void setNodeService(NodeService nodeService)
nodeService
- node servicepublic void setContentService(ContentService contentService)
contentService
- content servicepublic void setPersonService(PersonService personService)
personService
- person servicepublic void setMimetypeService(MimetypeService mimetypeService)
mimetypeService
- mime type servicepublic void setPermissionService(PermissionService permissionService)
permissionService
- permission servicepublic void setOwnableService(OwnableService ownableService)
ownableService
- ownable servicepublic void setAuthorityService(AuthorityService authorityService)
authorityService
- authority servicepublic void setDictionaryService(DictionaryService dictionaryService)
dictionaryService
- dictionary servicepublic void setUrl(java.lang.String url)
url
- root googleDoc URLpublic void setUsername(java.lang.String username)
username
- google service user namepublic void setPassword(java.lang.String password)
password
- google service passwordpublic void setPermissionMap(java.util.Map permissionMap)
permissionMap
- permission mappublic void initialise() throws GoogleDocsServiceInitException
initialise
in interface GoogleDocsService
GoogleDocsServiceInitException
public void createGoogleDoc(NodeRef nodeRef, GoogleDocsPermissionContext permissionContext)
GoogleDocsService
createGoogleDoc
in interface GoogleDocsService
nodeRef
- node referencepermissionContext
- permission contextorg.alfresco.google.docs.GoogleDocsService#upload(org.alfresco.service.cmr.repository.NodeRef)
public void deleteGoogleResource(NodeRef nodeRef)
GoogleDocsService
deleteGoogleResource
in interface GoogleDocsService
nodeRef
- node referenceorg.alfresco.google.docs.GoogleDocsService#deleteGoogleResource(org.alfresco.service.cmr.repository.NodeRef)
public java.io.InputStream getGoogleDocContent(NodeRef nodeRef)
GoogleDocsService
getGoogleDocContent
in interface GoogleDocsService
nodeRef
- node reference
org.alfresco.google.docs.GoogleDocsService#getGoogleDocContent(org.alfresco.service.cmr.repository.NodeRef)
public void afterCommit()
TransactionListenerAdapter
Any exceptions generated here will cause the transaction to rollback.
Although all transaction resources are still available, this method should be used only for cleaning up resources after a commit has occured.
afterCommit
in interface TransactionListener
afterCommit
in class TransactionListenerAdapter
TransactionListenerAdapter.afterCommit()
public void afterRollback()
TransactionListenerAdapter
Although all transaction resources are still available, this method should be used only for cleaning up resources after a rollback has occured.
afterRollback
in interface TransactionListener
afterRollback
in class TransactionListenerAdapter
TransactionListenerAdapter.afterRollback()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |