Class WikiItemAttributePermission

java.lang.Object
fr.paris.lutece.plugins.wiki.business.permission.WikiItemAttributePermission

public class WikiItemAttributePermission extends Object
A permission granted to everyone sharing a directory attribute value, rather than to named users. A population such as "everyone in DSIN" changes as people join and leave, so listing its members would go stale the day it is written. The rule is stored instead, and evaluated against the attributes the signed-in user carries.
  • Constructor Details

    • WikiItemAttributePermission

      public WikiItemAttributePermission()
  • Method Details

    • getIdItem

      public int getIdItem()
      Returns the wiki item identifier.
      Returns:
      the item identifier
    • setIdItem

      public void setIdItem(int nIdItem)
      Sets the wiki item identifier.
      Parameters:
      nIdItem - the item identifier
    • getAttributeName

      public String getAttributeName()
      Returns the directory attribute the rule applies to.
      Returns:
      the attribute name
    • setAttributeName

      public void setAttributeName(String strAttributeName)
      Sets the directory attribute the rule applies to.
      Parameters:
      strAttributeName - the attribute name
    • getAttributeValue

      public String getAttributeValue()
      Returns the attribute value a user must carry to be granted.
      Returns:
      the attribute value
    • setAttributeValue

      public void setAttributeValue(String strAttributeValue)
      Sets the attribute value a user must carry to be granted.
      Parameters:
      strAttributeValue - the attribute value
    • getAttributeLabel

      public String getAttributeLabel()
      Returns the label of the attribute, as shown to whoever granted the rule.
      Returns:
      the attribute label
    • setAttributeLabel

      public void setAttributeLabel(String strAttributeLabel)
      Sets the label of the attribute.
      Parameters:
      strAttributeLabel - the attribute label
    • getPermissionType

      public String getPermissionType()
      Returns the permission type, VIEW or EDIT.
      Returns:
      the permission type
    • setPermissionType

      public void setPermissionType(String strPermissionType)
      Sets the permission type.
      Parameters:
      strPermissionType - the permission type