public class CmsDefaultResourceStatusProvider extends java.lang.Object
Constructor and Description |
---|
CmsDefaultResourceStatusProvider() |
Modifier and Type | Method and Description |
---|---|
static CmsRelationTargetListBean |
getContainerpageRelationTargets(CmsObject cms,
CmsUUID source,
java.util.List<CmsUUID> additionalIds,
boolean cancelIfChanged)
Gets the relation targets for a resource.
|
CmsResourceStatusBean |
getResourceStatus(CmsObject cms,
CmsUUID structureId,
java.lang.String contentLocale,
boolean includeTargets,
java.util.List<CmsUUID> additionalStructureIds)
Collects all the data to display in the resource status dialog.
|
protected java.util.List<CmsResourceStatusRelationBean> |
getSiblings(CmsObject cms,
java.lang.String locale,
CmsResource resource)
Gets beans which represents the siblings of a resource.
|
protected java.util.List<CmsResourceStatusRelationBean> |
getTargets(CmsObject cms,
java.lang.String locale,
CmsResource resource,
java.util.List<CmsUUID> additionalStructureIds)
Gets the list of relation targets for a resource.
|
void |
sortOtherSiteRelations(CmsObject cms,
CmsResourceStatusBean resStatus)
Sorts relation beans from other sites by site order.
|
public CmsDefaultResourceStatusProvider()
public static CmsRelationTargetListBean getContainerpageRelationTargets(CmsObject cms, CmsUUID source, java.util.List<CmsUUID> additionalIds, boolean cancelIfChanged) throws CmsException
cms
- the current CMS contextsource
- the structure id of the resource for which we want the relation targetsadditionalIds
- the structure ids of additional resources to include with the relation targetscancelIfChanged
- if this is true, this method will stop immediately if it finds a changed resource among the relation targetsCmsException
- if something goes wrongpublic CmsResourceStatusBean getResourceStatus(CmsObject cms, CmsUUID structureId, java.lang.String contentLocale, boolean includeTargets, java.util.List<CmsUUID> additionalStructureIds) throws CmsException
cms
- the current CMS contextstructureId
- the structure id of the resource for which we want the informationcontentLocale
- the content localeincludeTargets
- true if relation targets should be includedadditionalStructureIds
- structure ids of additional resources to include with the relation targetsCmsException
- if something goes wrongprotected java.util.List<CmsResourceStatusRelationBean> getSiblings(CmsObject cms, java.lang.String locale, CmsResource resource) throws CmsException
cms
- the CMS ccontextlocale
- the localeresource
- the resourceCmsException
- if something goes wrongprotected java.util.List<CmsResourceStatusRelationBean> getTargets(CmsObject cms, java.lang.String locale, CmsResource resource, java.util.List<CmsUUID> additionalStructureIds) throws CmsException
cms
- the current CMS contextlocale
- the localeresource
- the resource for which we want the relation targetsadditionalStructureIds
- structure ids of additional resources to include with the relation targetCmsException
- if something goes wrongpublic void sortOtherSiteRelations(CmsObject cms, CmsResourceStatusBean resStatus)
cms
- the current CMS contextresStatus
- the bean in which to sort the relation beans