|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContributionRepository
Contribution repository
Method Summary | |
---|---|
java.net.URL |
find(java.lang.String contribution)
Look up the contribution by URI |
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 |
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. |
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |