public class OwStandardCrossMappings extends Object implements OwExtendedCrossMappings
Implements a configurable mapping of user's and properties for federated cross adapter scenarios.
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
| Modifier and Type | Class and Description |
|---|---|
static class |
OwStandardCrossMappings.OwCrossDecoratorSearchNode
Wrapper class to map the property names.
|
static class |
OwStandardCrossMappings.OwCrossSort |
| Constructor and Description |
|---|
OwStandardCrossMappings(OwXMLUtil config_p)
creates a mapping with given configuration
|
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Object value_p,
OwFieldDefinition from_p,
OwFieldDefinition to_p) |
void |
doXLogin(OwNetwork xnetwork_p,
OwNetwork parentnetwork_p,
String parentuser_p,
String parentpassword_p)
Login to the X network.
|
protected OwXMLUtil |
getConfigNode() |
protected com.wewebu.ow.server.ecm.OwStandardCrossMappings.OwCrossLogin |
getDefaultlogin()
the default login for all unmapped users, groups
|
protected Map |
getGroupmappings()
get the group mappings from configuration
|
String |
getIClass(String className_p)
maps the given classes to their configured I peers
|
protected Map<String,String> |
getIClassMappings()
map of class names
|
protected Map |
getInternalPropertyMappings() |
Collection |
getIProperties(Collection propertyNames_p)
maps the given X classes to their configured I(nternal) peers
|
String |
getIProperty(String xPropertyName_p)
maps the given X classes to their configured I(nternal) peers
|
protected Map |
getPropertyMappings()
map of property names
|
protected Map |
getUsermappings()
get the user mappings from configuration
|
String |
getXClass(String className_p)
maps the given classes to their configured X peers
|
OwClass[] |
getXClasses(OwClass[] classes_p)
maps the given classes to their configured X peers
|
protected Map<String,String> |
getXClassMappings()
map of class names
|
Collection |
getXProperties(Collection propertyNames_p)
map the given property names
|
String |
getXProperty(String name_p)
map the given property name
|
OwSearchNode |
getXSearch(OwSearchNode searchNode_p,
String xRepositoryID_p,
OwNetwork xNetwork_p)
map the given search
|
OwSort |
getXSort(OwSort sort_p)
map the given search
|
void |
mapXObjectCollection(OwObjectCollection objects_p)
replace the objects of the given collection with mapped wrapper objects
|
public OwStandardCrossMappings(OwXMLUtil config_p)
config_p - protected OwXMLUtil getConfigNode()
protected com.wewebu.ow.server.ecm.OwStandardCrossMappings.OwCrossLogin getDefaultlogin()
OwStandardCrossMappings.OwCrossLoginprotected Map getUsermappings()
protected Map getGroupmappings() throws Exception
Exceptionprotected Map getPropertyMappings() throws OwConfigurationException
MapOwConfigurationExceptionpublic Collection getXProperties(Collection propertyNames_p) throws OwConfigurationException
getXProperties in interface OwCrossMappingspropertyNames_p - CollectionOwConfigurationExceptionpublic void doXLogin(OwNetwork xnetwork_p, OwNetwork parentnetwork_p, String parentuser_p, String parentpassword_p) throws OwAuthenticationException, OwServerException
doXLogin in interface OwCrossMappingsxnetwork_p - OwNetwork reference where should be logged in, using the mappingsparentnetwork_p - OwNetwork where to retrieve additional information about the userparentuser_p - String representing the userparentpassword_p - String containing the user passwordOwAuthenticationExceptionOwServerExceptionpublic String getXProperty(String name_p) throws OwConfigurationException
getXProperty in interface OwCrossMappingsname_p - StringOwConfigurationExceptionpublic void mapXObjectCollection(OwObjectCollection objects_p)
mapXObjectCollection in interface OwCrossMappingsobjects_p - public OwSearchNode getXSearch(OwSearchNode searchNode_p, String xRepositoryID_p, OwNetwork xNetwork_p) throws CloneNotSupportedException
getXSearch in interface OwCrossMappingssearchNode_p - OwSearchNodeCloneNotSupportedExceptionpublic OwSort getXSort(OwSort sort_p) throws CloneNotSupportedException, OwConfigurationException
OwCrossMappingsgetXSort in interface OwCrossMappingsOwSearchNodeCloneNotSupportedExceptionOwConfigurationExceptionprotected Map getInternalPropertyMappings() throws OwConfigurationException
OwConfigurationExceptionprotected Map<String,String> getXClassMappings() throws OwConfigurationException
MapOwConfigurationExceptionprotected Map<String,String> getIClassMappings() throws OwConfigurationException
MapOwConfigurationExceptionpublic OwClass[] getXClasses(OwClass[] classes_p) throws OwConfigurationException
OwExtendedCrossMappingsgetXClasses in interface OwExtendedCrossMappingsOwClassOwConfigurationExceptionpublic String getXClass(String className_p) throws OwConfigurationException
OwExtendedCrossMappingsgetXClass in interface OwExtendedCrossMappingsOwConfigurationExceptionpublic String getIClass(String className_p) throws OwConfigurationException
OwExtendedCrossMappingsgetIClass in interface OwExtendedCrossMappingsOwConfigurationExceptionpublic Collection getIProperties(Collection propertyNames_p) throws OwConfigurationException
getIProperties in interface OwExtendedCrossMappingspropertyNames_p - CollectionOwConfigurationExceptionpublic String getIProperty(String xPropertyName_p) throws OwConfigurationException
getIProperty in interface OwExtendedCrossMappingsxPropertyName_p - StringOwConfigurationExceptionpublic Object convert(Object value_p, OwFieldDefinition from_p, OwFieldDefinition to_p) throws OwException
convert in interface OwCrossMappingsOwExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.