Package com.jalios.jcms.trash
Class TrashRightPolicyFilter
java.lang.Object
com.jalios.jcms.policy.AbstractPolicyFilter
com.jalios.jcms.policy.BasicRightPolicyFilter
com.jalios.jcms.trash.TrashRightPolicyFilter
- All Implemented Interfaces:
PluginComponent,PolicyFilter,RightPolicyFilter,Comparable
Controls read acces to Trashed publications.
- Since:
- jcms-10.0.5 / JCMS-8353
-
Field Summary
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
orderFields inherited from interface com.jalios.jcms.policy.RightPolicyFilter
CTXT_CATEGORIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancallCanBeReadBy(PublicationCriteria pubCriteria) booleancanBeReadBy(boolean isAuthorized, Publication pub, Member mbr, boolean searchInGroups) Called byPublication.canBeReadBy(Member, boolean).Methods inherited from class com.jalios.jcms.policy.BasicRightPolicyFilter
callCanBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canCreateContact, canCreateWorkspace, canDeleteOther, canDeleteOther, canManageCategory, canPublish, canUpdateOther, canUpdateOther, canUseCategory, canWorkOn, canWorkOn, checkAccess, checkAfterUpload, checkBeforeUpload, checkHtml, getWorkspaceSet, init, isAdmin, isWorkerMethods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
compareTo, equals, getOrder, setOrderMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.jalios.jcms.policy.RightPolicyFilter
getOrder
-
Constructor Details
-
TrashRightPolicyFilter
public TrashRightPolicyFilter()
-
-
Method Details
-
canBeReadBy
public boolean canBeReadBy(boolean isAuthorized, Publication pub, Member mbr, boolean searchInGroups) Description copied from interface:RightPolicyFilterCalled 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:
canBeReadByin interfaceRightPolicyFilter- Overrides:
canBeReadByin 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:
-
callCanBeReadBy
Description copied from interface:RightPolicyFilterCall byHibernateUtil.queryPublication(PublicationCriteria). It checks if the methodRightPolicyFilter.canBeReadBy(boolean, Publication, Member, boolean)must be called on the results of the query.- Specified by:
callCanBeReadByin interfaceRightPolicyFilter- Overrides:
callCanBeReadByin classBasicRightPolicyFilter- Parameters:
pubCriteria- the criteria of the query.- Returns:
- true if method
RightPolicyFilter.canBeReadBy(boolean, Publication, Member, boolean)must be called. - See Also:
-