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(javax.servlet.http.HttpServletRequest request,
CmsObject cms,
CmsUUID structureId,
java.lang.String contentLocale,
boolean includeTargets,
CmsUUID detailContentId,
java.util.List<CmsUUID> additionalStructureIds,
java.util.Map<java.lang.String,java.lang.String> context)
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 |
sortRelations(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(javax.servlet.http.HttpServletRequest request, CmsObject cms, CmsUUID structureId, java.lang.String contentLocale, boolean includeTargets, CmsUUID detailContentId, java.util.List<CmsUUID> additionalStructureIds, java.util.Map<java.lang.String,java.lang.String> context) throws CmsException
request - the current requestcms - 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 includeddetailContentId - the structure id of the detail content if presentadditionalStructureIds - structure ids of additional resources to include with the relation targetscontext - context parameters used for displaying additional infosCmsException - if something goes wrongpublic void sortRelations(CmsObject cms, CmsResourceStatusBean resStatus)
cms - the current CMS contextresStatus - the bean in which to sort the relation beansprotected 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 wrong