public class ParentReadRightPolicyFilter extends BasicRightPolicyFilter
|Constructor and Description|
Builds a new instance to control read access of ALL Publication types.
Builds a new instance to control read access for the specified type and subtype.
|Modifier and Type||Method and Description|
callCanBeReadBy, callCanBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canCreateContact, canCreateWorkspace, canDeleteOther, canDeleteOther, canManageCategory, canPublish, canUpdateOther, canUpdateOther, canUseCategory, canWorkOn, canWorkOn, checkAccess, checkAfterUpload, checkBeforeUpload, checkHtml, getWorkspaceSet, init, isAdmin, isWorker
compareTo, equals, getOrder, setOrder
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ParentReadRightPolicyFilter(java.lang.Class<? extends Publication> controlledClazz)
controlledClazz- the type of publication for which control must be performed (e.g FaqEntry.class, GlossaryEntry.class, ...), controlled is performe for all publications if null is specifed
public boolean canBeReadBy(boolean isAuthorized, Publication pub, Member mbr, boolean searchInGroups)
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.
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.
RightPolicyFilter.canBeReadBy(boolean, Publication, Member, boolean)
Copyright © 2001-2021 Jalios SA. All Rights Reserved.