public class DomainInputResolver extends java.lang.Object implements java.util.concurrent.Callable<DefaultDomain>
| Modifier and Type | Class and Description |
|---|---|
static class |
DomainInputResolver.UserLocatorPolicy
The policy for locating users.
|
| Constructor and Description |
|---|
DomainInputResolver(com.sk89q.squirrelid.resolver.ProfileService profileService,
java.lang.String[] input)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
DefaultDomain |
call() |
com.google.common.base.Function<DefaultDomain,DefaultDomain> |
createAddAllFunction(DefaultDomain target) |
com.google.common.base.Function<DefaultDomain,DefaultDomain> |
createRemoveAllFunction(DefaultDomain target) |
DomainInputResolver.UserLocatorPolicy |
getLocatorPolicy()
Get the policy used for identifying users.
|
static java.util.UUID |
parseUUID(java.lang.String input)
Try to parse a UUID locator from input.
|
void |
setLocatorPolicy(DomainInputResolver.UserLocatorPolicy locatorPolicy)
Set the policy used for identifying users.
|
public DomainInputResolver(com.sk89q.squirrelid.resolver.ProfileService profileService,
java.lang.String[] input)
profileService - the profile serviceinput - the input to parsepublic DomainInputResolver.UserLocatorPolicy getLocatorPolicy()
public void setLocatorPolicy(DomainInputResolver.UserLocatorPolicy locatorPolicy)
locatorPolicy - the policypublic DefaultDomain call() throws UnresolvedNamesException
call in interface java.util.concurrent.Callable<DefaultDomain>UnresolvedNamesExceptionpublic com.google.common.base.Function<DefaultDomain,DefaultDomain> createAddAllFunction(DefaultDomain target)
public com.google.common.base.Function<DefaultDomain,DefaultDomain> createRemoveAllFunction(DefaultDomain target)
@Nullable public static java.util.UUID parseUUID(java.lang.String input)
input - the inputnull if the input is not a UUID