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.
|
java.lang.Class |
realClass(java.lang.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, isIgnoredElement, 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.public java.lang.Class realClass(java.lang.String elementName)
Mapper
realClass
in interface Mapper
realClass
in class MapperWrapper
Copyright © 2004–2024 XStream. All rights reserved.