public class RegistryServiceImpl extends Object implements RegistryService
Constructor and Description |
---|
RegistryServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addConfigRegistryResource(String registryLocation,
String content,
String mediaType) |
void |
addDefaultLifecycles() |
void |
addGovernanceRegistryResource(String registryLocation,
String content,
String mediaType) |
void |
endTenantFlow() |
org.wso2.carbon.apimgt.api.model.API |
getAPI(org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact artifact) |
Object |
getConfigRegistryResource(String registryLocation) |
org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact[] |
getGenericAPIArtifacts() |
String |
getGenericArtifactPath(org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact artifact) |
org.wso2.carbon.registry.core.Registry |
getGovernanceRegistry() |
Object |
getGovernanceRegistryResource(String registryLocation) |
boolean |
isConfigRegistryResourceExists(String registryLocation) |
boolean |
isGovernanceRegistryResourceExists(String registryLocation) |
void |
rollbackConfigRegistryTransaction() |
void |
rollbackGovernanceRegistryTransaction() |
void |
setGovernanceRegistryResourcePermissions(String userName,
String visibility,
String[] roles,
String resourcePath) |
void |
startTenantFlow(org.wso2.carbon.user.api.Tenant tenant) |
void |
updateAPIPropertyVisibility(String resourcePath)
This method updates the API properties so that they will be visible in the store by default
|
void |
updateConfigRegistryResource(String registryLocation,
String content) |
void |
updateEnableStoreInRxt(String resourcePath,
org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact artifact)
This method updates the 'enableStore' rxt field in migrated APIs as it has been mandated in devportal api's listing
|
void |
updateGenericAPIArtifact(String resourcePath,
org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact artifact) |
void |
updateGenericAPIArtifacts(org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact[] artifacts) |
void |
updateGenericAPIArtifactsForAccessControl(String resourcePath,
org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact artifact)
Update API artifacts for Publisher Access Control feature
|
void |
updateGovernanceRegistryResource(String registryLocation,
String content) |
void |
updateRXTResource(String rxtName,
String rxtPayload) |
public void startTenantFlow(org.wso2.carbon.user.api.Tenant tenant)
startTenantFlow
in interface RegistryService
public void endTenantFlow()
endTenantFlow
in interface RegistryService
public void rollbackGovernanceRegistryTransaction() throws org.wso2.carbon.user.api.UserStoreException, org.wso2.carbon.registry.core.exceptions.RegistryException
rollbackGovernanceRegistryTransaction
in interface RegistryService
org.wso2.carbon.user.api.UserStoreException
org.wso2.carbon.registry.core.exceptions.RegistryException
public void rollbackConfigRegistryTransaction() throws org.wso2.carbon.user.api.UserStoreException, org.wso2.carbon.registry.core.exceptions.RegistryException
rollbackConfigRegistryTransaction
in interface RegistryService
org.wso2.carbon.user.api.UserStoreException
org.wso2.carbon.registry.core.exceptions.RegistryException
public void addDefaultLifecycles() throws org.wso2.carbon.registry.core.exceptions.RegistryException, org.wso2.carbon.user.api.UserStoreException, FileNotFoundException, XMLStreamException
addDefaultLifecycles
in interface RegistryService
org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.user.api.UserStoreException
FileNotFoundException
XMLStreamException
public org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact[] getGenericAPIArtifacts()
getGenericAPIArtifacts
in interface RegistryService
public void updateGenericAPIArtifacts(org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact[] artifacts)
updateGenericAPIArtifacts
in interface RegistryService
public org.wso2.carbon.apimgt.api.model.API getAPI(org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact artifact)
getAPI
in interface RegistryService
public String getGenericArtifactPath(org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact artifact) throws org.wso2.carbon.user.api.UserStoreException, org.wso2.carbon.registry.core.exceptions.RegistryException
getGenericArtifactPath
in interface RegistryService
org.wso2.carbon.user.api.UserStoreException
org.wso2.carbon.registry.core.exceptions.RegistryException
public boolean isConfigRegistryResourceExists(String registryLocation) throws org.wso2.carbon.user.api.UserStoreException, org.wso2.carbon.registry.core.exceptions.RegistryException
isConfigRegistryResourceExists
in interface RegistryService
org.wso2.carbon.user.api.UserStoreException
org.wso2.carbon.registry.core.exceptions.RegistryException
public boolean isGovernanceRegistryResourceExists(String registryLocation) throws org.wso2.carbon.user.api.UserStoreException, org.wso2.carbon.registry.core.exceptions.RegistryException
isGovernanceRegistryResourceExists
in interface RegistryService
org.wso2.carbon.user.api.UserStoreException
org.wso2.carbon.registry.core.exceptions.RegistryException
public Object getConfigRegistryResource(String registryLocation) throws org.wso2.carbon.user.api.UserStoreException, org.wso2.carbon.registry.core.exceptions.RegistryException
getConfigRegistryResource
in interface RegistryService
org.wso2.carbon.user.api.UserStoreException
org.wso2.carbon.registry.core.exceptions.RegistryException
public Object getGovernanceRegistryResource(String registryLocation) throws org.wso2.carbon.user.api.UserStoreException, org.wso2.carbon.registry.core.exceptions.RegistryException
getGovernanceRegistryResource
in interface RegistryService
org.wso2.carbon.user.api.UserStoreException
org.wso2.carbon.registry.core.exceptions.RegistryException
public void addConfigRegistryResource(String registryLocation, String content, String mediaType) throws org.wso2.carbon.user.api.UserStoreException, org.wso2.carbon.registry.core.exceptions.RegistryException
addConfigRegistryResource
in interface RegistryService
org.wso2.carbon.user.api.UserStoreException
org.wso2.carbon.registry.core.exceptions.RegistryException
public void addGovernanceRegistryResource(String registryLocation, String content, String mediaType) throws org.wso2.carbon.user.api.UserStoreException, org.wso2.carbon.registry.core.exceptions.RegistryException
addGovernanceRegistryResource
in interface RegistryService
org.wso2.carbon.user.api.UserStoreException
org.wso2.carbon.registry.core.exceptions.RegistryException
public void updateConfigRegistryResource(String registryLocation, String content) throws org.wso2.carbon.user.api.UserStoreException, org.wso2.carbon.registry.core.exceptions.RegistryException
updateConfigRegistryResource
in interface RegistryService
org.wso2.carbon.user.api.UserStoreException
org.wso2.carbon.registry.core.exceptions.RegistryException
public void updateGovernanceRegistryResource(String registryLocation, String content) throws org.wso2.carbon.user.api.UserStoreException, org.wso2.carbon.registry.core.exceptions.RegistryException
updateGovernanceRegistryResource
in interface RegistryService
org.wso2.carbon.user.api.UserStoreException
org.wso2.carbon.registry.core.exceptions.RegistryException
public void setGovernanceRegistryResourcePermissions(String userName, String visibility, String[] roles, String resourcePath) throws org.wso2.carbon.apimgt.api.APIManagementException
setGovernanceRegistryResourcePermissions
in interface RegistryService
org.wso2.carbon.apimgt.api.APIManagementException
public org.wso2.carbon.registry.core.Registry getGovernanceRegistry() throws org.wso2.carbon.user.api.UserStoreException, org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.user.api.UserStoreException
org.wso2.carbon.registry.core.exceptions.RegistryException
public void updateRXTResource(String rxtName, String rxtPayload) throws org.wso2.carbon.user.api.UserStoreException, org.wso2.carbon.registry.core.exceptions.RegistryException
updateRXTResource
in interface RegistryService
org.wso2.carbon.user.api.UserStoreException
org.wso2.carbon.registry.core.exceptions.RegistryException
public void updateGenericAPIArtifactsForAccessControl(String resourcePath, org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact artifact)
updateGenericAPIArtifactsForAccessControl
in interface RegistryService
resourcePath
- resource pathartifact
- generic artifactpublic void updateGenericAPIArtifact(String resourcePath, org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact artifact)
updateGenericAPIArtifact
in interface RegistryService
public void updateEnableStoreInRxt(String resourcePath, org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact artifact)
updateEnableStoreInRxt
in interface RegistryService
resourcePath
- artifact
- public void updateAPIPropertyVisibility(String resourcePath)
updateAPIPropertyVisibility
in interface RegistryService
resourcePath
- Copyright © 2024 WSO2. All rights reserved.