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.StringALIASThe 'alais' elementstatic java.lang.StringASSOCIATIONThe 'association' element.static java.lang.StringASSOCIATIONSThe 'associations' element.static java.lang.StringCORRELATION_IDThe 'correlation-id' attribute.static java.lang.StringOBJECTThe 'object' element.static java.lang.StringPREDICATEThe 'predicate' element.static java.lang.StringPRINCIPALThe 'principal' element.static java.lang.StringPRINCIPAL_IDThe 'principal-id' attribute.static java.lang.StringPRINCIPAL_ID_DATAThe 'principal-id-data' attribute.static java.lang.StringPRINCIPAL_NAMEThe 'principal-name' attribute.static java.lang.StringPRINCIPAL_TYPEThe 'principal-type' attribute.static java.lang.StringPROPERTIESThe 'properties' elementstatic java.lang.StringPROPERTYThe property elementstatic java.lang.StringPROPERTY_KEYproperty key attributestatic java.lang.StringPROPERTY_VALUEproperty value attribute (and element for multivalue)static java.lang.StringREALM_IDThe 'realm-id' attribute.static java.lang.StringSUBJECTThe '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 booleancanConvert(java.lang.Class type)voidmarshal(java.lang.Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)AttivioPrincipalunmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)protected static voidunmarshalAssociations(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, AttivioPrincipal principal)protected static voidunmarshalProperties(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)
-
-