com.atlassian.jira.project.util
Class ProjectKeyStoreImpl

java.lang.Object
  extended by com.atlassian.jira.project.util.ProjectKeyStoreImpl
All Implemented Interfaces:
ProjectKeyStore

public class ProjectKeyStoreImpl
extends Object
implements ProjectKeyStore

Since:
v6.1

Field Summary
static String PROJECT_ID
           
static String PROJECT_KEY
           
 
Constructor Summary
ProjectKeyStoreImpl(OfBizDelegator ofBizDelegator)
           
 
Method Summary
 void addProjectKey(Long projectId, String projectKey)
           
 void deleteProjectKeys(Long projectId)
           
 Map<String,Long> getAllProjectKeys()
           
 Long getProjectId(String key)
           
 Long getProjectIdByKeyIgnoreCase(String projectKey)
           
 Set<String> getProjectKeys(Long projectId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROJECT_KEY

public static final String PROJECT_KEY
See Also:
Constant Field Values

PROJECT_ID

public static final String PROJECT_ID
See Also:
Constant Field Values
Constructor Detail

ProjectKeyStoreImpl

public ProjectKeyStoreImpl(OfBizDelegator ofBizDelegator)
Method Detail

getProjectId

public Long getProjectId(String key)
Specified by:
getProjectId in interface ProjectKeyStore

addProjectKey

public void addProjectKey(Long projectId,
                          String projectKey)
Specified by:
addProjectKey in interface ProjectKeyStore

deleteProjectKeys

public void deleteProjectKeys(Long projectId)
Specified by:
deleteProjectKeys in interface ProjectKeyStore

getAllProjectKeys

@Nonnull
public Map<String,Long> getAllProjectKeys()
Specified by:
getAllProjectKeys in interface ProjectKeyStore

getProjectIdByKeyIgnoreCase

@Nullable
public Long getProjectIdByKeyIgnoreCase(String projectKey)
Specified by:
getProjectIdByKeyIgnoreCase in interface ProjectKeyStore

getProjectKeys

@Nonnull
public Set<String> getProjectKeys(Long projectId)
Specified by:
getProjectKeys in interface ProjectKeyStore


Copyright © 2002-2014 Atlassian. All Rights Reserved.