public static class
Acl.UserPrincipalParser
extends Object
implements Parser<Principal>
implements Parser<Principal>
Parser used to extract a user principal of either "google" or "external" type.
By definition, accounts beginning with com.google.enterprise.cloudsearch.sdk.indexing.Acl.GOOGLE_ACCOUNT_PREFIX
are "google"
accounts.
Public Constructor Summary
Public Method Summary
Principal |
Inherited Method Summary
Public Constructors
public Acl.UserPrincipalParser ()
Public Methods
public Principal parse (String user)
Converts user
value to Principal
representing external user or Google user.
Parameters
user | to parse |
---|
Returns
- Converted value