mirror of
				https://github.com/Alfresco/alfresco-community-repo.git
				synced 2025-10-29 15:21:53 +00:00 
			
		
		
		
	git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19133 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
		
			
				
	
	
		
			101 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			101 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
| /*
 | |
|  * Copyright (C) 2005-2010 Alfresco Software Limited.
 | |
|  *
 | |
|  * This file is part of Alfresco
 | |
|  *
 | |
|  * Alfresco is free software: you can redistribute it and/or modify
 | |
|  * it under the terms of the GNU Lesser General Public License as published by
 | |
|  * the Free Software Foundation, either version 3 of the License, or
 | |
|  * (at your option) any later version.
 | |
|  *
 | |
|  * Alfresco is distributed in the hope that it will be useful,
 | |
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | |
|  * GNU Lesser General Public License for more details.
 | |
|  *
 | |
|  * You should have received a copy of the GNU Lesser General Public License
 | |
|  * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
 | |
|  */
 | |
| package org.alfresco.cmis.changelog;
 | |
| 
 | |
| import java.util.LinkedList;
 | |
| import java.util.List;
 | |
| 
 | |
| import org.alfresco.cmis.CMISChangeEvent;
 | |
| import org.alfresco.cmis.CMISChangeLog;
 | |
| 
 | |
| /**
 | |
|  * CMISChangeLog Implementation
 | |
|  * 
 | |
|  * @author Dmitry Velichkevich
 | |
|  */
 | |
| public class CMISChangeLogImpl implements CMISChangeLog
 | |
| {
 | |
|     private boolean hasMoreItems;
 | |
|     private List<CMISChangeEvent> changeEvents = new LinkedList<CMISChangeEvent>();
 | |
|     private String nextChangeToken;
 | |
| 
 | |
|     /**
 | |
|      * @see org.alfresco.cmis.CMISChangeLog#getChangeEvents()
 | |
|      */
 | |
|     public List<CMISChangeEvent> getChangeEvents()
 | |
|     {
 | |
|         return changeEvents;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Set the change events
 | |
|      * 
 | |
|      * @param changeEvents list of change events
 | |
|      */
 | |
|     protected void setChangeEvents(List<CMISChangeEvent> changeEvents)
 | |
|     {
 | |
|         this.changeEvents = changeEvents;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @see org.alfresco.cmis.CMISChangeLog#getEventCount()
 | |
|      */
 | |
|     public Integer getEventCount()
 | |
|     {
 | |
|         return changeEvents.size();
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @see org.alfresco.cmis.CMISChangeLog#getNextChangeToken()
 | |
|      */
 | |
|     public String getNextChangeToken()
 | |
|     {
 | |
|         return nextChangeToken;
 | |
|     }
 | |
|     
 | |
|     /**
 | |
|      * Set the next ChangeToken
 | |
|      * 
 | |
|      * @param nextChangeToken the next ChangeToken
 | |
|      */
 | |
|     public void setNextChangeToken(String nextChangeToken) 
 | |
|     {
 | |
| 		this.nextChangeToken = nextChangeToken;
 | |
| 	}
 | |
| 
 | |
|     /**
 | |
|      * @see org.alfresco.cmis.CMISChangeLog#hasMoreItems()
 | |
|      */
 | |
|     public boolean hasMoreItems()
 | |
|     {
 | |
|         return hasMoreItems;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Set the hasMoreItems value
 | |
|      * 
 | |
|      * @param hasMoreItems hasMoreItems value
 | |
|      */
 | |
|     protected void setHasMoreItems(boolean hasMoreItems)
 | |
|     {
 | |
|         this.hasMoreItems = hasMoreItems;
 | |
|     }
 | |
| 	
 | |
| }
 |