|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.privilege.PrivilegeDefinitionReader
public class PrivilegeDefinitionReader
Reads privilege definitions for the specified InputStream. Note,
that this reader will not apply any validation.
| Constructor Summary | |
|---|---|
PrivilegeDefinitionReader(InputStream in,
String contentType)
Creates a new PrivilegeDefinitionReader for the given
input stream. |
|
PrivilegeDefinitionReader(Reader reader,
String contentType)
Creates a new PrivilegeDefinitionReader for the given
input stream. |
|
| Method Summary | |
|---|---|
Map<String,String> |
getNamespaces()
Returns the namespace mappings such as retrieved during parsing. |
org.apache.jackrabbit.spi.PrivilegeDefinition[] |
getPrivilegeDefinitions()
Returns the privilege definitions retrieved from the input stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrivilegeDefinitionReader(InputStream in,
String contentType)
throws ParseException
PrivilegeDefinitionReader for the given
input stream. The specified content type is used in order to determine
the type of privilege serialization.
in - The input stream to read the privilege definitions from.contentType - Currently only types supported by
PrivilegeXmlHandler#isSupportedContentType(String)PrivilegeXmlHandler
are allowed.
ParseException - If an error occurs.
IllegalArgumentException - if the specified content type is not supported.
public PrivilegeDefinitionReader(Reader reader,
String contentType)
throws ParseException
PrivilegeDefinitionReader for the given
input stream. The specified content type is used in order to determine
the type of privilege serialization.
reader - The reader to read the privilege definitions from.contentType - Currently only types supported by
PrivilegeXmlHandler#isSupportedContentType(String)PrivilegeXmlHandler
are allowed.
ParseException - If an error occurs.
IllegalArgumentException - if the specified content type is not supported.| Method Detail |
|---|
public org.apache.jackrabbit.spi.PrivilegeDefinition[] getPrivilegeDefinitions()
PrivilegeDefinitionpublic Map<String,String> getNamespaces()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||