public class RegistryResolver extends Object implements org.apache.abdera.protocol.Resolver<org.apache.abdera.protocol.server.Target>
Modifier and Type | Field and Description |
---|---|
static org.apache.abdera.protocol.server.TargetType |
ASPECT_TYPE
The target type for aspects.
|
static org.apache.abdera.protocol.server.TargetType |
ASSOCIATIONS_TYPE
The target type for associations.
|
static org.apache.abdera.protocol.server.TargetType |
CHECKPOINT_TYPE
The target type for check points.
|
static org.apache.abdera.protocol.server.TargetType |
COLLECTION_CUSTOM_TYPE
The target type for custom collections.
|
static org.apache.abdera.protocol.server.TargetType |
COMMENTS_TYPE
The target type for comments.
|
static org.apache.abdera.protocol.server.TargetType |
COPY_TYPE
The target type for copy operations.
|
static org.apache.abdera.protocol.server.TargetType |
DELETE_TYPE
The target type for delete requests.
|
static org.apache.abdera.protocol.server.TargetType |
DUMP_TYPE
The target type for dump.
|
static org.apache.abdera.protocol.server.TargetType |
IMPORT_TYPE
The target type for import requests.
|
static org.apache.abdera.protocol.server.TargetType |
LOGS_TYPE
The target type for logs.
|
static org.apache.abdera.protocol.server.TargetType |
MOVE_TYPE
The target type for move operations.
|
static org.apache.abdera.protocol.server.TargetType |
QUERY_TYPE
The target type for queries..
|
static org.apache.abdera.protocol.server.TargetType |
RATINGS_TYPE
The target type for ratings.
|
static org.apache.abdera.protocol.server.TargetType |
RENAME_TYPE
The target type for rename operations.
|
static org.apache.abdera.protocol.server.TargetType |
RESTORE_TYPE
The target type for restore operations.
|
static org.apache.abdera.protocol.server.TargetType |
TAG_URL_TYPE
The target type for tag urls.
|
static org.apache.abdera.protocol.server.TargetType |
TAGS_TYPE
The target type for tags.
|
static org.apache.abdera.protocol.server.TargetType |
VERSIONS_TYPE
The target type for versions.
|
Constructor and Description |
---|
RegistryResolver(EmbeddedRegistryService embeddedRegistryService,
String basePath) |
Modifier and Type | Method and Description |
---|---|
String |
getBasePath() |
static int |
getTenantId(String userNameWithDomain) |
static String |
getUserName(String userNameWithDomain) |
org.apache.abdera.protocol.server.Target |
resolve(org.apache.abdera.protocol.Request request)
Method to identify the response target for the request.
|
public static final org.apache.abdera.protocol.server.TargetType TAGS_TYPE
public static final org.apache.abdera.protocol.server.TargetType LOGS_TYPE
public static final org.apache.abdera.protocol.server.TargetType RATINGS_TYPE
public static final org.apache.abdera.protocol.server.TargetType RENAME_TYPE
public static final org.apache.abdera.protocol.server.TargetType COPY_TYPE
public static final org.apache.abdera.protocol.server.TargetType MOVE_TYPE
public static final org.apache.abdera.protocol.server.TargetType COMMENTS_TYPE
public static final org.apache.abdera.protocol.server.TargetType TAG_URL_TYPE
public static final org.apache.abdera.protocol.server.TargetType ASSOCIATIONS_TYPE
public static final org.apache.abdera.protocol.server.TargetType RESTORE_TYPE
public static final org.apache.abdera.protocol.server.TargetType ASPECT_TYPE
public static final org.apache.abdera.protocol.server.TargetType VERSIONS_TYPE
public static final org.apache.abdera.protocol.server.TargetType CHECKPOINT_TYPE
public static final org.apache.abdera.protocol.server.TargetType QUERY_TYPE
public static final org.apache.abdera.protocol.server.TargetType IMPORT_TYPE
public static final org.apache.abdera.protocol.server.TargetType DELETE_TYPE
public static final org.apache.abdera.protocol.server.TargetType COLLECTION_CUSTOM_TYPE
public static final org.apache.abdera.protocol.server.TargetType DUMP_TYPE
public RegistryResolver(EmbeddedRegistryService embeddedRegistryService, String basePath)
public org.apache.abdera.protocol.server.Target resolve(org.apache.abdera.protocol.Request request)
resolve
in interface org.apache.abdera.protocol.Resolver<org.apache.abdera.protocol.server.Target>
request
- the request.public String getBasePath()
public static String getUserName(String userNameWithDomain) throws RegistryException
RegistryException
public static int getTenantId(String userNameWithDomain) throws RegistryException
RegistryException
Copyright © 2016 WSO2 Inc. All Rights Reserved.