public class SecurityMapper extends MapperWrapper
Mapper.ImplicitCollectionMapping, Mapper.Null
Constructor and Description |
---|
SecurityMapper(Mapper wrapped)
Construct a SecurityMapper.
|
SecurityMapper(Mapper wrapped,
TypePermission[] permissions)
Construct a SecurityMapper.
|
Modifier and Type | Method and Description |
---|---|
void |
addPermission(TypePermission permission)
Add a new permission.
|
Class |
realClass(String elementName)
How a serialized class representation should be mapped back to a real class.
|
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isImmutableValueType, isReferenceable, lookupMapperOfType, realMember, serializedClass, serializedMember, shouldSerializeMember
public SecurityMapper(Mapper wrapped)
wrapped
- the mapper chainpublic SecurityMapper(Mapper wrapped, TypePermission[] permissions)
wrapped
- the mapper chainpermissions
- the predefined permissionspublic void addPermission(TypePermission permission)
Permissions are evaluated in the added sequence. An instance of NoTypePermission
or
AnyTypePermission
will implicitly wipe any existing permission.
permission
- the permission to add.Copyright © 2004–2016 XStream. All rights reserved.