com.jalios.jcmsplugin.comment
Class CommentRightPolicyFilter

java.lang.Object
  extended by com.jalios.jcms.policy.AbstractPolicyFilter
      extended by com.jalios.jcms.policy.BasicRightPolicyFilter
          extended by 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

Field Summary
static String REVISION
           
protected  boolean typeRights
           
protected  boolean typeRightsSet
           
 
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
order
 
Constructor Summary
CommentRightPolicyFilter()
           
 
Method Summary
 boolean canBeReadBy(boolean isAuthorized, Publication pub, Group grp)
          Called by Publication.canBeReadBy(Group).
 boolean canBeReadBy(boolean isAuthorized, Publication pub, Member mbr, boolean searchInGroups)
          Called by Publication.canBeReadBy(Member, boolean).
 boolean canWorkOn(boolean isAuthorized, Publication pub, Member member)
          Called by Member.canWorkOn(Publication).
 
Methods inherited from class com.jalios.jcms.policy.BasicRightPolicyFilter
canBeReadBy, canBeReadBy, canCreateWorkspace, canDeleteOther, canDeleteOther, canManageCategory, canPublish, canUpdateOther, canUpdateOther, canUseCategory, checkAfterUpload, checkBeforeUpload, checkHtml, init, isWorker
 
Methods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
compareTo, equals, getOrder, setOrder
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jalios.jcms.plugin.PluginComponent
init
 
Methods inherited from interface com.jalios.jcms.policy.RightPolicyFilter
getOrder
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

typeRights

protected boolean typeRights

typeRightsSet

protected boolean typeRightsSet
Constructor Detail

CommentRightPolicyFilter

public CommentRightPolicyFilter()
Method Detail

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 action
pub - the publication to check
mbr - the member to check
searchInGroups - 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 action
pub - the publication to check
grp - 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 action
pub - the publication to check
member - 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.