Class WikiItemAttributePermission
java.lang.Object
fr.paris.lutece.plugins.wiki.business.permission.WikiItemAttributePermission
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the label of the attribute, as shown to whoever granted the rule.Returns the directory attribute the rule applies to.Returns the attribute value a user must carry to be granted.intReturns the wiki item identifier.Returns the permission type, VIEW or EDIT.voidsetAttributeLabel(String strAttributeLabel) Sets the label of the attribute.voidsetAttributeName(String strAttributeName) Sets the directory attribute the rule applies to.voidsetAttributeValue(String strAttributeValue) Sets the attribute value a user must carry to be granted.voidsetIdItem(int nIdItem) Sets the wiki item identifier.voidsetPermissionType(String strPermissionType) Sets the permission type.
-
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
Returns the directory attribute the rule applies to.- Returns:
- the attribute name
-
setAttributeName
Sets the directory attribute the rule applies to.- Parameters:
strAttributeName- the attribute name
-
getAttributeValue
Returns the attribute value a user must carry to be granted.- Returns:
- the attribute value
-
setAttributeValue
Sets the attribute value a user must carry to be granted.- Parameters:
strAttributeValue- the attribute value
-
getAttributeLabel
Returns the label of the attribute, as shown to whoever granted the rule.- Returns:
- the attribute label
-
setAttributeLabel
Sets the label of the attribute.- Parameters:
strAttributeLabel- the attribute label
-
getPermissionType
Returns the permission type, VIEW or EDIT.- Returns:
- the permission type
-
setPermissionType
Sets the permission type.- Parameters:
strPermissionType- the permission type
-