com.atlassian.mywork.host.service
Interface LocalRegistrationService

All Superinterfaces:
RegistrationService
All Known Implementing Classes:
LocalRegistrationServiceImpl

public interface LocalRegistrationService
extends RegistrationService

Provides services related to registration, specific to the host.


Method Summary
 Registration get(Registration.RegistrationId id)
          Returns a registration for a provider with the given application id
 com.atlassian.fugue.Option<com.atlassian.fugue.Pair<java.util.List<Registration>,java.util.Date>> getAll(java.util.Date ifModifiedSince)
          Returns all the currently stored registrations, only return if updates have occurred.
 java.lang.String getCacheValue(java.util.Locale locale)
           
 java.util.Date getLastModified()
           
 
Methods inherited from interface com.atlassian.mywork.service.RegistrationService
register
 

Method Detail

get

Registration get(Registration.RegistrationId id)
Returns a registration for a provider with the given application id

Parameters:
id - application id
Returns:
registration for a provider

getAll

com.atlassian.fugue.Option<com.atlassian.fugue.Pair<java.util.List<Registration>,java.util.Date>> getAll(java.util.Date ifModifiedSince)
Returns all the currently stored registrations, only return if updates have occurred.

Parameters:
ifModifiedSince - time rounded down the nearest second.
Returns:
all registrations and the last modified time, or .

getLastModified

java.util.Date getLastModified()
Returns:
the last modified date of the Registration.

getCacheValue

java.lang.String getCacheValue(java.util.Locale locale)
Returns:
a unique value for this registration include locale and date for caching.


Copyright © 2012 Atlassian. All Rights Reserved.