Name

rights, authorisation.rights, kPMRPCAuthorisationRights, kPMObserveAuthorisationRights — Defined rights.

Synopsis

array of authorisation right structures authorisation.rights( );

Description

Defined rights.

Returns

rights is an array of authorisation right structures. Each item in rights must be unique.

Observable

Changes to rights can be observed, without polling, using authorisation.rights, kPMObserveAuthorisationRights.

Security

rights can be requested by any authenticated client.

Unauthenticated clients are authorized using the uk.co.dssw.powermanager.authorisation.rights right. By default, any local process can request rights.

Availablility

pmdctl

Examples

Example 18. C: authorisation.rights

CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault,kPMRPCAuthorisationRights);


Example 19. Objective-C: authorisation.rights

DSSWPMRequest* myRequest = [DSSWPMRequest requestWithRequest:kPMRPCAuthorisationRights];


Example 20. AppleScript: authorisation.rights

tell application "Power Manager Scripting"
    set myResult to rights of Authorisation
end tell


Example 21. Shell: authorisation.rights

./pmctl authorisation.rights