MotechURLSecurityRule

public class MotechURLSecurityRule

The MotechURLSecurityRule specifies the configuration for setting up a Spring SecurityFilterChain.

Details regarding configuration:

  • pattern - URL pattern the security rule applies to
  • supportedSchemes - Security rules that should apply to the URL, such as BASIC or OPEN_ID
  • protocol - Protocol the security rule applies to, such as HTTP or HTTPS
  • permissionAccess - Requires user has at least one of the listed permission to access the URL
  • userAccess - User specific access for a URL, such as motech or admin, when combined with permission access they act as an either or (one must be true)
  • priority - For future use in determining the ordering of filter chains, may be deprecated depending on UI implementation
  • rest - Whether the endpoint is meant for a form login process or as an REST end-point that does not create a session for the
  • origin - The module or user the rule originated from
  • version - The version of the module or platform the rule was created
  • methodsRequired - HTTP methods the rule applies to, if ANY is used then any method is matched, if a set is used, such as GET, POST, etc, then each will have its own corresponding filter chain with the same security found in that rule

Methods

getId

public Long getId()

getMethodsRequired

public List<HTTPMethod> getMethodsRequired()

getOrigin

public String getOrigin()

getPattern

public String getPattern()

getPermissionAccess

public List<String> getPermissionAccess()

getPriority

public int getPriority()

getProtocol

public Protocol getProtocol()

getSupportedSchemes

public List<Scheme> getSupportedSchemes()

getUserAccess

public List<String> getUserAccess()

getVersion

public String getVersion()

isActive

public boolean isActive()

isDeleted

public boolean isDeleted()

isRest

public boolean isRest()

setActive

public void setActive(boolean active)

setDeleted

public void setDeleted(boolean deleted)

setId

public void setId(Long id)

setMethodsRequired

public void setMethodsRequired(List<HTTPMethod> methodsRequired)

setOrigin

public void setOrigin(String origin)

setPattern

public void setPattern(String pattern)

setPermissionAccess

public void setPermissionAccess(List<String> permissionAccess)

setPriority

public void setPriority(int priority)

setProtocol

public void setProtocol(Protocol protocol)

setRest

public void setRest(boolean rest)

setSupportedSchemes

public void setSupportedSchemes(List<Scheme> supportedSchemes)

setUserAccess

public void setUserAccess(List<String> userAccess)

setVersion

public void setVersion(String version)

toString

public String toString()