com.atlassian.jira.scheme
Interface SchemeType

All Known Subinterfaces:
SecurityType
All Known Implementing Classes:
AbstractSecurityType

public interface SchemeType


Method Summary
 boolean doValidation(String key, Map parameters)
           
 String getDisplayName()
           
 String getType()
           
 boolean hasPermission(org.ofbiz.core.entity.GenericValue entity, String argument)
          Interface for determining if a permission type has the permission.
 boolean hasPermission(org.ofbiz.core.entity.GenericValue entity, String argument, User user, boolean issueCreation)
          Interface for determining if a permission type has the permission
 

Method Detail

getDisplayName

public String getDisplayName()

getType

public String getType()

doValidation

public boolean doValidation(String key,
                            Map parameters)

hasPermission

public boolean hasPermission(org.ofbiz.core.entity.GenericValue entity,
                             String argument)
Interface for determining if a permission type has the permission.

This method is called if there is no Remote User (ie anonymous)

Parameters:
entity - This is the issue or the project that the security is being checked for
argument - If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for {@link com.atlassian.jira.security.type.GroupDropdown)

hasPermission

public boolean hasPermission(org.ofbiz.core.entity.GenericValue entity,
                             String argument,
                             User user,
                             boolean issueCreation)
Interface for determining if a permission type has the permission

Parameters:
entity - This is the issue or the project that the security is being checked for
argument - If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for {@link com.atlassian.jira.security.type.GroupDropdown)
user - The user for whom the permission is being checked
issueCreation - Whether this permission is being checked during issue creation


Copyright © 2002-2006 Atlassian. All Rights Reserved.