com.jalios.jcms
Class ReviewRightPolicyFilter
java.lang.Object
com.jalios.jcms.policy.AbstractPolicyFilter
com.jalios.jcms.policy.BasicRightPolicyFilter
com.jalios.jcms.ReviewRightPolicyFilter
- All Implemented Interfaces:
- PluginComponent, PolicyFilter, RightPolicyFilter, Comparable
public class ReviewRightPolicyFilter
- extends BasicRightPolicyFilter
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 |
ReviewRightPolicyFilter
public ReviewRightPolicyFilter()
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 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)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.