com.wewebu.ow.server.app.viewer
Class OwSimpleInfoProviderRegistry

java.lang.Object
  extended by com.wewebu.ow.server.app.viewer.OwSimpleInfoProviderRegistry
All Implemented Interfaces:
OwInfoProviderRegistry

public class OwSimpleInfoProviderRegistry
extends Object
implements OwInfoProviderRegistry

Simple OwInfoProviderRegistry implementation. A simple implementation to request the network DMS prefix and register the provider into a map.

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
 
Fields inherited from interface com.wewebu.ow.server.ui.viewer.OwInfoProviderRegistry
PREFIX_ANNOT
 
Constructor Summary
OwSimpleInfoProviderRegistry(OwRoleManagerContext roleCtxt_p)
           
 
Method Summary
 OwInfoProvider getInfoProvider(String context_p)
          Method to retrieve a provider regarding the given context.
protected  void init()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwSimpleInfoProviderRegistry

public OwSimpleInfoProviderRegistry(OwRoleManagerContext roleCtxt_p)
Method Detail

init

protected void init()

getInfoProvider

public OwInfoProvider getInfoProvider(String context_p)
Description copied from interface: OwInfoProviderRegistry
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

Specified by:
getInfoProvider in interface OwInfoProviderRegistry
Parameters:
context_p - String context to be handled
Returns:
OwInformationProvider or null

registerProvider

public void registerProvider(String context_p,
                             OwInfoProvider pro_p)
Description copied from interface: OwInfoProviderRegistry
Method called to register a provider for specific context.

Specified by:
registerProvider in interface OwInfoProviderRegistry
Parameters:
context_p - String representing the context
pro_p - OwInfoProvider to register

unregisterProvider

public OwInfoProvider unregisterProvider(String context_p)
Description copied from interface: OwInfoProviderRegistry
Remove a provider from registry for given context.

Specified by:
unregisterProvider in interface OwInfoProviderRegistry
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.