Class MacOSPrivacyAccessControlItem.Builder

    • Method Detail

      • accessibility

        public MacOSPrivacyAccessControlItem.Builder accessibility​(Enablement accessibility)
        “Allow the app or process to control the Mac via the Accessibility subsystem.”
        Parameters:
        accessibility - value of accessibility property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • addressBook

        public MacOSPrivacyAccessControlItem.Builder addressBook​(Enablement addressBook)
        “Allow or block access to contact information managed by Contacts.”
        Parameters:
        addressBook - value of addressBook property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • appleEventsAllowedReceivers

        public MacOSPrivacyAccessControlItem.Builder appleEventsAllowedReceivers​(List<MacOSAppleEventReceiver> appleEventsAllowedReceivers)
        “Allow or deny the app or process to send a restricted Apple event to another app or process. You will need to know the identifier, identifier type, and code requirement of the receiving app or process. This collection can contain a maximum of 500 elements.”
        Parameters:
        appleEventsAllowedReceivers - value of appleEventsAllowedReceivers property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • appleEventsAllowedReceivers

        public MacOSPrivacyAccessControlItem.Builder appleEventsAllowedReceivers​(MacOSAppleEventReceiver... appleEventsAllowedReceivers)
        “Allow or deny the app or process to send a restricted Apple event to another app or process. You will need to know the identifier, identifier type, and code requirement of the receiving app or process. This collection can contain a maximum of 500 elements.”
        Parameters:
        appleEventsAllowedReceivers - value of appleEventsAllowedReceivers property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • appleEventsAllowedReceiversNextLink

        public MacOSPrivacyAccessControlItem.Builder appleEventsAllowedReceiversNextLink​(String appleEventsAllowedReceiversNextLink)
        “Allow or deny the app or process to send a restricted Apple event to another app or process. You will need to know the identifier, identifier type, and code requirement of the receiving app or process. This collection can contain a maximum of 500 elements.”
        Parameters:
        appleEventsAllowedReceiversNextLink - value of appleEventsAllowedReceivers@nextLink property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • blockCamera

        public MacOSPrivacyAccessControlItem.Builder blockCamera​(Boolean blockCamera)
        “Block access to camera app.”
        Parameters:
        blockCamera - value of blockCamera property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • blockListenEvent

        public MacOSPrivacyAccessControlItem.Builder blockListenEvent​(Boolean blockListenEvent)
        “Block the app or process from listening to events from input devices such as mouse, keyboard, and trackpad.Requires macOS 10.15 or later.”
        Parameters:
        blockListenEvent - value of blockListenEvent property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • blockMicrophone

        public MacOSPrivacyAccessControlItem.Builder blockMicrophone​(Boolean blockMicrophone)
        “Block access to microphone.”
        Parameters:
        blockMicrophone - value of blockMicrophone property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • blockScreenCapture

        public MacOSPrivacyAccessControlItem.Builder blockScreenCapture​(Boolean blockScreenCapture)
        “Block app from capturing contents of system display. Requires macOS 10.15 or later.”
        Parameters:
        blockScreenCapture - value of blockScreenCapture property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • calendar

        public MacOSPrivacyAccessControlItem.Builder calendar​(Enablement calendar)
        “Allow or block access to event information managed by Calendar.”
        Parameters:
        calendar - value of calendar property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • codeRequirement

        public MacOSPrivacyAccessControlItem.Builder codeRequirement​(String codeRequirement)
        “Enter the code requirement, which can be obtained with the command 'codesign –display -r –' in the Terminal app. Include everything after '=&gt;'.”
        Parameters:
        codeRequirement - value of codeRequirement property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • displayName

        public MacOSPrivacyAccessControlItem.Builder displayName​(String displayName)
        “The display name of the app, process, or executable.”
        Parameters:
        displayName - value of displayName property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • fileProviderPresence

        public MacOSPrivacyAccessControlItem.Builder fileProviderPresence​(Enablement fileProviderPresence)
        “Allow the app or process to access files managed by another app’s file provider extension. Requires macOS 10.15 or later.”
        Parameters:
        fileProviderPresence - value of fileProviderPresence property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • identifier

        public MacOSPrivacyAccessControlItem.Builder identifier​(String identifier)
        “The bundle ID or path of the app, process, or executable.”
        Parameters:
        identifier - value of identifier property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • identifierType

        public MacOSPrivacyAccessControlItem.Builder identifierType​(MacOSProcessIdentifierType identifierType)
        “A bundle ID is used to identify an app. A path is used to identify a process or executable.”
        Parameters:
        identifierType - value of identifierType property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • mediaLibrary

        public MacOSPrivacyAccessControlItem.Builder mediaLibrary​(Enablement mediaLibrary)
        “Allow or block access to music and the media library.”
        Parameters:
        mediaLibrary - value of mediaLibrary property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • photos

        public MacOSPrivacyAccessControlItem.Builder photos​(Enablement photos)
        “Allow or block access to images managed by Photos.”
        Parameters:
        photos - value of photos property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • postEvent

        public MacOSPrivacyAccessControlItem.Builder postEvent​(Enablement postEvent)
        “Control access to CoreGraphics APIs, which are used to send CGEvents to the system event stream.”
        Parameters:
        postEvent - value of postEvent property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • reminders

        public MacOSPrivacyAccessControlItem.Builder reminders​(Enablement reminders)
        “Allow or block access to information managed by Reminders.”
        Parameters:
        reminders - value of reminders property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • speechRecognition

        public MacOSPrivacyAccessControlItem.Builder speechRecognition​(Enablement speechRecognition)
        “Allow or block access to system speech recognition facility.”
        Parameters:
        speechRecognition - value of speechRecognition property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • staticCodeValidation

        public MacOSPrivacyAccessControlItem.Builder staticCodeValidation​(Boolean staticCodeValidation)
        “Statically validates the code requirement. Use this setting if the process invalidates its dynamic code signature.”
        Parameters:
        staticCodeValidation - value of staticCodeValidation property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • systemPolicyAllFiles

        public MacOSPrivacyAccessControlItem.Builder systemPolicyAllFiles​(Enablement systemPolicyAllFiles)
        “Control access to all protected files on a device. Files might be in locations such as emails, messages, apps, and administrative settings. Apply this setting with caution.”
        Parameters:
        systemPolicyAllFiles - value of systemPolicyAllFiles property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • systemPolicyDesktopFolder

        public MacOSPrivacyAccessControlItem.Builder systemPolicyDesktopFolder​(Enablement systemPolicyDesktopFolder)
        “Allow or block access to Desktop folder.”
        Parameters:
        systemPolicyDesktopFolder - value of systemPolicyDesktopFolder property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • systemPolicyDocumentsFolder

        public MacOSPrivacyAccessControlItem.Builder systemPolicyDocumentsFolder​(Enablement systemPolicyDocumentsFolder)
        “Allow or block access to Documents folder.”
        Parameters:
        systemPolicyDocumentsFolder - value of systemPolicyDocumentsFolder property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • systemPolicyDownloadsFolder

        public MacOSPrivacyAccessControlItem.Builder systemPolicyDownloadsFolder​(Enablement systemPolicyDownloadsFolder)
        “Allow or block access to Downloads folder.”
        Parameters:
        systemPolicyDownloadsFolder - value of systemPolicyDownloadsFolder property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • systemPolicyNetworkVolumes

        public MacOSPrivacyAccessControlItem.Builder systemPolicyNetworkVolumes​(Enablement systemPolicyNetworkVolumes)
        “Allow or block access to network volumes. Requires macOS 10.15 or later.”
        Parameters:
        systemPolicyNetworkVolumes - value of systemPolicyNetworkVolumes property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • systemPolicyRemovableVolumes

        public MacOSPrivacyAccessControlItem.Builder systemPolicyRemovableVolumes​(Enablement systemPolicyRemovableVolumes)
        “Control access to removable volumes on the device, such as an external hard drive. Requires macOS 10.15 or later.”
        Parameters:
        systemPolicyRemovableVolumes - value of systemPolicyRemovableVolumes property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • systemPolicySystemAdminFiles

        public MacOSPrivacyAccessControlItem.Builder systemPolicySystemAdminFiles​(Enablement systemPolicySystemAdminFiles)
        “Allow app or process to access files used in system administration.”
        Parameters:
        systemPolicySystemAdminFiles - value of systemPolicySystemAdminFiles property (as defined in service metadata)
        Returns:
        this (for method chaining)