com.atlassian.jira.security.type
Class AbstractSecurityType

java.lang.Object
  extended by com.atlassian.jira.security.type.AbstractSecurityType
All Implemented Interfaces:
SchemeType, SecurityType
Direct Known Subclasses:
AbstractIssueFieldSecurityType, AbstractProjectsSecurityType

public abstract class AbstractSecurityType
extends java.lang.Object
implements SecurityType


Constructor Summary
AbstractSecurityType()
           
 
Method Summary
 java.lang.String getArgumentDisplay(java.lang.String argument)
           
 boolean isValidForPermission(int permissionId)
          This abstract class will always return true for this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.security.type.SecurityType
getQuery, getQuery, getUsers
 
Methods inherited from interface com.atlassian.jira.scheme.SchemeType
doValidation, getDisplayName, getType, hasPermission, hasPermission
 

Constructor Detail

AbstractSecurityType

public AbstractSecurityType()
Method Detail

getArgumentDisplay

public java.lang.String getArgumentDisplay(java.lang.String argument)
Specified by:
getArgumentDisplay in interface SecurityType

isValidForPermission

public boolean isValidForPermission(int permissionId)
This abstract class will always return true for this method. This is the required behaviour for almost all subclasses. Only weird subclasses like CurrentReporterHasCreatePermission will override this.

Specified by:
isValidForPermission in interface SchemeType
Parameters:
permissionId - the id of the permission.
Returns:
true always for this abstract class. see SecurityType#isValidForPermission see CurrentReporterHasCreatePermission#isValidForPermission
See Also:
CurrentReporterHasCreatePermission


Copyright © 2002-2010 Atlassian. All Rights Reserved.