com.atlassian.jira.permission
Class MockProjectPermission

java.lang.Object
  extended by com.atlassian.jira.permission.MockProjectPermission
All Implemented Interfaces:
ProjectPermission

public class MockProjectPermission
extends Object
implements ProjectPermission

Since:
v6.3

Constructor Summary
MockProjectPermission(String key, String nameKey, String descriptionKey, ProjectPermissionCategory category)
           
 
Method Summary
 ProjectPermissionCategory getCategory()
           
 com.atlassian.plugin.web.Condition getCondition()
           
 String getDescriptionI18nKey()
           
 String getKey()
           
 String getNameI18nKey()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockProjectPermission

public MockProjectPermission(String key,
                             String nameKey,
                             String descriptionKey,
                             ProjectPermissionCategory category)
Method Detail

getKey

public String getKey()
Specified by:
getKey in interface ProjectPermission
Returns:
unique key of this project permission.

getNameI18nKey

public String getNameI18nKey()
Specified by:
getNameI18nKey in interface ProjectPermission
Returns:
i18n key of this permission's name. Cannot be null.

getDescriptionI18nKey

public String getDescriptionI18nKey()
Specified by:
getDescriptionI18nKey in interface ProjectPermission
Returns:
i18n key of this permission's description. Can be null.

getCategory

public ProjectPermissionCategory getCategory()
Specified by:
getCategory in interface ProjectPermission
Returns:
category of this permission. Cannot be null.

getCondition

public com.atlassian.plugin.web.Condition getCondition()
Specified by:
getCondition in interface ProjectPermission
Returns:
condition to determine the availability of this permission. Cannot be null.


Copyright © 2002-2014 Atlassian. All Rights Reserved.