public class Video extends GlobalImage implements IAction, IVideo
| Modifier and Type | Class and Description |
|---|---|
static class |
Video.OrderVideo |
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE |
IMAGE_FILTER, logger, RAW_FILTERconfig, STYLE_CENTERDEFAULT_ENCODING, DESCRIPTION_KEY, DIR_KEY, EMBED_CODE_KEY, ENCODING_KEY, FILE_NAME_KEY, LABEL_KEY, properties, REVERSE_LINK_KEYCACHE_KEY_SUFFIX_PARAM_NAME, COMPONENT_KEY, EDIT_CLASS, FORCE_COMPONENT_ID, HIDDEN, I18N_FILE, NOT_EDIT_PREVIEW_PARAM_NAME, SCROLL_TO_COMP_ID_ATTRIBUTE_NAME, TIME_CACHE_NAME, VALUE_SEPARATORNO_LINKCOLORED_WRAPPER_CLASS, COMP_ID_REQUEST_PARAM, COMPLEXITY_ADMIN, COMPLEXITY_EASY, COMPLEXITY_STANDARD, CONTAINER_COLOR, DEFAULT_COLOR, DYN_COMP_COLOR, ECOM_COLOR, EDIT_ACTION_CSS_CLASS, GRAPHIC_COLOR, HIGH_LABEL_LEVEL, ID_SEPARATOR, LINK_COLOR, LOW_LABEL_LEVEL, META_COLOR, MIDDLE_LABEL_LEVEL, SEARCH_LEVEL_HIGH, SEARCH_LEVEL_LOW, SEARCH_LEVEL_MIDDLE, SEARCH_LEVEL_NONE, TEXT_COLOR, VIEW_DEFINITION_REQUEST_ID, WEB2_COLOR| Constructor and Description |
|---|
Video() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOneAccess(ContentContext ctx) |
protected boolean |
canUpload(ContentContext ctx) |
String |
createFileURL(ContentContext ctx,
String url) |
int |
getAccess(ContentContext ctx,
int days) |
String |
getActionGroupName()
the group name of the action
|
Collection<Resource> |
getAllResources(ContentContext ctx)
return all resources found in the component.
|
Collection<Video> |
getAllVideoOnPage(ContentContext ctx) |
int |
getComplexityLevel(ContentContext ctx)
return the complexity level of the component.
|
String |
getCurrentRenderer(ContentContext ctx)
get current renderer key
|
protected FilenameFilter |
getDecorationFilter() |
protected String |
getDefaultFilter() |
String |
getFileDirectory(ContentContext ctx) |
protected FilenameFilter |
getFileFilter() |
String |
getFontAwesome() |
protected String |
getImageChangeTitle(ContentContext ctx) |
protected String |
getImageFilter(ContentContext ctx) |
protected String |
getImageUploadTitle(ContentContext ctx) |
protected String |
getImageURL(ContentContext ctx) |
int |
getPopularity(ContentContext ctx)
return indice of popularity
|
protected String |
getPreviewCode(ContentContext ctx) |
String |
getPreviewURL(ContentContext ctx,
String filter) |
protected String |
getRelativeFileDirectory(ContentContext ctx) |
String |
getRenderer(ContentContext ctx)
get current renderer file.
|
String |
getResourceURL(ContentContext ctx) |
String |
getResourceURL(ContentContext ctx,
String fileLink) |
String |
getSpecialTagTitle(ContentContext ctx) |
String[] |
getStyleLabelList(ContentContext ctx)
return a list of label define the style.
|
String[] |
getStyleList(ContentContext ctx)
get the list of style possible for this component.
|
String |
getStyleTitle(ContentContext ctx)
return the title of the style choice.
|
protected Map<String,String> |
getTranslatableResources(ContentContext ctx) |
String |
getType()
return the type of the element.
|
String |
getURL(ContentContext ctx)
generate a URL or URI link with all elements to click on.
|
String |
getViewXHTMLCode(ContentContext ctx) |
boolean |
isAskWidth(ContentContext ctx) |
protected boolean |
isAutoRenderer()
return true if end user could not select the renderer.
|
boolean |
isContentCachable(ContentContext ctx)
return the part of header needed for this component
|
protected boolean |
isDecorationImage() |
boolean |
isDisplayable(ContentContext ctx)
true if the component can be displayed in preview mode
|
protected boolean |
isDisplayMeta(ContentContext ctx) |
protected boolean |
isEmbedCode() |
protected boolean |
isFileNameValid(ContentContext ctx,
String fileName) |
protected boolean |
isImageFilter() |
protected boolean |
isInline(ContentContext ctx) |
protected boolean |
isLink() |
protected boolean |
isLinkValid(String url) |
protected boolean |
isMeta() |
boolean |
isRealContent(ContentContext ctx)
return true if component is considered as realContent and the page that
contain the component is also considered as real content.
|
static String |
performAccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String |
performEdit(ContentContext ctx)
action call when update the content page.
|
void |
prepareView(ContentContext ctx)
prepare the rendering of a component. default attributes put in request :
style, value, type, compid
|
boolean |
renameResource(ContentContext ctx,
File oldName,
File newName)
rename a resource
|
String |
renderInline(ContentContext ctx,
String width,
String height,
boolean preview,
boolean onlyPrepare) |
filterImage, getAlt, getCSSClassName, getDate, getDate, getDecorationImage, getDisplayDate, getEditorComplexity, getEditXHTMLCode, getErrorMessage, getFileNameOver, getFilter, getFirstText, getHeight, getHeight, getHexColor, getImageFilterKey, getImageHash, getImageImgName, getImageLinkTitle, getImageLinkURL, getLabelTextInputName, getLargeFilter, getLink, getLinkXHTMLInputName, getLocation, getLocation, getMessage, getNewLinkParamName, getSecondText, getSpecialTagXHTML, getSpecificClass, getTextMessage, getTitle, getTitle, getTranslatedID, getWidth, getWidth, init, initContent, isEditImage, isFloatText, isLabel, isLinkValid, isListable, isLocal, isMutlimediaResource, isTextAuto, performDataFeedBack, setDate, setDecorationImage, setFilter, setFirstText, setHeight, setLink, setMessage, setRenderer, setSecondText, setTextAuto, setTitle, setTranslatedID, setWidth, setWidth, uploadFilesgetCssClass, getCSSType, getDefaultFile, getDescription, getDisplayAllLabel, getFile, getFileList, getFiles, getHelpURI, getImageDescription, getLanguage, getMainFolder, getPriority, getStaticLabel, getTags, init, isAllowRAW, isImageValid, isShared, isUploadOnDropcontains, equals, expandZip, getAllResourcesLinks, getContentAsText, getDecoImageFileXHTMLInputName, getDecoImageXHTMLInputName, getDeleteTitle, getDescription, getDescriptionName, getDirInputName, getDirLabelTitle, getDirList, getDirSelected, getEmbedCode, getEmbedCodeName, getEncoding, getEncodingXHTMLInputName, getFileList, getFileName, getFileUploadActionTitle, getFileURL, getFileXHTMLInputName, getFirstTextInputName, getImageDecorativeTitle, getImageLabelTitle, getImageSelectTitle, getJSOnChange, getLabel, getLabelXHTMLInputName, getLatestValidDate, getMaxPreviewImages, getMetaCode, getNewDirInputName, getNewDirLabelTitle, getPreviewCode, getPreviewCode, getPreviewZoneId, getReverseLinkeLabelTitle, getReverseLinkInputName, getSecondTextInputName, getSelectXHTMLInputName, getStaticInfo, getTextAutoInputName, getWordCount, isFromShared, isImported, isInsertable, isLinkToStatic, isMirroredByDefault, isOnlyFirstOccurrence, isReverseLink, isWithDescription, needEncoding, performLoadImages, performUpload, reloadProperties, saveItem, setDirSelected, setEmbedCode, setFileName, setLabel, setLatestValidDate, setValue, storeProperties, transflateFromapplyReplacement, cleanValue, clearReplacement, clone, compareTo, contructViewStyle, countLine, delete, deleteMySelf, equals, executeCurrentRenderer, executeJSP, executeRenderer, executeRenderer, extractFieldsFromRenderer, getAjaxId, getArea, getAuthors, getBackgroundColor, getBaseHelpURL, getClassName, getComponentBean, getComponentCSS, getComponentCssClass, getComponentId, getComponentLabel, getComponentPath, getConfig, getConfigMessage, getContainerPage, getContentAsMap, getContentCache, getContentMessage, getContentName, getContentTimeCache, getCookiesDisplayStatus, getCreationDate, getCSSStyle, getCurrentPage, getDebugHeader, getDefaultHelpURI, getDefaultRenderer, getDeleteDate, getDescription, getDisplayAsInputName, getDisplayMessage, getEditText, getEmptyCode, getEmptyXHTMLCode, getErrorMessage, getExternalResources, getFirstPrefix, getForcedId, getForcedPrefixViewXHTMLCode, getForcedSuffixViewXHTMLCode, getFormName, getHeaderContent, getHelpType, getHelpURL, getI18nEditableKeys, getId, getImportFolderPath, getImportFolderPath, getInlineStyle, getInputName, getInputNameRenderer, getInputNameRendererTitle, getItalicAndStrongLanguageMarkerList, getJSOnSubmit, getKey, getLabelLevel, getLastSufix, getLayout, getListClass, getListGroup, getListItemTag, getListTag, getLock, getMarkerList, getMirrorWrapper, getModificationDate, getNextComponent, getPage, getPageDescription, getPrefixViewXHTMLCode, getPreviewAttributes, getPreviewCssClass, getPreviewCssId, getPreviousComponent, getQuotationLanguageMarkerList, getRemplacement, getRendererTitle, getRenderes, getRequestComponent, getSearchLevel, getSelectRendererXHTML, getSpecialInputTag, getSpecialPreviewCssClass, getSpecialPreviewCssId, getStyle, getStyleLabel, getSuffixViewXHTMLCode, getTag, getTextColor, getTextForSearch, getTextLabel, getTextTitle, getTitleLevel, getTypeInputName, getValue, getValue, getVersion, getViewData, getViewDataFile, getViewID, getViewText, getXHTMLCode, getXHTMLConfig, haveRight, includeComponentJSP, includePage, insert, isAjaxWrapper, isAutoDeletable, isBackgroundColored, isCanAddClass, isColored, isConfig, isContentCachableByQuery, isContentTimeCachable, isDefaultValue, isDispayEmptyXHTMLCode, isDisplayHidden, isEditOnCreate, isFirstElementOfRepeatSequence, isFirstRepeated, isFreeInputLayout, isHelpURL, isHiddable, isHidden, isHiddenInMode, isInline, isList, isMetaTitle, isMirrorWrapped, isModify, isNeedDelete, isNeedRefresh, isNeedRenderer, isNew, isNextSame, isNextSame, isNolink, isNoLinkable, isPreviousSame, isPreviousSame, isRepeat, isRepeatable, isRestMatch, isReversedLink, isUnique, isValueProperties, isValueTranslatable, isViewDataFile, isVisible, isVisible, isVisibleFromCookies, isWrapped, isXML, loadViewData, main, markAsNew, newInstance, next, onStyleChange, performConfig, performUpdate, previous, processView, renderViewXHTMLCode, replaceAllInContent, replaceInContent, resetContentCache, resetViewData, setBackgroundColor, setComponentBean, setContainerPage, setContentCache, setContentTimeCache, setDisplayHidden, setForcedId, setHidden, setHiddenInMode, setList, setMirrorWrapped, setModify, setNeedRefresh, setNextComponent, setNolink, setPage, setPreviousComponent, setRepeat, setStyle, setTextColor, setValid, stored, storeViewData, stringToReader, stringToReader, stringToStream, textToXHTMLfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, getAllResourcesLinks, getDirSelected, getFiles, setDirSelectedgetImageDescription, getImageLinkURL, getPriority, isImageValidclearReplacement, delete, equals, extractFieldsFromRenderer, getArea, getAuthors, getClassName, getComponentBean, getComponentCssClass, getComponentLabel, getConfig, getConfigMessage, getContentAsText, getContentMessage, getContentName, getCreationDate, getDescription, getEditText, getEmptyXHTMLCode, getErrorMessage, getErrorMessage, getExternalResources, getFirstPrefix, getHeaderContent, getHelpURL, getHexColor, getI18nEditableKeys, getId, getInputNameRenderer, getJSOnSubmit, getKey, getLabelLevel, getLastSufix, getLayout, getListGroup, getMarkerList, getMessage, getModificationDate, getNextComponent, getPage, getPageDescription, getPrefixViewXHTMLCode, getPreviousComponent, getSearchLevel, getSpecialTagXHTML, getStyleLabel, getSuffixViewXHTMLCode, getTextForSearch, getTextLabel, getTextMessage, getTextTitle, getTitleLevel, getValue, getVersion, getViewText, getWordCount, getXHTMLCode, getXHTMLConfig, initContent, insert, isConfig, isDefaultValue, isDispayEmptyXHTMLCode, isDisplayHidden, isEditOnCreate, isFirstRepeated, isHelpURL, isHidden, isHiddenInMode, isInline, isInsertable, isList, isListable, isMetaTitle, isMirroredByDefault, isModify, isNeedRefresh, isNew, isNolink, isRepeat, isRepeatable, isRestMatch, isUnique, isVisible, isVisible, isVisibleFromCookies, loadViewData, markAsNew, newInstance, next, performConfig, previous, replaceAllInContent, replaceInContent, resetViewData, setContainerPage, setDisplayHidden, setList, setNeedRefresh, setNextComponent, setPage, setPreviousComponent, setRenderer, setRepeat, setStyle, setValid, setValue, stored, transflateFromcompareTogetContentAsMapgetCssClass, getDate, getDescription, getFile, getLanguage, getLocation, getTags, getTitle, isLocal, isSharedgetIdgetPreviewCodepublic static final String TYPE
protected FilenameFilter getFileFilter()
getFileFilter in class AbstractFileComponentprotected FilenameFilter getDecorationFilter()
getDecorationFilter in class AbstractFileComponentpublic Collection<Resource> getAllResources(ContentContext ctx)
IStaticContainergetAllResources in interface IStaticContainergetAllResources in class AbstractFileComponentpublic String[] getStyleList(ContentContext ctx)
IContentVisualComponentgetStyleList in interface IContentVisualComponentgetStyleList in class Imagepublic String[] getStyleLabelList(ContentContext ctx)
IContentVisualComponentgetStyleLabelList in interface IContentVisualComponentgetStyleLabelList in class Imagepublic String getStyleTitle(ContentContext ctx)
IContentVisualComponentgetStyleTitle in interface IContentVisualComponentgetStyleTitle in class Imageprotected boolean isInline(ContentContext ctx)
public boolean renameResource(ContentContext ctx, File oldName, File newName)
IStaticContainerrenameResource in interface IStaticContainerrenameResource in class AbstractFileComponentpublic String getType()
IContentVisualComponentgetType in interface IContentVisualComponentgetType in class GlobalImageprotected boolean canUpload(ContentContext ctx)
canUpload in class GlobalImagepublic String getFileDirectory(ContentContext ctx)
getFileDirectory in class GlobalImagepublic String createFileURL(ContentContext ctx, String url)
createFileURL in class GlobalImageprotected boolean isImageFilter()
isImageFilter in class GlobalImageprotected String getImageUploadTitle(ContentContext ctx) throws FileNotFoundException, IOException
getImageUploadTitle in class AbstractFileComponentFileNotFoundExceptionIOExceptionprotected String getPreviewCode(ContentContext ctx) throws Exception
getPreviewCode in class AbstractFileComponentExceptionprotected String getRelativeFileDirectory(ContentContext ctx)
getRelativeFileDirectory in class Imagepublic boolean isContentCachable(ContentContext ctx)
IContentVisualComponentisContentCachable in interface IContentVisualComponentisContentCachable in class GlobalImagepublic String getCurrentRenderer(ContentContext ctx)
AbstractVisualComponentgetCurrentRenderer in interface IContentVisualComponentgetCurrentRenderer in class AbstractVisualComponentpublic String getRenderer(ContentContext ctx)
AbstractVisualComponentgetRenderer in interface IContentVisualComponentgetRenderer in class AbstractVisualComponentprotected boolean isAutoRenderer()
AbstractVisualComponentisAutoRenderer in class AbstractVisualComponentpublic String getViewXHTMLCode(ContentContext ctx) throws Exception
getViewXHTMLCode in class GlobalImageExceptionorg.javlo.itf.IContentVisualComponent#getXHTMLCode()protected String getImageURL(ContentContext ctx) throws Exception
getImageURL in class GlobalImageExceptionpublic String getResourceURL(ContentContext ctx, String fileLink)
getResourceURL in class AbstractFileComponentprotected Map<String,String> getTranslatableResources(ContentContext ctx) throws Exception
getTranslatableResources in class GlobalImageExceptionpublic Collection<Video> getAllVideoOnPage(ContentContext ctx) throws Exception
Exceptionprotected String getDefaultFilter()
getDefaultFilter in class GlobalImageprotected String getImageFilter(ContentContext ctx)
public void prepareView(ContentContext ctx) throws Exception
AbstractVisualComponentprepareView in class GlobalImageExceptionpublic String getURL(ContentContext ctx)
ILinkgetURL in interface ILinkgetURL in interface IStaticResourcegetURL in class GlobalImagepublic String renderInline(ContentContext ctx, String width, String height, boolean preview, boolean onlyPrepare) throws Exception
Exceptionprotected boolean isLinkValid(String url)
isLinkValid in class GlobalImageprotected boolean isMeta()
isMeta in class GlobalImageprotected boolean isDecorationImage()
isDecorationImage in class GlobalImagepublic boolean isRealContent(ContentContext ctx)
IContentVisualComponentisRealContent in interface IContentVisualComponentisRealContent in class AbstractVisualComponentctx - current contextprotected String getImageChangeTitle(ContentContext ctx) throws FileNotFoundException, IOException
getImageChangeTitle in class AbstractFileComponentFileNotFoundExceptionIOExceptionpublic int getAccess(ContentContext ctx, int days) throws NumberFormatException, IOException
NumberFormatExceptionIOExceptionpublic void addOneAccess(ContentContext ctx) throws NumberFormatException, IOException
NumberFormatExceptionIOExceptionpublic static final String performAccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exceptionpublic String getResourceURL(ContentContext ctx)
getResourceURL in interface IImageTitlegetResourceURL in class AbstractFileComponentprotected boolean isEmbedCode()
isEmbedCode in class GlobalImageprotected boolean isLink()
isLink in class GlobalImagepublic String getActionGroupName()
IActiongetActionGroupName in interface IActiongetActionGroupName in class GlobalImagepublic int getPopularity(ContentContext ctx)
IStaticContainergetPopularity in interface IStaticContainergetPopularity in class Imagepublic String performEdit(ContentContext ctx) throws Exception
IContentVisualComponentperformEdit in interface IContentVisualComponentperformEdit in class GlobalImageExceptionprotected boolean isDisplayMeta(ContentContext ctx)
isDisplayMeta in class AbstractFileComponentpublic int getComplexityLevel(ContentContext ctx)
IContentVisualComponentgetComplexityLevel in interface IContentVisualComponentgetComplexityLevel in class AbstractVisualComponentctx - TODOpublic String getPreviewURL(ContentContext ctx, String filter)
getPreviewURL in interface IStaticResourcegetPreviewURL in class GlobalImagepublic boolean isDisplayable(ContentContext ctx) throws Exception
IContentVisualComponentisDisplayable in interface IContentVisualComponentisDisplayable in class AbstractFileComponentExceptionprotected boolean isFileNameValid(ContentContext ctx, String fileName)
isFileNameValid in class GlobalImagepublic String getFontAwesome()
getFontAwesome in interface IContentVisualComponentgetFontAwesome in class GlobalImagepublic String getSpecialTagTitle(ContentContext ctx) throws Exception
getSpecialTagTitle in interface IContentVisualComponentgetSpecialTagTitle in class GlobalImageExceptionpublic boolean isAskWidth(ContentContext ctx)
isAskWidth in class GlobalImageCopyright © 2012-2018. All Rights Reserved.