Class MCRAccessRule

java.lang.Object
org.mycore.access.mcrimpl.MCRAccessRule
All Implemented Interfaces:
MCRAccessRule

public class MCRAccessRule extends Object implements MCRAccessRule
  • Constructor Details

  • Method Details

    • checkAccess

      @Deprecated public boolean checkAccess(String userID, Date date, MCRIPAddress ip)
      Deprecated.
    • checkAccess

      public boolean checkAccess(MCRUserInformation userInfo, Date date, MCRIPAddress ip)
    • getRule

      public MCRCondition<MCRAccessData> getRule()
    • setRule

      public void setRule(String rule)
    • getRuleString

      public String getRuleString()
    • getCreationTime

      public Date getCreationTime()
    • setCreationTime

      public void setCreationTime(Date creationTime)
    • getCreator

      public String getCreator()
    • setCreator

      public void setCreator(String creator)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getRuleElement

      public Element getRuleElement()
    • validate

      public boolean validate()
      Description copied from interface: MCRAccessRule
      determines whether the current user has the permission to perform a certain action.
      Specified by:
      validate in interface MCRAccessRule
      Returns:
      true if the permission is granted, else false