public class PermissionsXMLParser extends Object
permissions.xml
packaged in an EAR or in a standalone module.
This class is primarily used via PermissionsXMLLoader
.
Modifier and Type | Field and Description |
---|---|
protected XMLStreamReader |
parser |
protected static String |
PERMISSIONS_XML |
protected static String |
RESTRICTED_PERMISSIONS_XML |
Constructor and Description |
---|
PermissionsXMLParser(File permissionsXmlFile,
PermissionCollection permissionCollectionToBeRestricted) |
PermissionsXMLParser(InputStream input,
PermissionCollection permissionCollectionToBeRestricted) |
Modifier and Type | Method and Description |
---|---|
PermissionCollection |
getPermissions()
Returns the permissions that have been loaded and parsed from the
File or Stream
given in the constructor of this class. |
protected static final String PERMISSIONS_XML
protected static final String RESTRICTED_PERMISSIONS_XML
protected XMLStreamReader parser
public PermissionsXMLParser(File permissionsXmlFile, PermissionCollection permissionCollectionToBeRestricted) throws XMLStreamException, FileNotFoundException
public PermissionsXMLParser(InputStream input, PermissionCollection permissionCollectionToBeRestricted) throws XMLStreamException, FileNotFoundException
public PermissionCollection getPermissions()
File
or Stream
given in the constructor of this class.Copyright © 2021. All rights reserved.