com.atlassian.jira.rest.v2.entity.property
Class BasePropertyWithKeyResource<E extends WithId & WithKey>

java.lang.Object
  extended by com.atlassian.jira.rest.v2.entity.property.BasePropertyResource<E>
      extended by com.atlassian.jira.rest.v2.entity.property.BasePropertyWithKeyResource<E>

public class BasePropertyWithKeyResource<E extends WithId & WithKey>
extends BasePropertyResource<E>

Since:
v6.2

Constructor Summary
BasePropertyWithKeyResource(EntityWithKeyPropertyService<E> entityPropertyService, JiraAuthenticationContext authContext, JiraBaseUrls jiraBaseUrls, I18nHelper i18n, com.google.common.base.Predicate<String> validKeyPredicate, com.atlassian.fugue.Function2<Long,String,String> entityIdAndPropertyKeyToSelfFunction, EntityPropertyType entityPropertyType)
           
 
Method Summary
protected  EntityPropertyService.PropertyKeys<E> getPropertiesKeys(ApplicationUser user, String idOrKey)
           
protected  EntityPropertyService.PropertyResult getProperty(ApplicationUser user, String propertyKey, String idOrKey)
           
protected  EntityPropertyService.DeletePropertyValidationResult validateDeleteProperty(ApplicationUser user, String propertyKey, String id)
           
protected  EntityPropertyService.SetPropertyValidationResult validateSetProperty(ApplicationUser user, EntityPropertyService.PropertyInput propertyInput, String idOrKey)
           
 
Methods inherited from class com.atlassian.jira.rest.v2.entity.property.BasePropertyResource
deleteProperty, getPropertiesKeys, getProperty, setProperty, withIdValidation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasePropertyWithKeyResource

public BasePropertyWithKeyResource(EntityWithKeyPropertyService<E> entityPropertyService,
                                   JiraAuthenticationContext authContext,
                                   JiraBaseUrls jiraBaseUrls,
                                   I18nHelper i18n,
                                   com.google.common.base.Predicate<String> validKeyPredicate,
                                   com.atlassian.fugue.Function2<Long,String,String> entityIdAndPropertyKeyToSelfFunction,
                                   EntityPropertyType entityPropertyType)
Method Detail

getPropertiesKeys

protected EntityPropertyService.PropertyKeys<E> getPropertiesKeys(ApplicationUser user,
                                                                  String idOrKey)
Overrides:
getPropertiesKeys in class BasePropertyResource<E extends WithId & WithKey>

validateSetProperty

protected EntityPropertyService.SetPropertyValidationResult validateSetProperty(ApplicationUser user,
                                                                                EntityPropertyService.PropertyInput propertyInput,
                                                                                String idOrKey)
Overrides:
validateSetProperty in class BasePropertyResource<E extends WithId & WithKey>

getProperty

protected EntityPropertyService.PropertyResult getProperty(ApplicationUser user,
                                                           String propertyKey,
                                                           String idOrKey)
Overrides:
getProperty in class BasePropertyResource<E extends WithId & WithKey>

validateDeleteProperty

protected EntityPropertyService.DeletePropertyValidationResult validateDeleteProperty(ApplicationUser user,
                                                                                      String propertyKey,
                                                                                      String id)
Overrides:
validateDeleteProperty in class BasePropertyResource<E extends WithId & WithKey>


Copyright © 2002-2014 Atlassian. All Rights Reserved.