Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
JBoss, a division of Red Hat * Copyright 2010, Red Hat Middleware, LLC, and individual * contributors as indicated by the

Authors:
tag. See the * copyright.txt in the distribution for a full listing of * individual contributors. * * This 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 2.1 of * the License, or (at your option) any later version. * * This software 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 this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. * /
 
 package org.gatein.exports;
 
 

Author(s):
Matt Wringe
Version:
$Revision$
 
 public interface ExportPersistenceManager
 {     
   
Stores the ExportContext and returns the updated ExportContext, which should now have a proper id.

Parameters:
exportContext The ExportContext to store
Returns:
the updated ExportContext with a proper id to reference it
 
    ExportContext storeExportContext(ExportContext exportContext);
   
   
Retrieves an ExportContext which corresponds to a particular reference ID

Parameters:
exportContextId The reference ID
Returns:
The ExportContext which corresponds to the reference ID
 
    ExportContext getExportContext(String exportContextId);
   
   
Updates an already stored ExportContext with an updated one.

Parameters:
updatedExportContext The updated ExportContext
Returns:
The new ExportContext
 
    ExportContext updateExportContext(ExportContext updatedExportContext);
   
   
Remove a stored ExportContext which corresponds to a reference ID.

Parameters:
refId The reference ID of the ExportContext to remove
Returns:
True if the exportContext was removed, false otherwise
 
    boolean removeExportContext(String refId);

   
Stores a ExportPortletData to a corresponding ExportContext

Parameters:
exportContext The ExportContext
exportPortletData The ExportPortletData
Returns:
the reference ID of the stored ExportPortletData
 
    ExportPortletData storeExportPortletData(ExportContext exportContextExportPortletData exportPortletData);
   
   
Retrieves an ExportPortletData

Parameters:
portletDataId The id of the ExportPortletData
Returns:
The ExportPortletData object
 
    ExportPortletData getExportPortletData (String portletDataId);

   
Updates a particular ExportPortletData

Parameters:
updatedPortletData The new ExportPortletData to use
Returns:
The updated ExportPortletData
 
    ExportPortletData updateExportPortletData(ExportPortletData updatedPortletData);
   
   
Removes a ExportPortletData from a ExportContext

Parameters:
portletDataId The reference Id of the ExportPortletData to remove
Returns:
True if the ExportPortletData was removed
   boolean removeExportPortletData(String portletDataId);
   <T extends ExportData> T loadExportData(String idClass<T> expected);
New to GrepCode? Check out our FAQ X