Package com.jalios.jcms.shortcut
Class ShortcutRightPolicyFilter
- java.lang.Object
-
- com.jalios.jcms.policy.AbstractPolicyFilter
-
- com.jalios.jcms.policy.BasicRightPolicyFilter
-
- com.jalios.jcms.shortcut.ShortcutRightPolicyFilter
-
- All Implemented Interfaces:
PluginComponent
,PolicyFilter
,RightPolicyFilter
,java.lang.Comparable
public class ShortcutRightPolicyFilter extends BasicRightPolicyFilter
-
-
Field Summary
-
Fields inherited from class com.jalios.jcms.policy.BasicRightPolicyFilter
REVISION
-
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
order
-
Fields inherited from interface com.jalios.jcms.policy.RightPolicyFilter
CTXT_CATEGORIES
-
-
Constructor Summary
Constructors Constructor Description ShortcutRightPolicyFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeReadBy(boolean isAuthorized, Publication pub, Group grp)
If shortcut targets a Publication, Group can read shortcut only if it can read the publication.boolean
canBeReadBy(boolean isAuthorized, Publication pub, Member mbr, boolean searchInGroups)
If shortcut targets a Publication, Member can read shortcut only if he can read the publication.-
Methods inherited from class com.jalios.jcms.policy.BasicRightPolicyFilter
callCanBeReadBy, callCanBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canCreateContact, 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
-
-
-
-
Method Detail
-
canBeReadBy
public boolean canBeReadBy(boolean isAuthorized, Publication pub, Member mbr, boolean searchInGroups)
If shortcut targets a Publication, Member can read shortcut only if he can read the publication.- Specified by:
canBeReadBy
in interfaceRightPolicyFilter
- Overrides:
canBeReadBy
in classBasicRightPolicyFilter
- 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)
If shortcut targets a Publication, Group can read shortcut only if it can read the publication.- Specified by:
canBeReadBy
in interfaceRightPolicyFilter
- Overrides:
canBeReadBy
in classBasicRightPolicyFilter
- 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)
-
-