public abstract class WGConfigurableTypeDesignProvider extends java.lang.Object implements WGDesignProvider
initProviderTypes(List) should be called after the configuration for provided types has been received,
but before the provider is used.| Constructor and Description |
|---|
WGConfigurableTypeDesignProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addDesignChangeListener(WGDesignChangeListener changeListener)
Adds a listener for design change events, issued by this design provider
If the design provider does not support this then
WGDesignProvider.isNotifying() should return false |
abstract WGDocumentCore |
createDesignDocument(int type,
java.lang.String name,
java.lang.String mediaKey)
Creates the core for a new design document
|
abstract void |
dispose()
Prepares this object to be discarded, giving it the opportunity to clean up resources, references.
|
abstract WGDocumentCore |
getDesignObject(int type,
java.lang.String name,
java.lang.String strMediaKey)
Retrieves a design object by it's doc class and unique name.
|
abstract java.util.List |
getDesignObjects(int type)
Retrieves all design objects of the given doc class.
|
abstract java.lang.String |
getName()
Displays a descriptive name of the type and purpose of this provider, to be displayed in error messages
|
abstract boolean |
isNotifying()
Determines if this design provider notifies it's design change listeners about design changes
|
abstract boolean |
isProviderCore(WGDocumentCore core)
Should determine if the given document core was served by this type of provider.
|
boolean |
providesType(int type)
Determines if this design provider provides designs of this type
|
abstract void |
removeDesignChangeListener(WGDesignChangeListener changeListener)
Removes a listener for design change events
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseSession, designHashCode, getFileEncoding, isSynchronizeAccess, openSessionpublic abstract java.util.List getDesignObjects(int type)
throws WGAPIException
WGDesignProvidergetDesignObjects in interface WGDesignProvidertype - The doc class. See constants WGDocument.FDC_...WGAPIExceptionpublic abstract WGDocumentCore getDesignObject(int type, java.lang.String name, java.lang.String strMediaKey) throws WGAPIException
WGDesignProvidergetDesignObject in interface WGDesignProvidertype - The doc class of the design object. See Constants under WGDocument.FDC_...name - The unique name of the designstrMediaKey - For media key specific design objects (e.g. WebTML-Modules), the media key of the design object to be retrievedWGAPIExceptionpublic boolean providesType(int type)
WGDesignProviderprovidesType in interface WGDesignProvidertype - The type. A constant WGDocument.TYPE_...public abstract boolean isProviderCore(WGDocumentCore core)
WGDesignProviderisProviderCore in interface WGDesignProvidercore - The core to testpublic abstract java.lang.String getName()
WGDesignProvidergetName in interface WGDesignProviderpublic abstract WGDocumentCore createDesignDocument(int type, java.lang.String name, java.lang.String mediaKey) throws WGAuthorisationException, WGCreationException
WGDesignProvidercreateDesignDocument in interface WGDesignProvidertype - Type of document. Constant of WGDocument.TYPE_...name - Name of new designmediaKey - Mediakey of new design (for tml modules only. Otherwise provide null)WGAuthorisationExceptionWGCreationExceptionpublic abstract void addDesignChangeListener(WGDesignChangeListener changeListener)
WGDesignProviderWGDesignProvider.isNotifying() should return falseaddDesignChangeListener in interface WGDesignProviderchangeListener - The listener to addpublic abstract void removeDesignChangeListener(WGDesignChangeListener changeListener)
WGDesignProviderremoveDesignChangeListener in interface WGDesignProviderchangeListener - The listener to removepublic abstract void dispose()
WGDesignProviderdispose in interface WGDesignProviderpublic abstract boolean isNotifying()
WGDesignProviderisNotifying in interface WGDesignProvider