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.OwCrossLogin
protected Map getUsermappings()
protected Map getGroupmappings() throws Exception
Exception
protected Map getPropertyMappings() throws OwConfigurationException
Map
OwConfigurationException
public Collection getXProperties(Collection propertyNames_p) throws OwConfigurationException
getXProperties
in interface OwCrossMappings
propertyNames_p
- Collection
OwConfigurationException
public void doXLogin(OwNetwork xnetwork_p, OwNetwork parentnetwork_p, String parentuser_p, String parentpassword_p) throws OwAuthenticationException, OwServerException
doXLogin
in interface OwCrossMappings
xnetwork_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 passwordOwAuthenticationException
OwServerException
public String getXProperty(String name_p) throws OwConfigurationException
getXProperty
in interface OwCrossMappings
name_p
- String
OwConfigurationException
public void mapXObjectCollection(OwObjectCollection objects_p)
mapXObjectCollection
in interface OwCrossMappings
objects_p
- public OwSearchNode getXSearch(OwSearchNode searchNode_p, String xRepositoryID_p, OwNetwork xNetwork_p) throws CloneNotSupportedException
getXSearch
in interface OwCrossMappings
searchNode_p
- OwSearchNode
CloneNotSupportedException
public OwSort getXSort(OwSort sort_p) throws CloneNotSupportedException, OwConfigurationException
OwCrossMappings
getXSort
in interface OwCrossMappings
OwSearchNode
CloneNotSupportedException
OwConfigurationException
protected Map getInternalPropertyMappings() throws OwConfigurationException
OwConfigurationException
protected Map<String,String> getXClassMappings() throws OwConfigurationException
Map
OwConfigurationException
protected Map<String,String> getIClassMappings() throws OwConfigurationException
Map
OwConfigurationException
public OwClass[] getXClasses(OwClass[] classes_p) throws OwConfigurationException
OwExtendedCrossMappings
getXClasses
in interface OwExtendedCrossMappings
OwClass
OwConfigurationException
public String getXClass(String className_p) throws OwConfigurationException
OwExtendedCrossMappings
getXClass
in interface OwExtendedCrossMappings
OwConfigurationException
public String getIClass(String className_p) throws OwConfigurationException
OwExtendedCrossMappings
getIClass
in interface OwExtendedCrossMappings
OwConfigurationException
public Collection getIProperties(Collection propertyNames_p) throws OwConfigurationException
getIProperties
in interface OwExtendedCrossMappings
propertyNames_p
- Collection
OwConfigurationException
public String getIProperty(String xPropertyName_p) throws OwConfigurationException
getIProperty
in interface OwExtendedCrossMappings
xPropertyName_p
- String
OwConfigurationException
public Object convert(Object value_p, OwFieldDefinition from_p, OwFieldDefinition to_p) throws OwException
convert
in interface OwCrossMappings
OwException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.