com.atlassian.greenhopper.cache.layout
Class IssueTypeLayoutsCacheKey

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

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

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

See Also:
Serialized Form

Method Summary
static IssueTypeLayoutsCacheKey create(AbstractLayouts layouts, Configuration configuration, java.lang.String issueTypeId)
           
static IssueTypeLayoutsCacheKey create(GlobalLayoutsCacheKey globalLayoutsCacheKey, java.lang.String issueTypeId)
           
static IssueTypeLayoutsCacheKey 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()
           
 java.lang.String getIssueTypeId()
           
 LayoutType getLayoutType()
           
 int hashCode()
           
static java.lang.String serialise(IssueTypeLayoutsCacheKey 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 IssueTypeLayoutsCacheKey create(@Nonnull
                                              AbstractLayouts layouts,
                                              @Nonnull
                                              Configuration configuration,
                                              @Nonnull
                                              java.lang.String issueTypeId)

create

public static IssueTypeLayoutsCacheKey create(@Nonnull
                                              GlobalLayoutsCacheKey globalLayoutsCacheKey,
                                              @Nonnull
                                              java.lang.String issueTypeId)

getLayoutType

@Nonnull
public LayoutType getLayoutType()

getConfigurationType

@Nonnull
public ConfigurationType getConfigurationType()

getConfigurationId

@Nonnull
public java.lang.String getConfigurationId()

getIssueTypeId

public java.lang.String getIssueTypeId()

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
                                                 IssueTypeLayoutsCacheKey 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 IssueTypeLayoutsCacheKey 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.