interface XAccessControlContext in module com::sun::star::security::

(Global Index)

Syntax

interface XAccessControlContext : com::sun::star::uno::XInterface ;

Description

WARNING: this is just a draft and may be changed!

An XAccessControlContext is used to make system resource access decisions based on the context it encapsulates.

More specifically, it encapsulates a context and has methods to check permissions equivalent to XAccessController interface, with one difference: The XAccessControlContext makes access decisions based on the context it encapsulates, rather than that of the current execution thread.

Method Summary

checkPermission Determines whether the access request indicated by the specified permission should be allowed or denied, based on this context.

Method Details



checkPermission

Syntax

void checkPermission (
com::sun::star::security::Permission perm )
raises ( com::sun::star::security::AccessControlException );

Description

Determines whether the access request indicated by the specified permission should be allowed or denied, based on this context.

This method quietly returns if the access request is permitted, or throws a suitable AccessControlException otherwise.

Parameter perm

access permission to be checked

Throws

AccessControlException thrown if access is denied
Top of Page