com.atlassian.greenhopper.cache.layout
Class GlobalLayoutsCacheKey

java.lang.Object
  extended by com.atlassian.greenhopper.cache.layout.GlobalLayoutsCacheKey
All Implemented Interfaces:
java.io.Serializable

public class GlobalLayoutsCacheKey
extends java.lang.Object
implements java.io.Serializable

Key used for caching by LayoutsCache. This key is not specific to a particular issue type.

See Also:
Serialized Form

Method Summary
static GlobalLayoutsCacheKey create(AbstractLayouts layouts, Configuration configuration)
           
static GlobalLayoutsCacheKey deserialise(java.lang.String serialisedKey)
          Poor implementation of deserialisation to work around the fact that our distributed cache can't seem to handle class keys that aren't in core JIRA.
 boolean equals(java.lang.Object o)
           
 java.lang.String getConfigurationId()
           
 ConfigurationType getConfigurationType()
           
 LayoutType getLayoutType()
           
 int hashCode()
           
 boolean matches(IssueTypeLayoutsCacheKey issueTypeLayoutsCacheKey)
           
static java.lang.String serialise(GlobalLayoutsCacheKey key)
          Poor implementation of serialisation to work around the fact that our distributed cache can't seem to handle class keys that aren't in core JIRA.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static GlobalLayoutsCacheKey create(@Nonnull
                                           AbstractLayouts layouts,
                                           @Nonnull
                                           Configuration configuration)

matches

public boolean matches(IssueTypeLayoutsCacheKey issueTypeLayoutsCacheKey)

getLayoutType

@Nonnull
public LayoutType getLayoutType()

getConfigurationType

@Nonnull
public ConfigurationType getConfigurationType()

getConfigurationId

@Nonnull
public java.lang.String getConfigurationId()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

serialise

@Nonnull
public static java.lang.String serialise(@Nonnull
                                                 GlobalLayoutsCacheKey key)
Poor implementation of serialisation to work around the fact that our distributed cache can't seem to handle class keys that aren't in core JIRA.

Parameters:
key - the key
Returns:
a serialised form of the key

deserialise

@Nonnull
public static GlobalLayoutsCacheKey deserialise(@Nonnull
                                                        java.lang.String serialisedKey)
Poor implementation of deserialisation to work around the fact that our distributed cache can't seem to handle class keys that aren't in core JIRA.

Parameters:
serialisedKey - the key serialised
Returns:
a deserialised form of the key


Copyright © 2007-2014 Atlassian. All Rights Reserved.