|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.higgins.registry.HigginsRegistry
org.eclipse.higgins.icard.registry.ICardRegistry
public class ICardRegistry
| Constructor Summary | |
|---|---|
ICardRegistry(String configPath)
|
|
| Method Summary | |
|---|---|
org.eclipse.higgins.icard.io.IFormatDescriptor |
checkInput(InputStream in)
Checks whether this ICardRegistry can recognize data
format of the provided input stream. |
void |
deleteICard(CallbackHandler authHandler,
org.eclipse.higgins.icard.CUID cuid)
|
void |
deleteICard(CallbackHandler authHandler,
String CUID)
|
void |
exportICards(CallbackHandler authHandler,
OutputStream out,
String formatID,
org.eclipse.higgins.icard.CUID[] cards,
org.eclipse.higgins.icard.auth.ICredential credential)
|
List |
getCardCreationTemplates(CallbackHandler authHandler)
|
org.eclipse.higgins.icard.ICardTemplate |
getCardCreationTemplatesByTUID(CallbackHandler authHandler,
org.eclipse.higgins.icard.TUID tuid)
|
org.eclipse.higgins.registry.IConfiguration |
getConfiguration(org.eclipse.higgins.registry.IServiceProvider provider)
|
org.eclipse.higgins.icard.io.IFormatProvider |
getFormatProvider(String formatID)
|
org.eclipse.higgins.icard.ICard |
getICardByCUID(CallbackHandler authHandler,
org.eclipse.higgins.icard.CUID cuid)
|
org.eclipse.higgins.icard.ICard |
getICardByCUID(CallbackHandler authHandler,
String CUID)
|
org.eclipse.higgins.icard.ICardProvider |
getICardProvider(String extID)
|
Iterator |
getICardProviders()
|
Iterator |
getICardsByFormat(CallbackHandler authHandler,
String formatID)
|
org.eclipse.higgins.icard.IImportCardInfo[] |
getImportCardInformation(CallbackHandler authHandler,
InputStream in,
String formatID,
org.eclipse.higgins.icard.auth.ICredential credential)
Get information about cards which can be imported from the passed source |
static ICardRegistry |
getInstance()
|
org.eclipse.higgins.icard.io.IFormatDescriptor[] |
getOutputFormats()
Returns an array of IFormatDesctiptors which provide an
information about all output formats available. |
Iterator |
importICards(CallbackHandler authHandler,
InputStream in,
String formatID,
org.eclipse.higgins.icard.auth.ICredential credential)
Imports cards from the provided input stream. |
Iterator |
importICards(CallbackHandler authHandler,
InputStream in,
String formatID,
org.eclipse.higgins.icard.auth.ICredential credential,
Boolean[] importFlag)
Imports cards from the provided input stream. |
org.eclipse.higgins.icard.ICard |
persistICard(CallbackHandler authHandler,
org.eclipse.higgins.icard.ICard card)
|
| Methods inherited from class org.eclipse.higgins.registry.HigginsRegistry |
|---|
addExtension, getProviderType, getServiceProvider, getServiceProviders, loadProviders, remove |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ICardRegistry(String configPath)
throws org.eclipse.higgins.registry.RegistryConfigurationException
configPath -
org.eclipse.higgins.registry.RegistryConfigurationException| Method Detail |
|---|
public Iterator getICardProviders()
public org.eclipse.higgins.icard.ICardProvider getICardProvider(String extID)
public List getCardCreationTemplates(CallbackHandler authHandler)
public org.eclipse.higgins.icard.ICardTemplate getCardCreationTemplatesByTUID(CallbackHandler authHandler,
org.eclipse.higgins.icard.TUID tuid)
throws org.eclipse.higgins.icard.CardException
org.eclipse.higgins.icard.CardException
public org.eclipse.higgins.icard.ICard getICardByCUID(CallbackHandler authHandler,
String CUID)
throws org.eclipse.higgins.icard.CardException
org.eclipse.higgins.icard.CardException
public org.eclipse.higgins.icard.ICard getICardByCUID(CallbackHandler authHandler,
org.eclipse.higgins.icard.CUID cuid)
throws org.eclipse.higgins.icard.CardException
org.eclipse.higgins.icard.CardException
public void deleteICard(CallbackHandler authHandler,
String CUID)
throws org.eclipse.higgins.icard.CardException
org.eclipse.higgins.icard.CardException
public void deleteICard(CallbackHandler authHandler,
org.eclipse.higgins.icard.CUID cuid)
throws org.eclipse.higgins.icard.CardException
org.eclipse.higgins.icard.CardException
public org.eclipse.higgins.icard.io.IFormatDescriptor checkInput(InputStream in)
throws org.eclipse.higgins.icard.io.CardIOException
ICardRegistry can recognize data
format of the provided input stream. Some formats require authentication
information in order to proccess input data. This method should be used
prior to actual attempt to import data from the input stream in order to
retrieve an information about data format and required authentication
data to proccess the data successfully.
null otherwise.
org.eclipse.higgins.icard.io.CardIOException
public org.eclipse.higgins.icard.IImportCardInfo[] getImportCardInformation(CallbackHandler authHandler,
InputStream in,
String formatID,
org.eclipse.higgins.icard.auth.ICredential credential)
throws org.eclipse.higgins.icard.CardException
authHandler - the callback handler used to provide user identityin - the input stream to import fromformatID - the data format of the input stream if available. If
null is used all available data formats will be
checked in order to import.credential - the authentication data to process the input stream if
required
org.eclipse.higgins.icard.CardException
public Iterator importICards(CallbackHandler authHandler,
InputStream in,
String formatID,
org.eclipse.higgins.icard.auth.ICredential credential)
throws org.eclipse.higgins.icard.CardException
authHandler - the callback handler used to provide user identityin - the input stream to import fromformatID - the data format of the input stream if available. If
null is used all available data formats will be
checked in order to import.credential - the authentication data to process the input stream if
required
org.eclipse.higgins.icard.CardException
public Iterator importICards(CallbackHandler authHandler,
InputStream in,
String formatID,
org.eclipse.higgins.icard.auth.ICredential credential,
Boolean[] importFlag)
throws org.eclipse.higgins.icard.CardException
authHandler - the callback handler used to provide user identityin - the input stream to import fromformatID - the data format of the input stream if available. If
null is used all available data formats will be
checked in order to import.credential - the authentication data to process the input stream if
requiredimportSign - Indicates whether or not the card from passed
InputStream should be imported. If this array by
index of card number contains false, then card
should be skipped. If array is null, or contains
null, or true, than card will be imported
org.eclipse.higgins.icard.CardException
public org.eclipse.higgins.icard.ICard persistICard(CallbackHandler authHandler,
org.eclipse.higgins.icard.ICard card)
throws org.eclipse.higgins.icard.CardException
org.eclipse.higgins.icard.CardExceptionpublic org.eclipse.higgins.icard.io.IFormatProvider getFormatProvider(String formatID)
public org.eclipse.higgins.icard.io.IFormatDescriptor[] getOutputFormats()
IFormatDesctiptors which provide an
information about all output formats available.
public Iterator getICardsByFormat(CallbackHandler authHandler,
String formatID)
throws org.eclipse.higgins.icard.CardException
org.eclipse.higgins.icard.CardException
public void exportICards(CallbackHandler authHandler,
OutputStream out,
String formatID,
org.eclipse.higgins.icard.CUID[] cards,
org.eclipse.higgins.icard.auth.ICredential credential)
throws org.eclipse.higgins.icard.CardException
org.eclipse.higgins.icard.CardExceptionpublic static ICardRegistry getInstance()
public org.eclipse.higgins.registry.IConfiguration getConfiguration(org.eclipse.higgins.registry.IServiceProvider provider)
throws org.eclipse.higgins.registry.RegistryConfigurationException
getConfiguration in class org.eclipse.higgins.registry.HigginsRegistryorg.eclipse.higgins.registry.RegistryConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||