public final class SharedContentsHelper extends Object
Modifier | Constructor and Description |
---|---|
private |
SharedContentsHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
copyTitle(Content srcContent,
DefaultSharedContent targetContent)
Copy the title of the source content to the target content
|
static Query |
getContentAccessQuery(Site currentSite,
Iterable<Site> sites)
Get the expression for shared contents
|
static Query |
getContentAccessQuery(Site currentSite,
Site site)
Get the expression for shared contents
|
static Query |
getContentAccessQueryForPrivateClosedSites(Collection<String> siteNames)
Get the expression corresponding to the shared contents of privates sites
|
static Query |
getContentAccessQueryForPrivateOrProtectedOutsideSites(Collection<String> siteNames)
Get the expression corresponding to the shared contents of private or protected sites
|
static Query |
getContentAccessQueryForPublicOrProtectedClosedSites(Collection<String> siteNames)
Get the expression corresponding to the shared contents of public or protected sites
|
static Query |
getContentAccessQueryForPublicOutsideSites(Collection<String> siteNames)
Get the expression corresponding to the shared contents of public sites
|
static Expression |
getSharedContentsExpression(Site currentSite,
AmetysObjectIterable<Site> sites)
Get the expression for shared contents
|
static Expression |
getSharedContentsExpression(Site currentSite,
Site site)
Get the expression for shared contents
|
static Expression |
getSharedContentsExpressionForPrivateClosedSites(List<String> siteNames)
Get the expression corresponding to the shared contents of privates sites
|
static Expression |
getSharedContentsExpressionForPrivateOrProtectedOutsideSites(List<String> siteNames)
Get the expression corresponding to the shared contents of private or protected sites
|
static Expression |
getSharedContentsExpressionForPublicOrProtectedClosedSites(List<String> siteNames)
Get the expression corresponding to the shared contents of public or protected sites
|
static Expression |
getSharedContentsExpressionForPublicOutsideSites(List<String> siteNames)
Get the expression corresponding to the shared contents of public sites
|
private SharedContentsHelper()
public static void copyTitle(Content srcContent, DefaultSharedContent targetContent) throws AmetysRepositoryException
srcContent
- The source contenttargetContent
- The shared target contentAmetysRepositoryException
- if an error occurs.public static Expression getSharedContentsExpression(Site currentSite, Site site)
currentSite
- the current sitesite
- the site of contents to findpublic static Expression getSharedContentsExpression(Site currentSite, AmetysObjectIterable<Site> sites)
currentSite
- the current sitesites
- all sitespublic static Expression getSharedContentsExpressionForPrivateClosedSites(List<String> siteNames)
siteNames
- the site names of private and closed sitespublic static Expression getSharedContentsExpressionForPublicOrProtectedClosedSites(List<String> siteNames)
siteNames
- the list of public or protected sitespublic static Expression getSharedContentsExpressionForPublicOutsideSites(List<String> siteNames)
siteNames
- the list of public sitespublic static Expression getSharedContentsExpressionForPrivateOrProtectedOutsideSites(List<String> siteNames)
siteNames
- the list of private or protected sitespublic static Query getContentAccessQuery(Site currentSite, Site site)
currentSite
- the current sitesite
- the site of contents to findpublic static Query getContentAccessQuery(Site currentSite, Iterable<Site> sites)
currentSite
- the current sitesites
- all sitespublic static Query getContentAccessQueryForPrivateClosedSites(Collection<String> siteNames)
siteNames
- the site names of private and closed sitespublic static Query getContentAccessQueryForPublicOrProtectedClosedSites(Collection<String> siteNames)
siteNames
- the list of public or protected sitespublic static Query getContentAccessQueryForPublicOutsideSites(Collection<String> siteNames)
siteNames
- the list of public sitespublic static Query getContentAccessQueryForPrivateOrProtectedOutsideSites(Collection<String> siteNames)
siteNames
- the list of private or protected sites