org.eclipse.higgins.icard.common
Class BasicCardProvider

java.lang.Object
  extended by org.eclipse.higgins.icard.common.BasicCardProvider
All Implemented Interfaces:
org.eclipse.higgins.icard.ICardProvider, org.eclipse.higgins.registry.IServiceProvider

public abstract class BasicCardProvider
extends Object
implements org.eclipse.higgins.icard.ICardProvider


Field Summary
 
Fields inherited from interface org.eclipse.higgins.icard.ICardProvider
CONTEXT_REF_PROP_NAME, CONTEXT_SCHEMA_FILE_PROP_NAME, CONTEXT_SCHEMA_URL_PROP_NAME, IMAGE_URL_PROP_NAME
 
Constructor Summary
BasicCardProvider()
           
 
Method Summary
 boolean canImportICard(CallbackHandler authHandler, org.eclipse.higgins.icard.io.IElement element)
           
 org.eclipse.higgins.icard.io.IElement[] exportICards(CallbackHandler authHandler, org.eclipse.higgins.icard.io.IElementFormat format, org.eclipse.higgins.icard.CUID[] cards)
           
 Iterator getICardsByFormat(CallbackHandler authHandler, org.eclipse.higgins.icard.io.IElementFormat format)
           
 Iterator getICardsByPolicy(CallbackHandler authHandler, org.eclipse.higgins.icard.IPolicy policy)
           
 org.eclipse.higgins.icard.ICard persistCard(CallbackHandler authHandler, org.eclipse.higgins.icard.ICard card)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.higgins.icard.ICardProvider
canCreateCard, createCard, createCard, deleteCard, getCardCreationTemplates, getCardCreationTemplatesByID, getDescription, getICardByCUID, getICardByCUID, getICards, getName, getSupportedTypes, importICard, parseCardElement
 
Methods inherited from interface org.eclipse.higgins.registry.IServiceProvider
getConfiguration, getID, setID
 

Constructor Detail

BasicCardProvider

public BasicCardProvider()
Method Detail

getICardsByFormat

public Iterator getICardsByFormat(CallbackHandler authHandler,
                                  org.eclipse.higgins.icard.io.IElementFormat format)
                           throws org.eclipse.higgins.icard.CardException
Specified by:
getICardsByFormat in interface org.eclipse.higgins.icard.ICardProvider
Throws:
org.eclipse.higgins.icard.CardException

getICardsByPolicy

public Iterator getICardsByPolicy(CallbackHandler authHandler,
                                  org.eclipse.higgins.icard.IPolicy policy)
                           throws org.eclipse.higgins.icard.CardException
Specified by:
getICardsByPolicy in interface org.eclipse.higgins.icard.ICardProvider
Throws:
org.eclipse.higgins.icard.CardException

exportICards

public org.eclipse.higgins.icard.io.IElement[] exportICards(CallbackHandler authHandler,
                                                            org.eclipse.higgins.icard.io.IElementFormat format,
                                                            org.eclipse.higgins.icard.CUID[] cards)
                                                     throws org.eclipse.higgins.icard.CardException
Specified by:
exportICards in interface org.eclipse.higgins.icard.ICardProvider
Throws:
org.eclipse.higgins.icard.CardException

persistCard

public org.eclipse.higgins.icard.ICard persistCard(CallbackHandler authHandler,
                                                   org.eclipse.higgins.icard.ICard card)
                                            throws org.eclipse.higgins.icard.CardException
Specified by:
persistCard in interface org.eclipse.higgins.icard.ICardProvider
Throws:
org.eclipse.higgins.icard.CardException

canImportICard

public boolean canImportICard(CallbackHandler authHandler,
                              org.eclipse.higgins.icard.io.IElement element)
Specified by:
canImportICard in interface org.eclipse.higgins.icard.ICardProvider