java.lang.Object
org.wso2.carbon.governance.rest.api.Asset

public class Asset extends Object
  • Field Details

  • Constructor Details

    • Asset

      public Asset()
  • Method Details

    • getTypes

      public javax.ws.rs.core.Response getTypes() throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • getAssets

      public javax.ws.rs.core.Response getAssets(String assetType, @Context javax.ws.rs.core.UriInfo uriInfo, @HeaderParam("X_TENANT") String tenant) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • getAsset

      public javax.ws.rs.core.Response getAsset(String assetType, String id) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • getAssetRawContent

      public javax.ws.rs.core.Response getAssetRawContent(String assetType, String id) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • getAssetEndpoints

      public javax.ws.rs.core.Response getAssetEndpoints(String assetType, @Context javax.ws.rs.core.UriInfo uriInfo) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • getAssetEndpoints

      public javax.ws.rs.core.Response getAssetEndpoints(String assetType, String id, @Context javax.ws.rs.core.UriInfo uriInfo) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • createAsset

      public javax.ws.rs.core.Response createAsset(String assetType, org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact genericArtifact, @Context javax.ws.rs.core.UriInfo uriInfo) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • modifyAsset

      public javax.ws.rs.core.Response modifyAsset(String assetType, String id, org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact genericArtifact, @Context javax.ws.rs.core.UriInfo uriInfo) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • deleteAsset

      public javax.ws.rs.core.Response deleteAsset(String assetType, String id) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • getAssetStates

      public javax.ws.rs.core.Response getAssetStates(String assetType, String id, @Context javax.ws.rs.core.UriInfo uriInfo) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • updateLCState

      public javax.ws.rs.core.Response updateLCState(String assetType, String id, AssetStateChange stateChange, @Context javax.ws.rs.core.UriInfo uriInfo) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • getEndpoints

      public javax.ws.rs.core.Response getEndpoints(@Context javax.ws.rs.core.UriInfo uriInfo, @HeaderParam("X_TENANT") String tenant) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • getEndpoint

      public javax.ws.rs.core.Response getEndpoint(String id) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • createEndpoint

      public javax.ws.rs.core.Response createEndpoint(org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact genericArtifact, @Context javax.ws.rs.core.UriInfo uriInfo) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • createEndpoint

      public javax.ws.rs.core.Response createEndpoint(String assetType, org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact genericArtifact, @Context javax.ws.rs.core.UriInfo uriInfo) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • createEndpoint

      public javax.ws.rs.core.Response createEndpoint(String assetType, String id, org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact genericArtifact, @Context javax.ws.rs.core.UriInfo uriInfo) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • modifyEndpoint

      public javax.ws.rs.core.Response modifyEndpoint(String id, org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact genericArtifact, @Context javax.ws.rs.core.UriInfo uriInfo) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • deleteEndpoint

      public javax.ws.rs.core.Response deleteEndpoint(String id) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • getEndpointStates

      public javax.ws.rs.core.Response getEndpointStates(String id, @Context javax.ws.rs.core.UriInfo uriInfo) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • endpointActivate

      public javax.ws.rs.core.Response endpointActivate(String id, @Context javax.ws.rs.core.UriInfo uriInfo) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • endpointDeactivate

      public javax.ws.rs.core.Response endpointDeactivate(String id, @Context javax.ws.rs.core.UriInfo uriInfo) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • getAssociations

      public javax.ws.rs.core.Response getAssociations(String assetType, String id, @Context javax.ws.rs.core.UriInfo uriInfo) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • getUserRegistry

      protected org.wso2.carbon.registry.core.Registry getUserRegistry() throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • changeContent

      public String changeContent(InputStream content, org.wso2.carbon.registry.core.Registry registry, String currentPath) throws org.wso2.carbon.governance.api.exception.GovernanceException
      Throws:
      org.wso2.carbon.governance.api.exception.GovernanceException