Interface MediaItemComponentType
-
- All Superinterfaces:
ComponentType
- All Known Implementing Classes:
MediaItemComponentTypeImpl
public interface MediaItemComponentType extends ComponentType
Interface for a MediaComponenttype.- Author:
- Ivo Ladage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setAsAvailableContentType(MediaItemComponentDefinition mediaCompDef)
Appends this media component as available content type among all webinitiatifs.void
setAsAvailableContentType(MediaItemComponentDefinition mediaCompDef, int webId, boolean available)
Appends or removes this media component as available content type on the specified webinitiatif.-
Methods inherited from interface nl.gx.webmanager.wcb.ComponentType
checkComponentDefinition, deployResources, enableComponentForAllWebsites, getComponent, getComponentCount, getComponentInterface, getComponents, getComponentTypeInterface, installComponent, installComponent, purgeComponent, startComponent, stopComponent, uninstallComponent, updateComponent
-
-
-
-
Method Detail
-
setAsAvailableContentType
void setAsAvailableContentType(MediaItemComponentDefinition mediaCompDef)
Appends this media component as available content type among all webinitiatifs. This effectively checks the content type in the "Active content types" section of the Channel Configuration panel such that it will be available in the edit UI. This method is invoked automatically in the installComponent, such that newly deployed custom content types are available automatically.- Parameters:
mediaCompDef
- The media item component definition to activate
-
setAsAvailableContentType
void setAsAvailableContentType(MediaItemComponentDefinition mediaCompDef, int webId, boolean available)
Appends or removes this media component as available content type on the specified webinitiatif. This effectively checks or unchecks the content type in the "Active content types" section of the Channel Configuration panel on that webinitiatif.- Parameters:
mediaCompDef
- The media item component definition to activatewebId
- The id of the website to enable to content type onavailable
- If true, the contenttype is added as available, if false, it is removed
-
-