@HTTPService(name="cosrc") public class ClientService extends java.lang.Object
ContentStorageService
Constructor and Description |
---|
ClientService() |
Modifier and Type | Method and Description |
---|---|
Response |
addUrl(AuthenticationParameter authenticatedUser,
IntegerParameter backendId,
StringParameter url)
This method can be used to add files denoted by arbitrary URL links to the service.
|
void |
synchronize(AuthenticationParameter authenticatedUser,
IntegerParameter backendId,
IntegerParameter serviceId)
This method allows the user to initialize external account synchronization.
|
public ClientService()
@HTTPServiceMethod(name="synchronize") public void synchronize(@HTTPAuthenticationParameter(required=false) AuthenticationParameter authenticatedUser, @HTTPMethodParameter(name="backend_id",required=false) IntegerParameter backendId, @HTTPMethodParameter(name="service_id") IntegerParameter serviceId)
authenticatedUser
- Note: this method requires authentication, but for the reference implementation, anonymous access is granted.backendId
- Back-ends used for the analysis of the generated tasks. If no back-end IDs are given, the default back-ends will be used. An attempt to give incompatible back-ends may result in failure of the entire task. When providing specific back-ends by Id one should make sure that the back-ends are capable of performing the requested tasks.serviceId
- Any combination of supported external providers designated by serviceIds. The supported id values are: 1 (Picasa), 2 (FSIO), 4 (Facebook), 6 (Twitter), 7 (Url Storage). See CAContentCore.ServiceType
@HTTPServiceMethod(name="addUrl", acceptedMethods="POST") public Response addUrl(@HTTPAuthenticationParameter(required=false) AuthenticationParameter authenticatedUser, @HTTPMethodParameter(name="backend_id",required=false) IntegerParameter backendId, @HTTPMethodParameter(name="url") StringParameter url)
MediaUrlValidator
.authenticatedUser
- Note: this method requires authentication, but for the reference implementation, anonymous access is granted.backendId
- Back-ends used for the analysis of the generated tasks. If no back-end IDs are given, the default back-ends will be used. An attempt to give incompatible back-ends may result in failure of the entire task. When providing specific back-ends by Id one should make sure that the back-ends are capable of performing the requested tasks.url
- Any number of URL links.MediaList
Copyright © 2015 Tampere University of Technology, Pori Department.