Package com.jalios.jcms
Class FormRightPolicyFilter
- java.lang.Object
-
- com.jalios.jcms.policy.AbstractPolicyFilter
-
- com.jalios.jcms.policy.BasicRightPolicyFilter
-
- com.jalios.jcms.FormRightPolicyFilter
-
- All Implemented Interfaces:
PluginComponent
,PolicyFilter
,RightPolicyFilter
,java.lang.Comparable
public class FormRightPolicyFilter extends BasicRightPolicyFilter
-
-
Field Summary
-
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 FormRightPolicyFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeReadBy(boolean isAuthorized, Publication pub, Group group)
Called byPublication.canBeReadBy(Group)
.boolean
canBeReadBy(boolean isAuthorized, Publication pub, Member member, boolean searchInGroups)
Called byPublication.canBeReadBy(Member, boolean)
.protected static boolean
isDefaultPrivacySkipped(Form form)
-
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 member, boolean searchInGroups)
Description copied from interface:RightPolicyFilter
Called byPublication.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 interfaceRightPolicyFilter
- Overrides:
canBeReadBy
in classBasicRightPolicyFilter
- Parameters:
isAuthorized
- true if internal JCMS control authorized the member to perform this actionpub
- the publication to checkmember
- 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 group)
Description copied from interface:RightPolicyFilter
Called byPublication.canBeReadBy(Group)
. It checks if a group can read this 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 checkgroup
- the group to check- Returns:
- true if the group can read this publication
- See Also:
RightPolicyFilter.canBeReadBy(boolean, Publication, Group)
-
isDefaultPrivacySkipped
protected static boolean isDefaultPrivacySkipped(Form form)
- Parameters:
form
- the form to check if it is protected by default (depending on its clazz)- Returns:
- false by default, or true if skip property has been defined on given form clazz.
- See Also:
Form.SKIP_DEFAULT_PRIVACY_PROP_PREFIX
-
-