org.alfresco.cmis.changelog
Class CMISChangeLogServiceImpl

java.lang.Object
  extended by org.alfresco.cmis.changelog.CMISChangeLogServiceImpl
All Implemented Interfaces:
CMISChangeLogService

public class CMISChangeLogServiceImpl
extends java.lang.Object
implements CMISChangeLogService

ChangeLog Service Implementation


Constructor Summary
CMISChangeLogServiceImpl()
           
 
Method Summary
 CMISCapabilityChanges getCapability()
           
 CMISChangeLog getChangeLogEvents(java.lang.String changeLogToken, java.lang.Integer maxItems)
           
 boolean getChangesIncomplete()
           
 java.util.List getChangesOnTypeCapability()
           
 java.lang.String getLastChangeLogToken()
           
 java.lang.String getLastPageChangeLogToken(java.lang.String currentPageToken, java.lang.Integer maxItems)
          Assuming that currentPageToken begins a page of maxItems entries, gets the token at the start of the final page.
 java.lang.String getPreviousPageChangeLogToken(java.lang.String currentPageToken, java.lang.Integer maxItems)
          Gets the change log token maxItems entries before the given one
 void setAuditService(AuditService auditService)
          Set the AuditService.
 void setChangesOnTypeCapability(java.util.List changesOnTypeCapability)
          Set the ChangesOnTypeCapability.
 void setCmisAuditApplicationName(java.lang.String cmisAuditApplicationName)
          Set the Audit Application Name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMISChangeLogServiceImpl

public CMISChangeLogServiceImpl()
Method Detail

setAuditService

public void setAuditService(AuditService auditService)
Set the AuditService.

Parameters:
auditService - AuditService

setCmisAuditApplicationName

public void setCmisAuditApplicationName(java.lang.String cmisAuditApplicationName)
Set the Audit Application Name.

Parameters:
cmisAuditApplicationName - Audit Application Name

setChangesOnTypeCapability

public void setChangesOnTypeCapability(java.util.List changesOnTypeCapability)
Set the ChangesOnTypeCapability.

Parameters:
changesOnTypeCapability - list of CMISBaseObjectTypeIds

getCapability

public CMISCapabilityChanges getCapability()
Specified by:
getCapability in interface CMISChangeLogService
Returns:
CMISCapabilityChanges enum value that specifies currently configured Auditing feature mode
See Also:
CMISChangeLogService.getCapability()

getChangeLogEvents

public CMISChangeLog getChangeLogEvents(java.lang.String changeLogToken,
                                        java.lang.Integer maxItems)
                                 throws CMISInvalidArgumentException
Specified by:
getChangeLogEvents in interface CMISChangeLogService
Parameters:
changeLogToken - - String value that represents some Change Log Token
maxItems - - Integer value that determines required amount of entries
Returns:
CMISChangeLog instance that describes entry mapped to specified Change Log Token
Throws:
CMISInvalidArgumentException
See Also:
CMISChangeLogService.getChangeLogEvents(java.lang.String, java.lang.Integer)

getChangesIncomplete

public boolean getChangesIncomplete()
Specified by:
getChangesIncomplete in interface CMISChangeLogService
Returns:
always true
See Also:
CMISChangeLogService.getChangesIncomplete()

getLastChangeLogToken

public java.lang.String getLastChangeLogToken()
Specified by:
getLastChangeLogToken in interface CMISChangeLogService
Returns:
String value that represents Change Log Token which is currently actual
See Also:
CMISChangeLogService.getLastChangeLogToken()

getPreviousPageChangeLogToken

public java.lang.String getPreviousPageChangeLogToken(java.lang.String currentPageToken,
                                                      java.lang.Integer maxItems)
Description copied from interface: CMISChangeLogService
Gets the change log token maxItems entries before the given one

Specified by:
getPreviousPageChangeLogToken in interface CMISChangeLogService
Parameters:
currentPageToken - a change log token
maxItems - the number of entries to skip backwards
Returns:
the change log token maxItems entries before currentPageToken
See Also:
CMISChangeLogService.getPreviousPageChangeLogToken(java.lang.String, java.lang.Integer)

getLastPageChangeLogToken

public java.lang.String getLastPageChangeLogToken(java.lang.String currentPageToken,
                                                  java.lang.Integer maxItems)
Description copied from interface: CMISChangeLogService
Assuming that currentPageToken begins a page of maxItems entries, gets the token at the start of the final page.

Specified by:
getLastPageChangeLogToken in interface CMISChangeLogService
Parameters:
currentPageToken - a change log token
maxItems - the number of entries per page
Returns:
the change log token at the start of the final page
See Also:
CMISChangeLogService.getLastPageChangeLogToken(java.lang.String, java.lang.Integer)

getChangesOnTypeCapability

public java.util.List getChangesOnTypeCapability()
Specified by:
getChangesOnTypeCapability in interface CMISChangeLogService
Returns:
List<CMISBaseObjectTypeIds> collection instance that contains configured value for Changes On Type capability
See Also:
CMISChangeLogService.getChangesOnTypeCapability()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.