com.atlassian.mywork.host.service
Class LocalRegistrationServiceImpl
java.lang.Object
com.atlassian.mywork.host.service.LocalRegistrationServiceImpl
- All Implemented Interfaces:
- LocalRegistrationService, RegistrationService
public class LocalRegistrationServiceImpl
- extends java.lang.Object
- implements LocalRegistrationService
|
Field Summary |
static java.lang.String |
ID_HOST
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID_HOST
public static final java.lang.String ID_HOST
- See Also:
- Constant Field Values
LocalRegistrationServiceImpl
public LocalRegistrationServiceImpl(RegistrationDao dao,
ClientRegistrationService clientRegistrationService,
com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
register
public void register(java.lang.Iterable<Registration> registrations)
- Specified by:
register in interface RegistrationService
register
protected void register(Registration registration,
java.util.Date date)
- Only update the registration details if they change.
This has a small cost, but it is expected that register is called infrequently.
- Parameters:
registration - registration to handledate - when registration happened
getAll
public com.atlassian.fugue.Option<com.atlassian.fugue.Pair<java.util.List<Registration>,java.util.Date>> getAll(java.util.Date ifModifiedSince)
- Description copied from interface:
LocalRegistrationService
- Returns all the currently stored registrations, only return if updates have occurred.
- Specified by:
getAll in interface LocalRegistrationService
- Parameters:
ifModifiedSince - time rounded down the nearest second.
- Returns:
- all registrations and the last modified time, or .
getLastModified
public java.util.Date getLastModified()
- Specified by:
getLastModified in interface LocalRegistrationService
- Returns:
- the last modified date of the Registration.
getCacheValue
public java.lang.String getCacheValue(java.util.Locale locale)
- Specified by:
getCacheValue in interface LocalRegistrationService
- Returns:
- a unique value for this registration include locale and date for caching.
get
public Registration get(Registration.RegistrationId id)
- Description copied from interface:
LocalRegistrationService
- Returns a registration for a provider with the given application id
- Specified by:
get in interface LocalRegistrationService
- Parameters:
id - application id
- Returns:
- registration for a provider
Copyright © 2012 Atlassian. All Rights Reserved.