public class PreferenceResource extends AbstractResource
Constructor and Description |
---|
PreferenceResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createPreference(javax.ws.rs.core.MultivaluedMap<String,String> params,
Long preferenceId,
Long userId) |
javax.ws.rs.core.Response |
createPreference(String jsonRepresentation,
Long preferenceId,
Long userId) |
javax.ws.rs.core.Response |
deletePreference(javax.ws.rs.core.MultivaluedMap<String,String> params,
Long preferenceEntryId,
Long preferenceId,
Long userId) |
javax.ws.rs.core.Response |
editPreference(javax.ws.rs.core.MultivaluedMap<String,String> params,
Long preferenceEntryId,
Long preferenceId,
Long userId) |
javax.ws.rs.core.Response |
editPreference(String jsonRepresentation,
Long preferenceEntryId,
Long preferenceId,
Long userId) |
boolean |
equals(Object obj) |
String |
getKey()
Returns the Key.
|
Long |
getPreferenceEntryId()
Returns the PreferenceEntryId.
|
protected AbstractResourceHandler<CreatePreferenceParameter,EditPreferenceParameter,DeletePreferenceParameter,GetPreferenceParameter,DefaultParameter> |
getResourceHandler() |
String |
getValue()
Returns the Value.
|
int |
hashCode() |
javax.ws.rs.core.Response |
preferenceSingle(Long preferenceEntryId,
Long preferenceId,
Long userId) |
void |
setKey(String key)
Sets Key.
|
void |
setPreferenceEntryId(Long preferenceEntryId)
Sets PreferenceEntryId.
|
void |
setValue(String value)
Sets Value.
|
protected AbstractResourceHandler<CreatePreferenceParameter,EditPreferenceParameter,DeletePreferenceParameter,GetPreferenceParameter,DefaultParameter> getResourceHandler()
getResourceHandler
in class AbstractResource
public javax.ws.rs.core.Response preferenceSingle(Long preferenceEntryId, Long preferenceId, Long userId) throws Exception
Exception
public javax.ws.rs.core.Response deletePreference(javax.ws.rs.core.MultivaluedMap<String,String> params, Long preferenceEntryId, Long preferenceId, Long userId) throws Exception
Exception
public javax.ws.rs.core.Response editPreference(javax.ws.rs.core.MultivaluedMap<String,String> params, Long preferenceEntryId, Long preferenceId, Long userId) throws Exception
Exception
public javax.ws.rs.core.Response editPreference(String jsonRepresentation, Long preferenceEntryId, Long preferenceId, Long userId) throws Exception
Exception
public javax.ws.rs.core.Response createPreference(javax.ws.rs.core.MultivaluedMap<String,String> params, Long preferenceId, Long userId) throws Exception
Exception
public javax.ws.rs.core.Response createPreference(String jsonRepresentation, Long preferenceId, Long userId) throws Exception
Exception
public Long getPreferenceEntryId()
public void setPreferenceEntryId(Long preferenceEntryId)
preferenceEntryId
- public String getKey()
public void setKey(String key)
key
- public String getValue()
public void setValue(String value)
value
- Copyright © 2019 Communote team. All rights reserved.