com.hascode.confluence.plugin.socialcomments.persistence
Class SocialCommentsConfigurationServiceImpl

java.lang.Object
  extended by com.hascode.confluence.plugin.socialcomments.persistence.SocialCommentsConfigurationServiceImpl
All Implemented Interfaces:
SocialCommentsConfigurationService

public class SocialCommentsConfigurationServiceImpl
extends Object
implements SocialCommentsConfigurationService


Constructor Summary
SocialCommentsConfigurationServiceImpl(com.atlassian.bandana.BandanaManager bandanaManager)
           
 
Method Summary
 SocialCommentsConfiguration load()
          returns the configuration from the persistence api
 void saveOrUpdate(SocialCommentsConfiguration config)
          saves or updates the configuration
 Set<javax.validation.ConstraintViolation<SocialCommentsConfiguration>> validate(SocialCommentsConfiguration config)
          validates a given configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocialCommentsConfigurationServiceImpl

public SocialCommentsConfigurationServiceImpl(com.atlassian.bandana.BandanaManager bandanaManager)
Method Detail

validate

public Set<javax.validation.ConstraintViolation<SocialCommentsConfiguration>> validate(SocialCommentsConfiguration config)
Description copied from interface: SocialCommentsConfigurationService
validates a given configuration

Specified by:
validate in interface SocialCommentsConfigurationService
Parameters:
config - the configuration to validate
Returns:
a set of generic constraint violations

saveOrUpdate

public void saveOrUpdate(SocialCommentsConfiguration config)
Description copied from interface: SocialCommentsConfigurationService
saves or updates the configuration

Specified by:
saveOrUpdate in interface SocialCommentsConfigurationService
Parameters:
config - the configuration

load

public SocialCommentsConfiguration load()
Description copied from interface: SocialCommentsConfigurationService
returns the configuration from the persistence api

Specified by:
load in interface SocialCommentsConfigurationService
Returns:
the configuration


Copyright © 2011 hasCode.com. All Rights Reserved.