com.jalios.jcms
Class ReviewRightPolicyFilter

java.lang.Object
  extended by com.jalios.jcms.policy.AbstractPolicyFilter
      extended by com.jalios.jcms.policy.BasicRightPolicyFilter
          extended by com.jalios.jcms.ReviewRightPolicyFilter
All Implemented Interfaces:
PluginComponent, PolicyFilter, RightPolicyFilter, Comparable

public class ReviewRightPolicyFilter
extends BasicRightPolicyFilter


Field Summary
 
Fields inherited from class com.jalios.jcms.policy.BasicRightPolicyFilter
REVISION
 
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
order
 
Constructor Summary
ReviewRightPolicyFilter()
           
 
Method Summary
 boolean callCanBeReadBy(Class clazz)
          This convenient method is a simplfied version of BasicRightPolicyFilter.callCanBeReadBy(PublicationCriteria).
 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).
 
Methods inherited from class com.jalios.jcms.policy.BasicRightPolicyFilter
callCanBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canCreateWorkspace, canDeleteOther, canDeleteOther, canManageCategory, canPublish, canUpdateOther, canUpdateOther, canUseCategory, canWorkOn, canWorkOn, checkAccess, checkAfterUpload, checkBeforeUpload, checkHtml, getWorkspaceSet, init, isAdmin, 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.policy.RightPolicyFilter
getOrder
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

ReviewRightPolicyFilter

public ReviewRightPolicyFilter()
Method Detail

callCanBeReadBy

public boolean callCanBeReadBy(Class clazz)
Description copied from class: BasicRightPolicyFilter
This convenient method is a simplfied version of BasicRightPolicyFilter.callCanBeReadBy(PublicationCriteria).

Overrides:
callCanBeReadBy in class BasicRightPolicyFilter
Parameters:
clazz - the class to check (never null)
Returns:
true if the method BasicRightPolicyFilter.canBeReadBy(boolean, Publication, Member, boolean) must be called for the given class.

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)


Copyright © 2001-2010 Jalios SA. All Rights Reserved.