このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Interface XAccessController
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: 安全 ::

interface XAccessController
Description
Interface for checking 許可s and invoking 特権d or 制限するd 活動/戦闘s.
Since
OOo 1.1.2

Methods' 要約
checkPermission 決定するs whether the 接近 request 示すd by the 明示するd 許可 should be 許すd or 否定するd, based on the 安全 政策 現在/一般に in 影響. The semantics are 同等(の) to the 安全 許可 classes of the Java 壇・綱領・公約.  
doRestricted 成し遂げる the 明示するd 活動/戦闘 制限するing 許可s to the given XAccessControlContext. The 活動/戦闘 is 成し遂げるd with the 交差点 of the 許可s of the 現在/一般に 任命する/導入するd XAccessControlContext, the given XAccessControlContext and the 安全 政策 現在/一般に in 影響. The latter 含むs static 安全, e.g. based on 使用者 信任状.  
doPrivileged 成し遂げる the 明示するd 活動/戦闘 追加するing a 始める,決める of 許可s defined by the given XAccessControlContext. The 活動/戦闘 is 成し遂げるd with the union of the 許可s of the 現在/一般に 任命する/導入するd XAccessControlContext, the given XAccessControlContext and the 安全 政策 現在/一般に in 影響. The latter 含むs static 安全, e.g. based on 使用者 信任状.  
getContext This method takes a "snapshot" of the 現在の calling 状況 and returns it.  
Methods' 詳細(に述べる)s
checkPermission
無効の
checkPermission( [in] any  perm )
raises( AccessControlException );

Description
決定するs whether the 接近 request 示すd by the 明示するd 許可 should be 許すd or 否定するd, based on the 安全 政策 現在/一般に in 影響. The semantics are 同等(の) to the 安全 許可 classes of the Java 壇・綱領・公約.

You can also pass a sequence of 許可s (sequence< any >) to check a 始める,決める of 許可s, e.g. for 業績/成果 推論する/理由s. This method 静かに returns if the 接近 request is permitted, or throws a suitable AccessControlException さもなければ.

Parameter perm
許可 to be checked
Throws
AccessControlException thrown if 接近 is 否定するd
See also
AccessControlException, AllPermission, RuntimePermission, ::com::sun::星/主役にする::io::FilePermission, ::com::sun::星/主役にする::関係::SocketPermission
doRestricted
any
doRestricted( [in] XAction  活動/戦闘,
[in] XAccessControlContext  制限 )
raises( ::com::sun::星/主役にする::uno::Exception );

Description
成し遂げる the 明示するd 活動/戦闘 制限するing 許可s to the given XAccessControlContext. The 活動/戦闘 is 成し遂げるd with the 交差点 of the 許可s of the 現在/一般に 任命する/導入するd XAccessControlContext, the given XAccessControlContext and the 安全 政策 現在/一般に in 影響. The latter 含むs static 安全, e.g. based on 使用者 信任状.

If the 明示するd XAccessControlContext is null, then the 活動/戦闘 is 成し遂げるd with unmodified 許可s, i.e. the call makes no sense.

Parameter 活動/戦闘
活動/戦闘 反対する to be 遂行する/発効させるd
Parameter 制限
接近 支配(する)/統制する 状況 to 制限する 許可; null for no 制限
Returns
result
Throws
com::sun::星/主役にする::uno::Exception any UNO exception may be thrown
doPrivileged
any
doPrivileged( [in] XAction  活動/戦闘,
[in] XAccessControlContext  制限 )
raises( ::com::sun::星/主役にする::uno::Exception );

Description
成し遂げる the 明示するd 活動/戦闘 追加するing a 始める,決める of 許可s defined by the given XAccessControlContext. The 活動/戦闘 is 成し遂げるd with the union of the 許可s of the 現在/一般に 任命する/導入するd XAccessControlContext, the given XAccessControlContext and the 安全 政策 現在/一般に in 影響. The latter 含むs static 安全, e.g. based on 使用者 信任状.

If the given XAccessControlContext is null, then the 活動/戦闘 is 成し遂げるd only with the 許可s of the 安全 政策 現在/一般に in 影響.

@attention Do carefully use this method only for 井戸/弁護士席 known use-事例/患者s to 避ける 偉業/利用するs! Script engines 遂行する/発効させるing sandboxed scripts should 一般に 否定する calling this method.
Parameter 活動/戦闘
活動/戦闘 反対する to be 遂行する/発効させるd
Parameter 制限
接近 支配(する)/統制する 状況 to 制限する 許可; null for no 制限
Returns
result
Throws
com::sun::星/主役にする::uno::Exception any UNO exception may be thrown
getContext
XAccessControlContext
getContext();

Description
This method takes a "snapshot" of the 現在の calling 状況 and returns it.

This 状況 may then be checked at a later point, かもしれない in another thread.

Returns
snapshot of 状況
最高の,を越す of Page

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.