public class SpiConstants
extends java.lang.Object
All constants whose names begin with PROPNAME are reserved names for properties that may be accessed from a Document returned as a query result. The actual values of these property name constants all begin with "google:". For future compatibility, all property names beginning with "google:" are reserved.
Modifier and Type | Class and Description |
---|---|
static class |
SpiConstants.AclAccess
Enum for the list of possible ACL access values.
|
static class |
SpiConstants.AclInheritanceType
Enum for the list of possible inheritance types.
|
static class |
SpiConstants.AclScope
Enum for the list of possible ACL scope values.
|
static class |
SpiConstants.ActionType
Enum for action types.
|
static class |
SpiConstants.CaseSensitivityType
Enum for the possible case sensitivity rules.
|
static class |
SpiConstants.ContentEncoding
Enum for feed content encoding.
|
static class |
SpiConstants.DatabaseType
This enumeration identifies databases.
|
static class |
SpiConstants.DocumentType
Enum for the list of possible document types.
|
static class |
SpiConstants.FeedType
Enum for the list of possible feed types.
|
static class |
SpiConstants.PrincipalType
Enum for the types of Principals.
|
static class |
SpiConstants.RoleType
Deprecated.
Roles are ignored by the Google Search Appliance.
Support for roles should be removed from connectors, as this
feature will be removed from a future release of Connector
Manager.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACL_PROPNAME_PREFIX
The prefix for the ACL property names.
|
static java.lang.String |
DEFAULT_MIMETYPE
The mime type that the connector manager uses as a default, if a
document does not specify.
|
static java.lang.String |
DEFAULT_USERPROFILE_COLLECTION
Name of the default user profile collection.
|
static java.lang.String |
GROUP_ROLES_PROPNAME_PREFIX
Deprecated.
Roles are ignored by the Google Search Appliance.
Support for roles should be removed from connectors, as this
feature will be removed from a future release of Connector
Manager.
|
static java.util.Map<java.lang.String,java.lang.String> |
PERSISTABLE_ATTRIBUTES
Deprecated.
The per-document store has never been publicly implemented
|
static java.lang.String |
PROPNAME_ACLDENYGROUPS
Identifies a multiple-valued String property that gives the list of
groups that are denied access to this document.
|
static java.lang.String |
PROPNAME_ACLDENYUSERS
Identifies a multiple-valued String property that gives the list of
users that are denied access to this document.
|
static java.lang.String |
PROPNAME_ACLGROUPS
Identifies a multiple-valued String property that gives the list of group
ACL Scope IDs that are permitted
access to this document.
|
static java.lang.String |
PROPNAME_ACLINHERITANCETYPE
Identifies a single-valued InheritanceType property.
|
static java.lang.String |
PROPNAME_ACLINHERITFROM
Identifies a single-valued String property.
|
static java.lang.String |
PROPNAME_ACLINHERITFROM_DOCID
Identifies a single-valued String property.
|
static java.lang.String |
PROPNAME_ACLINHERITFROM_FEEDTYPE
Identifies a single-valued String property.
|
static java.lang.String |
PROPNAME_ACLINHERITFROM_FRAGMENT
Identifies a single-valued String property.
|
static java.lang.String |
PROPNAME_ACLUSERS
Identifies a multiple-valued String property that gives the list of
users that are permitted access to this document.
|
static java.lang.String |
PROPNAME_ACTION
Identifies an optional, single-valued property that specifies the action
associated with the document.
|
static java.lang.String |
PROPNAME_AUTHMETHOD
Identifies an optional, single-valued string property that specifies
the authmethod of the document.
|
static java.lang.String |
PROPNAME_CONNECTOR_INSTANCE
Deprecated.
The per-document store has never been publicly implemented
|
static java.lang.String |
PROPNAME_CONNECTOR_TYPE
Deprecated.
The per-document store has never been publicly implemented
|
static java.lang.String |
PROPNAME_CONTAINER
Deprecated.
The per-document store has never been publicly implemented
|
static java.lang.String |
PROPNAME_CONTENT
Identifies a single-valued property that may be either string or
binary and gives direct access to the primary content to be indexed.
|
static java.lang.String |
PROPNAME_CONTENT_ENCODING
Optional, single-valued property to specify the existing encoding of the
supplied content, rather than letting the Connector Manager choose an
encoding to apply to the supplied content.
|
static java.lang.String |
PROPNAME_CONTENT_LENGTH
Optional, single-valued property to specify the length, in bytes, of the
supplied content.
|
static java.lang.String |
PROPNAME_CONTENTURL
Deprecated.
This property is unused.
|
static java.lang.String |
PROPNAME_CRAWL_IMMEDIATELY
Optional, single-valued property to specify the crawl immediately property
of the record element.
|
static java.lang.String |
PROPNAME_CRAWL_ONCE
Optional, single-valued property to specify the crawl once property
of the record element.
|
static java.lang.String |
PROPNAME_DISPLAYURL
Identifies an optional, single-valued property that gives a URL that
should be used in a results page as the primary user reference for a
document.
|
static java.lang.String |
PROPNAME_DOCID
Identifies a single-valued, string property that uniquely identifies a
document to this connector.
|
static java.lang.String |
PROPNAME_DOCUMENTTYPE
Identifies a single-valued
SpiConstants.DocumentType property that,
if present, will be used to determine the object type for this
document. |
static java.lang.String |
PROPNAME_FEEDID
Deprecated.
This property is unused.
|
static java.lang.String |
PROPNAME_FEEDTYPE
Identifies a single-valued FeedType property that, if present, will be
used to determine the feed type for this document.
|
static java.lang.String |
PROPNAME_FOLDER
Identifies an optional, multi-valued property that specifies the
folder path of the document.
|
static java.lang.String |
PROPNAME_FRAGMENT
Identifies a single-valued String property.
|
static java.lang.String |
PROPNAME_ISPUBLIC
Unless this property is present and is
false , then the document
will be marked as public. |
static java.lang.String |
PROPNAME_LASTMODIFIED
Identifies a single-valued, date property that gives the last modified
date of a document.
|
static java.lang.String |
PROPNAME_LOCK
Identifies an optional, single-valued boolean property that specifies
whether the document should be locked, to prevent it from being evicted
if the GSA reaches its license limit.
|
static java.lang.String |
PROPNAME_MANAGER_SHOULD_PERSIST
Deprecated.
The per-document store has never been publicly implemented
|
static java.lang.String |
PROPNAME_MESSAGE
Deprecated.
The per-document store has never been publicly implemented
|
static java.lang.String |
PROPNAME_MIMETYPE
Identifies an single-valued String property that gives the mime type
for the content of this document.
|
static java.lang.String |
PROPNAME_OVERWRITEACLS
Identifies a single-valued Boolean property.
|
static java.lang.String |
PROPNAME_PAGERANK
Identifies an optional, single-valued integer property that specifies
the initial PageRank of the document.
|
static java.lang.String |
PROPNAME_PERSISTED_CUSTOMDATA_1
Deprecated.
The per-document store has never been publicly implemented
|
static java.lang.String |
PROPNAME_PERSISTED_CUSTOMDATA_2
Deprecated.
The per-document store has never been publicly implemented
|
static java.lang.String |
PROPNAME_PRIMARY_FOLDER
Deprecated.
The per-document store has never been publicly implemented
|
static java.lang.String |
PROPNAME_SEARCHURL
Identifies an optional single-valued string property that, if present,
will be used by the Search Appliance as the primary URI for this document
- instead of the normal
googleconnector:// URI which the Connector
Manager fabricates based on the PROPNAME_DOCID and the connector
name. |
static java.lang.String |
PROPNAME_SECURITYTOKEN
Deprecated.
This property is unused.
|
static java.lang.String |
PROPNAME_SNAPSHOT
Deprecated.
The per-document store has never been publicly implemented
|
static java.lang.String |
PROPNAME_TIMESTAMP
Deprecated.
The per-document store has never been publicly implemented
|
static java.lang.String |
PROPNAME_TITLE
Identifies an optional string property that is the title of the document.
|
static java.lang.String |
RESERVED_PROPNAME_PREFIX
The prefix for the reserved property names.
|
static java.lang.String |
USER_ROLES_PROPNAME_PREFIX
Deprecated.
Roles are ignored by the Google Search Appliance.
Support for roles should be removed from connectors, as this
feature will be removed from a future release of Connector
Manager.
|
public static final java.lang.String RESERVED_PROPNAME_PREFIX
Value: "google:"
public static final java.lang.String PROPNAME_DOCID
This property is required on all Documents. The connector implementor is encouraged to implement this by using the natural ID in the foreign repository.
This property is persistable (it is one of the keys in the
PERSISTABLE_ATTRIBUTES
map.
Value: google:docid
public static final java.lang.String PROPNAME_FRAGMENT
PROPNAME_DOCID
,
PROPNAME_FEEDTYPE
, and PROPNAME_FRAGMENT
.
Value: google:fragment
public static final java.lang.String PROPNAME_LASTMODIFIED
Value: google:lastmodify
public static final java.lang.String PROPNAME_TITLE
Value: google:title
@Deprecated public static final java.lang.String PROPNAME_CONTENTURL
Value: google:contenturl
public static final java.lang.String PROPNAME_FEEDTYPE
If this property is not set, the feed type will be determined as follows:
PROPNAME_SEARCHURL
then the feed type will
default to 'content' feed using a fabricated URL derived from the
PROPNAME_DOCID
.
PROPNAME_SEARCHURL
then the feed type will
default to 'web' feed and use the PROPNAME_SEARCHURL
as the
document URL.
Value: google:feedtype
@Deprecated public static final java.lang.String PROPNAME_FEEDID
Not used.
Value: google:feedid
public static final java.lang.String PROPNAME_SEARCHURL
googleconnector://
URI which the Connector
Manager fabricates based on the PROPNAME_DOCID
and the connector
name.
Value: google:searchurl
public static final java.lang.String PROPNAME_CONTENT
Value: google:content
@Deprecated public static final java.lang.String PROPNAME_SECURITYTOKEN
Value: google:securitytoken
public static final java.lang.String PROPNAME_MIMETYPE
DEFAULT_MIMETYPE
.
Value: google:mimetype
public static final java.lang.String DEFAULT_MIMETYPE
Value: text/html
public static final java.lang.String PROPNAME_DISPLAYURL
Value: google:displayurl
public static final java.lang.String PROPNAME_ISPUBLIC
false
, then the document
will be marked as public.
Value: google:ispublic
public static final java.lang.String PROPNAME_OVERWRITEACLS
false
, ACLs will not be explicitly cleared if no ACL is provided.
This is to allow a Connector to send the ACLs for a Document as a separate
ACL Document. If this property is missing or true
, the default
behavior of always specifying an empty ACL if no ACL is provided is used.
Value: google:overwriteacls
public static final java.lang.String ACL_PROPNAME_PREFIX
Value: "google:acl"
public static final java.lang.String PROPNAME_ACLGROUPS
PROPNAME_ACLGROUPS
or
PROPNAME_ACLUSERS
properties are non-{*code null}, then the
Search Appliance will grant or deny access to this document for a given
user on the basis of whether the user's name appears as one of the Scope
IDs in the PROPNAME_ACLUSERS
list or one of the user's groups
appears as one of the Scope IDs in the PROPNAME_ACLGROUPS
list.
ACL Scope ID is a group or user name within the scope of the Connector.
Note: Roles are ignored by the Google Search
Appliance. Support for roles should be removed from
connectors, as this feature will be removed from a future release
of Connector Manager. Without roles, users or groups with
RoleType.PEEKER
should not appear in the
PROPNAME_ACLUSERS
or PROPNAME_ACLGROUPS
lists,
since RoleType.READER
access is implied.
To specify more than just RoleType.READER
access to the document,
the Connector must add additional multi-value role properties to the
document. These entries are of the form:
Name = <GROUP_ROLES_PROPNAME_PREFIX> + <scopeId> Value = [RoleType[, ...]]where <GROUP_ROLES_PROPNAME_PREFIX> is the
GROUP_ROLES_PROPNAME_PREFIX
, <scopeId> is the group ACL
Scope ID, and RoleType is one of the possible RoleType values. User ACL
Roles are of the form:
Name = <USER_ROLES_PROPNAME_PREFIX> + <scopeId> Value = [RoleType[, ...]]where the <scopeId> will be the user ACL Scope ID.
If the PROPNAME_ISPUBLIC
is missing or is true
, then this
property is ignored, since the document is public.
If both the PROPNAME_ACLGROUPS
and PROPNAME_ACLUSERS
properties are null
or empty, then the GSA will use the
authorization SPI to grant or deny access to this document.
The GSA may be configured to bypass on-board authorization, in which case these properties will be ignored, and the GSA will use the authorization SPI to grant or deny access to this document.
Value: google:aclgroups
public static final java.lang.String PROPNAME_ACLUSERS
PROPNAME_ACLGROUPS
.
Value: google:aclusers
public static final java.lang.String PROPNAME_ACLDENYGROUPS
PROPNAME_ACLGROUPS
.
Value: google:acldenygroups
public static final java.lang.String PROPNAME_ACLDENYUSERS
PROPNAME_ACLGROUPS
.
Value: google:acldenyusers
public static final java.lang.String PROPNAME_ACLINHERITANCETYPE
Value: google:aclinheritancetype
public static final java.lang.String PROPNAME_ACLINHERITFROM
This property takes precedence over values specified by
PROPNAME_ACLINHERITFROM_DOCID
,
PROPNAME_ACLINHERITFROM_FEEDTYPE
, and
PROPNAME_ACLINHERITFROM_FRAGMENT
.
Value: google:aclinheritfrom
public static final java.lang.String PROPNAME_ACLINHERITFROM_DOCID
If the document from which the ACL is inherited from was fed using a
different SpiConstants.FeedType
than this document, then
PROPNAME_ACLINHERITFROM_FEEDTYPE
should also be specified.
This property is ignored if PROPNAME_ACLINHERITFROM
is also
specified.
Value: google:aclinheritfrom:docid
public static final java.lang.String PROPNAME_ACLINHERITFROM_FEEDTYPE
SpiConstants.FeedType
of document from which the ACL is inherited from.
If unspecified, the FeedType
of the inheriting ACL is used.
This property should be specified in conjunction with
PROPNAME_ACLINHERITFROM_DOCID
, and will be ignored if
PROPNAME_ACLINHERITFROM
is also specified.
Value: google:aclinheritfrom:feedtype
public static final java.lang.String PROPNAME_ACLINHERITFROM_FRAGMENT
PROPNAME_ACLINHERITFROM_DOCID
,
PROPNAME_ACLINHERITFROM_FEEDTYPE
, and
PROPNAME_ACLINHERITFROM_FRAGMENT
are used to construct an
PROPNAME_ACLINHERITFROM
named resource.
This property is ignored if PROPNAME_ACLINHERITFROM
is also
specified.
Value: google:aclinheritfrom:fragment
@Deprecated public static final java.lang.String GROUP_ROLES_PROPNAME_PREFIX
GROUP_ROLES_PROPNAME_PREFIX + <scopeId>For example, given a group ACL Entry of "eng=reader,writer" the roles for "eng" would be stored in a property as follows:
Name = "google:group:roles:eng" Value = [reader, writer]
@Deprecated public static final java.lang.String USER_ROLES_PROPNAME_PREFIX
USER_ROLES_PROPNAME_PREFIX + <scopeId>For example, given a user ACL Entry of "joe=reader,writer" the roles for "joe" would be stored in a property as follows:
Name = "google:user:roles:joe" Value = [reader, writer]
public static final java.lang.String PROPNAME_ACTION
Value: google:action
public static final java.lang.String PROPNAME_FOLDER
Examples:
/ENGINEERING/techdoc/pdfs Enterprise:Marketing:Press Releases https://sp.example.com/sites/mylist
Value: google:folder
public static final java.lang.String PROPNAME_LOCK
false
.
Note: this property will not be indexed, it only controls whether the GSA will lock the document.
Value: google:lock
public static final java.lang.String PROPNAME_CRAWL_IMMEDIATELY
public static final java.lang.String PROPNAME_CRAWL_ONCE
public static final java.lang.String PROPNAME_PAGERANK
96
.
A higher value specifies a higher PageRank. To boost the PageRank of the URL or group of URLs, increase the value to a number between 97 and 100. To lower the PageRank, decrease the value.
Note: Content feeds only with GSA 7.2 or earlier. This property will not be indexed, it only controls the PageRank for the document.
Value: google:pagerank
public static final java.lang.String PROPNAME_AUTHMETHOD
httpbasic
.
AddPropertyFilter can be used to override the default value.
public static final java.lang.String PROPNAME_DOCUMENTTYPE
SpiConstants.DocumentType
property that,
if present, will be used to determine the object type for this
document.
If this property is not set, the document type will be RECORD
.
Value: google:documenttype
@Deprecated public static final java.util.Map<java.lang.String,java.lang.String> PERSISTABLE_ATTRIBUTES
LocalDocumentStore
methods rather than JDBC if possible.
At present, the persistable attributes are:
@Deprecated public static final java.lang.String PROPNAME_MANAGER_SHOULD_PERSIST
false
. If true
,
then the Connector Manager will persist all attributes that are keys in
the PERSISTABLE_ATTRIBUTES
map.@Deprecated public static final java.lang.String PROPNAME_CONNECTOR_INSTANCE
This property is persistable (it is one of the keys in the
PERSISTABLE_ATTRIBUTES
map.
@Deprecated public static final java.lang.String PROPNAME_CONNECTOR_TYPE
This property is persistable (it is one of the keys in the
PERSISTABLE_ATTRIBUTES
map.
@Deprecated public static final java.lang.String PROPNAME_PRIMARY_FOLDER
PROPNAME_FOLDER
property is supplied, then the first value of
that multi-valued property will be used here. The primary use-case of this
attribute is to be stored, so that a connector can later query to find
all documents in a folder.
This property is persistable (it is one of the keys in the
PERSISTABLE_ATTRIBUTES
map.
@Deprecated public static final java.lang.String PROPNAME_TIMESTAMP
This property is persistable (it is one of the keys in the
PERSISTABLE_ATTRIBUTES
map.
@Deprecated public static final java.lang.String PROPNAME_MESSAGE
This property is persistable (it is one of the keys in the
PERSISTABLE_ATTRIBUTES
map.
@Deprecated public static final java.lang.String PROPNAME_SNAPSHOT
This property is persistable (it is one of the keys in the
PERSISTABLE_ATTRIBUTES
map.
@Deprecated public static final java.lang.String PROPNAME_CONTAINER
This property is persistable (it is one of the keys in the
PERSISTABLE_ATTRIBUTES
map.
public static final java.lang.String PROPNAME_CONTENT_LENGTH
public static final java.lang.String PROPNAME_CONTENT_ENCODING
@Deprecated public static final java.lang.String PROPNAME_PERSISTED_CUSTOMDATA_1
@Deprecated public static final java.lang.String PROPNAME_PERSISTED_CUSTOMDATA_2
public static final java.lang.String DEFAULT_USERPROFILE_COLLECTION