Class MemberImportVisibleWorkspaceSelector

  • All Implemented Interfaces:
    DataSelector, java.util.function.Predicate<Data>

    public class MemberImportVisibleWorkspaceSelector
    extends java.lang.Object
    implements DataSelector
    Keep the workspace object if :
    • it is not a collaborative space
    • or, the member is not null, and belongs to the collaborative space
    • or, the collaborative space has public or private but not secret access (see CSP-120).
    Else, does remove the workspace.
    Since:
    jcms-10.0.8 / JCMS-10510
    • Constructor Detail

      • MemberImportVisibleWorkspaceSelector

        public MemberImportVisibleWorkspaceSelector​(Member mbr)
    • Method Detail

      • getCollaborativeSpaceClazz

        public java.lang.Class<Publication> getCollaborativeSpaceClazz()
      • setCollaborativeSpaceClazz

        public void setCollaborativeSpaceClazz​(java.lang.Class<Publication> collaborativeSpaceClazz)
      • isSelected

        public boolean isSelected​(Data data)
        Description copied from interface: DataSelector
        Evaluates if a data must be selected or not.
        Specified by:
        isSelected in interface DataSelector
        Parameters:
        data - the data to evaluate.
        Returns:
        true if the data is selected. False otherwise.