|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContributionRepository
Contribution repository
Method Summary | |
---|---|
void |
addContribution(Contribution contribution)
Adds a contribution to the repository. |
java.net.URL |
find(java.lang.String contribution)
Look up the contribution by URI |
Contribution |
getContribution(java.lang.String uri)
Returns the contribution with the given URI. |
java.util.List<Contribution> |
getContributions()
Returns the contributions available in the repository. |
java.net.URI |
getDomain()
Get the URI of the SCA domain |
java.util.List<java.lang.String> |
list()
Get list of URIs for all the contributions in the repository |
void |
remove(java.lang.String contribution)
Remove a contribution from the repository |
void |
removeContribution(Contribution contribution)
Removes a contribution from the repository. |
java.net.URL |
store(java.lang.String contribution,
java.net.URL sourceURL)
Copy a contribution from the source URL to the repository |
java.net.URL |
store(java.lang.String contribution,
java.net.URL sourceURL,
java.io.InputStream contributionStream)
Copies a contribution to the repository. |
void |
updateContribution(Contribution contribution)
Updates a contribution in the repository |
Method Detail |
---|
java.net.URI getDomain()
java.net.URL store(java.lang.String contribution, java.net.URL sourceURL, java.io.InputStream contributionStream) throws java.io.IOException
contribution
- A URl pointing to the contribution being copied to
the repositorysourceURL
- URL of the source. this would be used to calculate the right
filename to be stored on the repository when a inputStream is being
providedcontributionStream
- InputStream with the content of the
distribution
java.io.IOException
java.net.URL store(java.lang.String contribution, java.net.URL sourceURL) throws java.io.IOException
contribution
- A URl pointing to the contribution being copied to
the repositorysourceURL
- URL of the source. this would be used to calculate the right
filename to be stored on the repository when a inputStream is being
provided
java.io.IOException
java.net.URL find(java.lang.String contribution)
contribution
- The URI of the contribution
void remove(java.lang.String contribution)
contribution
- The URI of the contribution to be removedjava.util.List<java.lang.String> list()
java.util.List<Contribution> getContributions()
void addContribution(Contribution contribution)
contribution
- The new contribution.void removeContribution(Contribution contribution)
contribution
- The contribution to removevoid updateContribution(Contribution contribution)
contribution
- The contribution to updateContribution getContribution(java.lang.String uri)
uri
- the URI of the contribution
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |