Class SharedContentsHelper

    • Method Detail

      • getSharedContentsExpression

        public static Expression getSharedContentsExpression​(Site currentSite,
                                                             Site site)
        Get the expression for shared contents
        Parameters:
        currentSite - the current site
        site - the site of contents to find
        Returns:
        the expression to aware of privacy of contents or null if sites are equals
      • getSharedContentsExpressionForPrivateClosedSites

        public static Expression getSharedContentsExpressionForPrivateClosedSites​(List<String> siteNames)
        Get the expression corresponding to the shared contents of privates sites
        Parameters:
        siteNames - the site names of private and closed sites
        Returns:
        the expression corresponding to the shared contents of privates sites
      • getSharedContentsExpressionForPublicOrProtectedClosedSites

        public static Expression getSharedContentsExpressionForPublicOrProtectedClosedSites​(List<String> siteNames)
        Get the expression corresponding to the shared contents of public or protected sites
        Parameters:
        siteNames - the list of public or protected sites
        Returns:
        the expression corresponding to the shared contents of public or protected sites
      • getSharedContentsExpressionForPublicOutsideSites

        public static Expression getSharedContentsExpressionForPublicOutsideSites​(List<String> siteNames)
        Get the expression corresponding to the shared contents of public sites
        Parameters:
        siteNames - the list of public sites
        Returns:
        the expression corresponding to the shared contents of public sites
      • getSharedContentsExpressionForPrivateOrProtectedOutsideSites

        public static Expression getSharedContentsExpressionForPrivateOrProtectedOutsideSites​(List<String> siteNames)
        Get the expression corresponding to the shared contents of private or protected sites
        Parameters:
        siteNames - the list of private or protected sites
        Returns:
        the expression corresponding to the shared contents of private or protected sites
      • getContentAccessQuery

        public static Query getContentAccessQuery​(Site currentSite,
                                                  Site site)
        Get the expression for shared contents
        Parameters:
        currentSite - the current site
        site - the site of contents to find
        Returns:
        the expression to aware of privacy of contents or null if sites are equals
      • getContentAccessQuery

        public static Query getContentAccessQuery​(Site currentSite,
                                                  Iterable<Site> sites)
        Get the expression for shared contents
        Parameters:
        currentSite - the current site
        sites - all sites
        Returns:
        the expression to aware of privacy of contents
      • getContentAccessQueryForPrivateClosedSites

        public static Query getContentAccessQueryForPrivateClosedSites​(Collection<String> siteNames)
        Get the expression corresponding to the shared contents of privates sites
        Parameters:
        siteNames - the site names of private and closed sites
        Returns:
        the expression corresponding to the shared contents of privates sites
      • getContentAccessQueryForPublicOrProtectedClosedSites

        public static Query getContentAccessQueryForPublicOrProtectedClosedSites​(Collection<String> siteNames)
        Get the expression corresponding to the shared contents of public or protected sites
        Parameters:
        siteNames - the list of public or protected sites
        Returns:
        the expression corresponding to the shared contents of public or protected sites
      • getContentAccessQueryForPublicOutsideSites

        public static Query getContentAccessQueryForPublicOutsideSites​(Collection<String> siteNames)
        Get the expression corresponding to the shared contents of public sites
        Parameters:
        siteNames - the list of public sites
        Returns:
        the expression corresponding to the shared contents of public sites
      • getContentAccessQueryForPrivateOrProtectedOutsideSites

        public static Query getContentAccessQueryForPrivateOrProtectedOutsideSites​(Collection<String> siteNames)
        Get the expression corresponding to the shared contents of private or protected sites
        Parameters:
        siteNames - the list of private or protected sites
        Returns:
        the expression corresponding to the shared contents of private or protected sites