public final class KomodoRestUriBuilder extends Object implements KomodoRestV1Application.V1Constants
Modifier and Type | Class and Description |
---|---|
static class |
KomodoRestUriBuilder.SettingNames
Property names for the settings used in building Uris
|
KomodoRestV1Application.V1Constants.App
ABOUT, APP_PATH, BIND_TO_SERVICE_CATALOG_SOURCE, CLONE_SEGMENT, COLUMNS_SEGMENT, CONDITION_PLACEHOLDER, CONDITIONS_SEGMENT, CONNECTION_PLACEHOLDER, CONNECTION_SEGMENT, CONNECTIONS_FROM_TEIID, CONNECTIONS_SEGMENT, CRITERIA_FOR_JOIN_TABLES, DATA_ROLE_PLACEHOLDER, DATA_ROLES_SEGMENT, DATA_SERVICE_PLACEHOLDER, DATA_SERVICE_SEGMENT, DATA_SERVICES_SEGMENT, DEPLOYABLE_STATUS_SEGMENT, DRIVERS_SEGMENT, EXPORT, EXPORT_TO_GIT, GIT_REPO_PLACEHOLDER, GIT_REPOSITORY, IMPORT, IMPORT_EXPORT_SEGMENT, IMPORT_PLACEHOLDER, IMPORTS_SEGMENT, JDBC_CATALOG_SCHEMA_SEGMENT, JDBC_INFO_SEGMENT, MASK_PLACEHOLDER, MASKS_SEGMENT, METADATA__CREDENTIALS, METADATA_DRIVER, METADATA_DRIVER_PLACEHOLDER, METADATA_SEGMENT, MODEL_FROM_TEIID_DDL, MODEL_PLACEHOLDER, MODELS_SEGMENT, NAME_VALIDATION_SEGMENT, PERMISSION_PLACEHOLDER, PERMISSIONS_SEGMENT, PING_SEGMENT, PING_TYPE_PARAMETER, PUBLISH, PUBLISH_LOGS, QUERY_SEGMENT, REFRESH_DATASERVICE_VIEWS, REFRESH_PREVIEW_VDB_SEGMENT, REFRESH_SCHEMA_SEGMENT, SAMPLE_DATA, SAVED_SEARCHES_SEGMENT, SCHEMA_SEGMENT, SEARCH_ANCESTOR_PARAMETER, SEARCH_CONTAINS_PARAMETER, SEARCH_OBJECT_NAME_PARAMETER, SEARCH_PARENT_PARAMETER, SEARCH_PATH_PARAMETER, SEARCH_SAVED_NAME_PARAMETER, SEARCH_SEGMENT, SEARCH_TYPE_PARAMETER, SERVICE_CATALOG_SEGMENT, SERVICE_SEGMENT, SERVICE_VDB_FOR_JOIN_TABLES, SERVICE_VDB_FOR_SINGLE_SOURCE_TABLES, SERVICE_VIEW_DDL_FOR_JOIN_TABLES, SERVICE_VIEW_DDL_FOR_SINGLE_TABLE, SERVICE_VIEW_INFO, SOURCE_PLACEHOLDER, SOURCE_VDB_MATCHES, SOURCES_SEGMENT, STATUS_SEGMENT, STORAGE_TYPES, SYNDESIS_SOURCE, SYNDESIS_SOURCE_PLACEHOLDER, SYNDESIS_SOURCE_STATUSES, SYNDESIS_SOURCES, TABLE_PLACEHOLDER, TABLES_SEGMENT, TEMPLATE_ENTRIES_SEGMENT, TEMPLATE_ENTRY_PLACEHOLDER, TEMPLATE_PLACEHOLDER, TEMPLATE_SEGMENT, TEMPLATES_SEGMENT, TRANSLATOR_DEFAULT_SEGMENT, TRANSLATOR_PLACEHOLDER, TRANSLATORS_SEGMENT, UNDEPLOY, USER_PROFILE, VALIDATE_PLACEHOLDER, VALIDATE_SEGMENT, VALIDATE_VIEW_DEFINITION, VDB_EXPORT_XML_PROPERTY, VDB_MANIFEST_SEGMENT, VDB_NAME_PARAMETER, VDB_PLACEHOLDER, VDB_SEGMENT, VDBS_FROM_TEIID, VDBS_SEGMENT, VIEW_EDITOR_STATE, VIEW_EDITOR_STATE_PLACEHOLDER, VIEW_EDITOR_STATES, VIEW_PLACEHOLDER, VIEWS_SEGMENT, WORKSPACE_SEGMENT
BASE_URI, CHILDREN, DATA_PATH, DDL_ATTRIBUTE, DEFAULT_VALUE, DESCRIPTION, HAS_CHILDREN, HREF, ID, KENGINE_PREFIX, KTYPE, LIMIT, LINKS, NULL, PARENT, PREFIX_PATTERN, PREFIX_SEPARATOR, PROPERTIES, REL, REPEATABLE, REQUIRED, SELF, TYPE, VALUES
AMPERSAND, AT, BR, CLASS, CLOSE_ANGLE_BRACKET, CLOSE_BRACE, CLOSE_BRACKET, CLOSE_PRE_CMT, CLOSE_PRE_TAG, CLOSE_SQUARE_BRACKET, COLON, COMMA, CONNECTION_SUFFIX, CURRENT_FOLDER_SYMBOL, DDL, DEFAULT_LOCAL_WORKSPACE_NAME, DIVIDE, DOLLAR_SIGN, DOT, DOT_CHAR, DOT_DOT, DOT_KOMODO, DOUBLE_BACK_SLASH, DRIVE_SEPARATOR, EMPTY_ARRAY, EMPTY_STRING, ENUM, EQUALS, FILE_EXTENSION_SEPARATOR, FILE_NAME_WILDCARD, FINAL, FORWARD_SLASH, HASH, HYPHEN, INTERFACE, JAR, JAVA, JAVA_IO_TMPDIR, JBOSS_SERVER_TMP_DIR, KOMODO, LINE_SEPARATOR, LINE_SEPARATOR_PROPERTY_NAME, LOG, MINUS, MULTIPLY, NBSP, NEW_LINE, OPEN_ANGLE_BRACKET, OPEN_BRACE, OPEN_BRACKET, OPEN_PRE_CMT, OPEN_PRE_TAG, OPEN_SQUARE_BRACKET, PARENT_FOLDER_SYMBOL, PERCENT, PIPE, PLUS, PRIVATE, PUBLIC, QUESTION_MARK, QUOTE_MARK, SEMI_COLON, SERVICE_VDB_SUFFIX, SERVICE_VDB_VIEW_MODEL, SERVICE_VDB_VIEW_SUFFIX, SOURCES, SPACE, SPEECH_MARK, SRC, STAR, STATIC, TAB, TARGET, UNDERSCORE, UNDERSCORE_CHAR, VDB_DEPLOYMENT_SUFFIX, VDB_PREFIX, XML, XML_SUFFIX, ZIP, ZIP_SUFFIX
Constructor and Description |
---|
KomodoRestUriBuilder(URI baseUri) |
public KomodoRestUriBuilder(URI baseUri)
baseUri
- the base URI used when building URIs (cannot be null
)public URI dataserviceChildGroupUri(URI parentUri, String dataserviceName, RestLink.LinkType target)
parentUri
- the uri of the parentdataserviceName
- the dataservice nametarget
- the link type targetpublic URI dataserviceParentUri(Dataservice dataservice, org.komodo.spi.repository.Repository.UnitOfWork uow) throws org.komodo.spi.KException
dataservice
- the dataserviceuow
- the transactionorg.komodo.spi.KException
- if problem occurspublic URI baseUri()
public URI workspaceDataservicesUri()
null
)public URI workspaceConnectionsUri()
null
)public URI workspaceDriversUri()
null
)public URI workspaceVdbsUri()
null
)public URI mServerUri()
null
)public URI mServerVdbsUri()
null
)public URI mServerTranslatorsUri()
null
)public URI mServerTemplatesUri()
null
)public URI mServerConnectionsUri()
null
)public URI mServerStatusUri()
null
)public URI mServerVdbStatusUri()
null
)public URI searchUri(KomodoProperties properties)
properties
- the search parameter propertiespublic URI savedSearchCollectionUri(KomodoProperties properties)
properties
- the search paramater propertiespublic URI vdbChildGroupUri(URI parentUri, String vdbName, RestLink.LinkType target)
the
- uri of the parentvdbName
- the vdb nametarget
- the link type targetpublic URI vdbParentUri(Vdb vdb, org.komodo.spi.repository.Repository.UnitOfWork uow) throws org.komodo.spi.KException
vdb
- uow
- org.komodo.spi.KException
public URI vdbUri(URI parentUri, String vdbName)
vdbName
- the vdb namesettings
- the settingspublic URI vdbUri(RestLink.LinkType linkType, Properties settings)
linkType
- the type of URI being created (cannot be null
)settings
- configuration settings for this urinull
)public URI vdbModelUri(RestLink.LinkType linkType, Properties settings)
linkType
- the type of URI being created (cannot be null
)settings
- configuration settings for this urinull
)public URI vdbModelSourceUri(RestLink.LinkType linkType, Properties settings)
linkType
- the type of URI being created (cannot be null
)settings
- configuration settings for this urinull
)public URI vdbModelTableUri(RestLink.LinkType linkType, Properties settings)
linkType
- the type of URI being created (cannot be null
)settings
- configuration settings for this urinull
)public URI vdbModelViewUri(RestLink.LinkType linkType, Properties settings)
linkType
- the type of URI being created (cannot be null
)settings
- configuration settings for this urinull
)public URI vdbModelTableColumnUri(RestLink.LinkType linkType, Properties settings)
linkType
- the type of URI being created (cannot be null
)settings
- configuration settings for this urinull
)public URI vdbTranslatorParentUri(Translator translator, org.komodo.spi.repository.Repository.UnitOfWork uow) throws org.komodo.spi.KException
translator
- uow
- org.komodo.spi.KException
public URI vdbTranslatorUri(RestLink.LinkType linkType, Properties settings)
linkType
- the type of URI being created (cannot be null
)settings
- configuration settings for this urinull
)public URI vdbImportUri(RestLink.LinkType linkType, Properties settings)
linkType
- the type of URI being created (cannot be null
)settings
- configuration settings for this urinull
)public URI vdbDataRoleUri(RestLink.LinkType linkType, Properties settings)
linkType
- the type of URI being created (cannot be null
)settings
- configuration settings for this urinull
)public URI vdbPermissionUri(RestLink.LinkType linkType, Properties settings)
linkType
- the type of URI being created (cannot be null
)settings
- configuration settings for this urinull
)public URI vdbPermissionChildUri(RestLink.LinkType linkType, Properties settings)
linkType
- the type of URI being created (cannot be null
)settings
- configuration settings for this urinull
)public URI dataserviceUri(URI parentUri, String dataserviceName)
parentUri
- the parent URIdataserviceName
- the dataservice namepublic URI dataserviceUri(RestLink.LinkType linkType, Properties settings)
linkType
- the type of URI being created (cannot be null
)settings
- configuration settings for this urinull
)public URI connectionParentUri(Connection connection, org.komodo.spi.repository.Repository.UnitOfWork uow) throws org.komodo.spi.KException
connection
- the connection whose parent URI is being requested (cannot be null
)uow
- org.komodo.spi.KException
public URI connectionUri(RestLink.LinkType linkType, Properties settings)
linkType
- settings
- public URI templateUri(RestLink.LinkType linkType, Properties settings)
linkType
- settings
- public URI templateEntryUri(RestLink.LinkType linkType, Properties settings)
linkType
- settings
- public Properties createSettings(KomodoRestUriBuilder.SettingNames settingName, String value)
settingName
- setting namevalue
- the valuepublic void addSetting(Properties settings, KomodoRestUriBuilder.SettingNames settingName, String value)
settings
- the settingssettingName
- setting namevalue
- the valuepublic void addSetting(Properties settings, KomodoRestUriBuilder.SettingNames settingName, URI value)
settings
- the settingssettingName
- setting namevalue
- the valueCopyright © 2013–2019. All rights reserved.