Class Asset
java.lang.Object
org.wso2.carbon.governance.rest.api.Asset
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchangeContent(InputStream content, org.wso2.carbon.registry.core.Registry registry, String currentPath) javax.ws.rs.core.ResponsecreateAsset(String assetType, org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact genericArtifact, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponsecreateEndpoint(String assetType, String id, org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact genericArtifact, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponsecreateEndpoint(String assetType, org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact genericArtifact, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponsecreateEndpoint(org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact genericArtifact, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponsedeleteAsset(String assetType, String id) javax.ws.rs.core.ResponsedeleteEndpoint(String id) javax.ws.rs.core.ResponseendpointActivate(String id, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponseendpointDeactivate(String id, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetAssetEndpoints(String assetType, String id, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponsegetAssetEndpoints(String assetType, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponsegetAssetRawContent(String assetType, String id) javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetAssetStates(String assetType, String id, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponsegetAssociations(String assetType, String id, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponsegetEndpoint(String id) javax.ws.rs.core.ResponsegetEndpoints(javax.ws.rs.core.UriInfo uriInfo, String tenant) javax.ws.rs.core.ResponsegetEndpointStates(String id, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponsegetTypes()protected org.wso2.carbon.registry.core.Registryjavax.ws.rs.core.ResponsemodifyAsset(String assetType, String id, org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact genericArtifact, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponsemodifyEndpoint(String id, org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact genericArtifact, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponseupdateLCState(String assetType, String id, AssetStateChange stateChange, javax.ws.rs.core.UriInfo uriInfo)
-
Field Details
-
ENDPOINTS
- See Also:
-
ENDPOINT
- See Also:
-
ENDPOINT_LIFE_CYCLE
- See Also:
-
ENDPOINT_LIFE_CYCLE_ACTION_DEACTIVATE
- See Also:
-
ENDPOINT_LIFE_CYCLE_ACTION_ACTIVATE
- See Also:
-
ENDPOINT_LIFE_CYCLE_STATE_ACTIVE
- See Also:
-
ENDPOINT_MEDIA_TYPE
- See Also:
-
CONTENT_TYPE_WSDL
- See Also:
-
CONTENT_TYPE_WADL
- See Also:
-
CONTENT_TYPE_SWAGGER
- See Also:
-
CONTENT_TYPE_SCHEMA
- See Also:
-
CONTENT_TYPE_POLICY
- See Also:
-
ATTR_CONTENT_TYPE
- See Also:
-
CONTENT_DISPOSITION
- See Also:
-
-
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
-