com.wewebu.ow.server.ui.viewer
Interface OwInfoProviderRegistry

All Known Implementing Classes:
OwSimpleInfoProviderRegistry

public interface OwInfoProviderRegistry

Registry to retrieve OwInfoProvider. Interface which must be implement by classes, which should be used as registry for information provider.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com

Since:
3.1.0.0

Field Summary
static String PREFIX_ANNOT
          prefix used to request annotation provider for a given DMS prefix.
 
Method Summary
 OwInfoProvider getInfoProvider(String context_p)
          Method to retrieve a provider regarding the given context.
 void registerProvider(String context_p, OwInfoProvider pro_p)
          Method called to register a provider for specific context.
 OwInfoProvider unregisterProvider(String context_p)
          Remove a provider from registry for given context.
 

Field Detail

PREFIX_ANNOT

static final String PREFIX_ANNOT
prefix used to request annotation provider for a given DMS prefix.

See Also:
Constant Field Values
Method Detail

getInfoProvider

OwInfoProvider getInfoProvider(String context_p)
Method to retrieve a provider regarding the given context.

Attention this can return null if the context is null or no provider exist for this context

Parameters:
context_p - String context to be handled
Returns:
OwInformationProvider or null

registerProvider

void registerProvider(String context_p,
                      OwInfoProvider pro_p)
Method called to register a provider for specific context.

Parameters:
context_p - String representing the context
pro_p - OwInfoProvider to register

unregisterProvider

OwInfoProvider unregisterProvider(String context_p)
Remove a provider from registry for given context.

Parameters:
context_p - String to unregister
Returns:
OwInfoProvider which was unregistered, or null if nothing was registered


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.