Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

:: drafts :: com :: sun :: star :: script :: framework :: security ::

interface XScriptSecurity
Base Hierarchy
::com::sun::star::uno::XInterface
 |
 +-XScriptSecurity
Description
This interface provides a means of determining whether a requested type of access (eg. read, execute) to a given script is allowed or denied.

Methods' Summary
checkPermission Determines whether permission is allowed for a given action on a given script. Returns silently if permission is granted, throws an ::com::sun::star::security::AccessControlException if permission is denied.
Methods' Details
checkPermission
void
checkPermission(
 
[in] string
[in] string 

raises(

 
docURI,
permissionRequested ) 
::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::security::AccessControlException );

Description
Determines whether permission is allowed for a given action on a given script. Returns silently if permission is granted, throws an ::com::sun::star::security::AccessControlException if permission is denied.
Parameter docURI
a URI for the script storage
Parameter permissionRequested
a string describing the type of permission being requested, eg. "execute", "read".
Throws
::com::sun::star::lang::IllegalArgumentException if there is no matching script name, if the permissionRequested is not recognised
Throws
::com::sun::star::security::AccessControlException if the permission requested is not granted
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.