com.atlassian.jira.permission
Class MockProjectPermission
java.lang.Object
com.atlassian.jira.permission.MockProjectPermission
- All Implemented Interfaces:
- ProjectPermission
public class MockProjectPermission
- extends Object
- implements ProjectPermission
- Since:
- v6.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockProjectPermission
public MockProjectPermission(String key,
String nameKey,
String descriptionKey,
ProjectPermissionCategory category)
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.