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
PREFIX_ANNOT
Constructor and Description |
---|
OwSimpleInfoProviderRegistry(OwRoleManagerContext roleCtxt_p) |
Modifier and Type | Method and Description |
---|---|
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.
|
public OwSimpleInfoProviderRegistry(OwRoleManagerContext roleCtxt_p)
protected void init()
public OwInfoProvider getInfoProvider(String context_p)
OwInfoProviderRegistry
Attention this can return null if the context is null or no provider exist for this context
getInfoProvider
in interface OwInfoProviderRegistry
context_p
- String context to be handledpublic void registerProvider(String context_p, OwInfoProvider pro_p)
OwInfoProviderRegistry
registerProvider
in interface OwInfoProviderRegistry
context_p
- String representing the contextpro_p
- OwInfoProvider to registerpublic OwInfoProvider unregisterProvider(String context_p)
OwInfoProviderRegistry
unregisterProvider
in interface OwInfoProviderRegistry
context_p
- String to unregisterCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.