Class AttivioPrincipalConverter
- java.lang.Object
-
- com.attivio.util.serialization.AbstractConverter
-
- com.attivio.util.serialization.security.AttivioPrincipalConverter
-
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter
,com.thoughtworks.xstream.converters.ConverterMatcher
public class AttivioPrincipalConverter extends AbstractConverter
XStream serializer forAttivioPrincipal
.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ALIAS
The 'alais' elementstatic java.lang.String
ASSOCIATION
The 'association' element.static java.lang.String
ASSOCIATIONS
The 'associations' element.static java.lang.String
CORRELATION_ID
The 'correlation-id' attribute.static java.lang.String
OBJECT
The 'object' element.static java.lang.String
PREDICATE
The 'predicate' element.static java.lang.String
PRINCIPAL
The 'principal' element.static java.lang.String
PRINCIPAL_ID
The 'principal-id' attribute.static java.lang.String
PRINCIPAL_ID_DATA
The 'principal-id-data' attribute.static java.lang.String
PRINCIPAL_NAME
The 'principal-name' attribute.static java.lang.String
PRINCIPAL_TYPE
The 'principal-type' attribute.static java.lang.String
PROPERTIES
The 'properties' elementstatic java.lang.String
PROPERTY
The property elementstatic java.lang.String
PROPERTY_KEY
property key attributestatic java.lang.String
PROPERTY_VALUE
property value attribute (and element for multivalue)static java.lang.String
REALM_ID
The 'realm-id' attribute.static java.lang.String
SUBJECT
The 'subject' element.-
Fields inherited from class com.attivio.util.serialization.AbstractConverter
mapper, NULL
-
-
Constructor Summary
Constructors Constructor Description AttivioPrincipalConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canConvert(java.lang.Class type)
void
marshal(java.lang.Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
AttivioPrincipal
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
protected static void
unmarshalAssociations(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, AttivioPrincipal principal)
protected static void
unmarshalProperties(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, AttivioPrincipal principal)
-
Methods inherited from class com.attivio.util.serialization.AbstractConverter
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, getAlias, getAlias, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getClass, getClass, getClassName, marshalArray, marshalArray, marshalArray2D, marshalIntArray, marshalIntArray, marshalList, marshalNode, marshalNode, marshalProperties, marshalProperties, readList, readSubObject, readThrowable, setMapper, unmarshalArray, unmarshalArray2D, unmarshalIntArray, unmarshalList, unmarshalNode, unmarshalNode, unmarshalNode, unmarshalNode, unmarshalProperties, unmarshalProperty, unmarshalPropertyName, unmarshalPropertyValue, writeSubObject, writeSubObject, writeThrowable
-
-
-
-
Field Detail
-
PRINCIPAL
public static final java.lang.String PRINCIPAL
The 'principal' element.- See Also:
- Constant Field Values
-
REALM_ID
public static final java.lang.String REALM_ID
The 'realm-id' attribute.- See Also:
- Constant Field Values
-
PRINCIPAL_ID
public static final java.lang.String PRINCIPAL_ID
The 'principal-id' attribute.- See Also:
- Constant Field Values
-
PRINCIPAL_ID_DATA
public static final java.lang.String PRINCIPAL_ID_DATA
The 'principal-id-data' attribute.- See Also:
- Constant Field Values
-
PRINCIPAL_NAME
public static final java.lang.String PRINCIPAL_NAME
The 'principal-name' attribute.- See Also:
- Constant Field Values
-
PRINCIPAL_TYPE
public static final java.lang.String PRINCIPAL_TYPE
The 'principal-type' attribute.- See Also:
- Constant Field Values
-
CORRELATION_ID
public static final java.lang.String CORRELATION_ID
The 'correlation-id' attribute.- See Also:
- Constant Field Values
-
ASSOCIATIONS
public static final java.lang.String ASSOCIATIONS
The 'associations' element.- See Also:
- Constant Field Values
-
ASSOCIATION
public static final java.lang.String ASSOCIATION
The 'association' element.- See Also:
- Constant Field Values
-
ALIAS
public static final java.lang.String ALIAS
The 'alais' element- See Also:
- Constant Field Values
-
SUBJECT
public static final java.lang.String SUBJECT
The 'subject' element.- See Also:
- Constant Field Values
-
PREDICATE
public static final java.lang.String PREDICATE
The 'predicate' element.- See Also:
- Constant Field Values
-
OBJECT
public static final java.lang.String OBJECT
The 'object' element.- See Also:
- Constant Field Values
-
PROPERTIES
public static final java.lang.String PROPERTIES
The 'properties' element- See Also:
- Constant Field Values
-
PROPERTY
public static final java.lang.String PROPERTY
The property element- See Also:
- Constant Field Values
-
PROPERTY_KEY
public static final java.lang.String PROPERTY_KEY
property key attribute- See Also:
- Constant Field Values
-
PROPERTY_VALUE
public static final java.lang.String PROPERTY_VALUE
property value attribute (and element for multivalue)- See Also:
- Constant Field Values
-
-
Method Detail
-
marshal
public void marshal(java.lang.Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
-
unmarshal
public AttivioPrincipal unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
-
unmarshalAssociations
protected static void unmarshalAssociations(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, AttivioPrincipal principal)
-
unmarshalProperties
protected static void unmarshalProperties(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, AttivioPrincipal principal)
-
canConvert
public boolean canConvert(java.lang.Class type)
-
-