SchemaVisibilityConfig


public final class SchemaVisibilityConfig


A class to hold a all necessary Visibility information corresponding to the same schema. This pattern allows for easier association of these documents.

This does not correspond to any schema, the properties held in this class are kept in two separate schemas, VisibilityConfig and PublicAclOverlay.

Summary

Nested types

The builder class of SchemaVisibilityConfig.

Public methods

boolean
@NonNull List<PackageIdentifier>

Returns a list of PackageIdentifiers of packages that can access this schema.

@Nullable PackageIdentifier

Returns the PackageIdentifier of the package that will be used as the target package in a call to canPackageQuery to determine which packages can access this publicly visible schema.

@NonNull Set<Set<Integer>>

Returns an array of Integers representing Android Permissions that the caller must hold to access the schema this SchemaVisibilityConfig represents.

int

Public methods

equals

public boolean equals(@Nullable Object o)

getAllowedPackages

Added in 1.1.0-alpha06
public @NonNull List<PackageIdentifiergetAllowedPackages()

Returns a list of PackageIdentifiers of packages that can access this schema.

getPubliclyVisibleTargetPackage

Added in 1.1.0-alpha06
public @Nullable PackageIdentifier getPubliclyVisibleTargetPackage()

Returns the PackageIdentifier of the package that will be used as the target package in a call to canPackageQuery to determine which packages can access this publicly visible schema. Returns null if the schema is not publicly visible.

getRequiredPermissions

Added in 1.1.0-alpha06
public @NonNull Set<Set<Integer>> getRequiredPermissions()

Returns an array of Integers representing Android Permissions that the caller must hold to access the schema this SchemaVisibilityConfig represents.

hashCode

public int hashCode()