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 Object
implements SecurityType


Constructor Summary
AbstractSecurityType()
           
 
Method Summary
 String getArgumentDisplay(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 String getArgumentDisplay(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-2012 Atlassian. All Rights Reserved.