com.jalios.jcmsplugin.comment
Class CommentRightPolicyFilter
java.lang.Object
com.jalios.jcms.policy.AbstractPolicyFilter
com.jalios.jcms.policy.BasicRightPolicyFilter
com.jalios.jcmsplugin.comment.CommentRightPolicyFilter
- All Implemented Interfaces:
- PluginComponent, PolicyFilter, RightPolicyFilter, Comparable
public class CommentRightPolicyFilter
- extends BasicRightPolicyFilter
- implements PluginComponent
CommentRightPolicyFilter check if the given publication
is a Comment then delegate rights on Comment TreeParent's
applied rights.
- Since:
- jcms-5.7.0
- Version:
- $Revision: 19225 $
- Author:
- Jean-Philippe Encausse
Methods inherited from class com.jalios.jcms.policy.BasicRightPolicyFilter |
canBeReadBy, canBeReadBy, canCreateWorkspace, canDeleteOther, canDeleteOther, canManageCategory, canPublish, canUpdateOther, canUpdateOther, canUseCategory, checkAfterUpload, checkBeforeUpload, checkHtml, init, isWorker |
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
typeRights
protected boolean typeRights
typeRightsSet
protected boolean typeRightsSet
CommentRightPolicyFilter
public CommentRightPolicyFilter()
canBeReadBy
public boolean canBeReadBy(boolean isAuthorized,
Publication pub,
Member mbr,
boolean searchInGroups)
- Description copied from interface:
RightPolicyFilter
- Called by
Publication.canBeReadBy(Member, boolean)
. It checks if
a member can read the given publication.
WARNING: HIGHLY SENSIBLE, do not modify without being sure of what you do,
can dramatically impact performance and can break existing rights behaviour.
- Specified by:
canBeReadBy
in interface RightPolicyFilter
- Overrides:
canBeReadBy
in class BasicRightPolicyFilter
- Parameters:
isAuthorized
- true if internal JCMS control authorized the member to perform this actionpub
- the publication to checkmbr
- the member to checksearchInGroups
- if true check if one of the group this
member belongs to is authorized to read this publication.
- Returns:
- true if the member can read this publication
- See Also:
RightPolicyFilter.canBeReadBy(boolean, Publication, Member, boolean)
canBeReadBy
public boolean canBeReadBy(boolean isAuthorized,
Publication pub,
Group grp)
- Description copied from interface:
RightPolicyFilter
- Called by
Publication.canBeReadBy(Group)
. It checks if
a group can read this publication.
- Specified by:
canBeReadBy
in interface RightPolicyFilter
- Overrides:
canBeReadBy
in class BasicRightPolicyFilter
- Parameters:
isAuthorized
- true if internal JCMS control authorized the member to perform this actionpub
- the publication to checkgrp
- the group to check
- Returns:
- true if the group can read this publication
- See Also:
RightPolicyFilter.canBeReadBy(boolean, Publication, Group)
canWorkOn
public boolean canWorkOn(boolean isAuthorized,
Publication pub,
Member member)
- Description copied from interface:
RightPolicyFilter
- Called by
Member.canWorkOn(Publication)
. It checks if the
given member can work on the given publication (ie, if it has the
rights and if it is in a state the member can work in).
- Specified by:
canWorkOn
in interface RightPolicyFilter
- Overrides:
canWorkOn
in class BasicRightPolicyFilter
- Parameters:
isAuthorized
- true if internal JCMS control authorized the member to perform this actionpub
- the publication to checkmember
- the member to check
- Returns:
- true if the member can work on the publication
- See Also:
RightPolicyFilter.canWorkOn(boolean, Publication, Member)
Copyright © 2001-2007 Jalios SA. All Rights Reserved.