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_FILTER
config, STYLE_CENTER
DEFAULT_ENCODING, DESCRIPTION_KEY, DIR_KEY, EMBED_CODE_KEY, ENCODING_KEY, FILE_NAME_KEY, LABEL_KEY, properties, REVERSE_LINK_KEY
CACHE_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_SEPARATOR
NO_LINK
COLORED_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, uploadFiles
getCssClass, getCSSType, getDefaultFile, getDescription, getDisplayAllLabel, getFile, getFileList, getFiles, getHelpURI, getImageDescription, getLanguage, getMainFolder, getPriority, getStaticLabel, getTags, init, isAllowRAW, isImageValid, isShared, isUploadOnDrop
contains, 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, transflateFrom
applyReplacement, 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, textToXHTML
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, getAllResourcesLinks, getDirSelected, getFiles, setDirSelected
getImageDescription, getImageLinkURL, getPriority, isImageValid
clearReplacement, 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, transflateFrom
compareTo
getContentAsMap
getCssClass, getDate, getDescription, getFile, getLanguage, getLocation, getTags, getTitle, isLocal, isShared
getId
getPreviewCode
public static final String TYPE
protected FilenameFilter getFileFilter()
getFileFilter
in class AbstractFileComponent
protected FilenameFilter getDecorationFilter()
getDecorationFilter
in class AbstractFileComponent
public Collection<Resource> getAllResources(ContentContext ctx)
IStaticContainer
getAllResources
in interface IStaticContainer
getAllResources
in class AbstractFileComponent
public String[] getStyleList(ContentContext ctx)
IContentVisualComponent
getStyleList
in interface IContentVisualComponent
getStyleList
in class Image
public String[] getStyleLabelList(ContentContext ctx)
IContentVisualComponent
getStyleLabelList
in interface IContentVisualComponent
getStyleLabelList
in class Image
public String getStyleTitle(ContentContext ctx)
IContentVisualComponent
getStyleTitle
in interface IContentVisualComponent
getStyleTitle
in class Image
protected boolean isInline(ContentContext ctx)
public boolean renameResource(ContentContext ctx, File oldName, File newName)
IStaticContainer
renameResource
in interface IStaticContainer
renameResource
in class AbstractFileComponent
public String getType()
IContentVisualComponent
getType
in interface IContentVisualComponent
getType
in class GlobalImage
protected boolean canUpload(ContentContext ctx)
canUpload
in class GlobalImage
public String getFileDirectory(ContentContext ctx)
getFileDirectory
in class GlobalImage
public String createFileURL(ContentContext ctx, String url)
createFileURL
in class GlobalImage
protected boolean isImageFilter()
isImageFilter
in class GlobalImage
protected String getImageUploadTitle(ContentContext ctx) throws FileNotFoundException, IOException
getImageUploadTitle
in class AbstractFileComponent
FileNotFoundException
IOException
protected String getPreviewCode(ContentContext ctx) throws Exception
getPreviewCode
in class AbstractFileComponent
Exception
protected String getRelativeFileDirectory(ContentContext ctx)
getRelativeFileDirectory
in class Image
public boolean isContentCachable(ContentContext ctx)
IContentVisualComponent
isContentCachable
in interface IContentVisualComponent
isContentCachable
in class GlobalImage
public String getCurrentRenderer(ContentContext ctx)
AbstractVisualComponent
getCurrentRenderer
in interface IContentVisualComponent
getCurrentRenderer
in class AbstractVisualComponent
public String getRenderer(ContentContext ctx)
AbstractVisualComponent
getRenderer
in interface IContentVisualComponent
getRenderer
in class AbstractVisualComponent
protected boolean isAutoRenderer()
AbstractVisualComponent
isAutoRenderer
in class AbstractVisualComponent
public String getViewXHTMLCode(ContentContext ctx) throws Exception
getViewXHTMLCode
in class GlobalImage
Exception
org.javlo.itf.IContentVisualComponent#getXHTMLCode()
protected String getImageURL(ContentContext ctx) throws Exception
getImageURL
in class GlobalImage
Exception
public String getResourceURL(ContentContext ctx, String fileLink)
getResourceURL
in class AbstractFileComponent
protected Map<String,String> getTranslatableResources(ContentContext ctx) throws Exception
getTranslatableResources
in class GlobalImage
Exception
public Collection<Video> getAllVideoOnPage(ContentContext ctx) throws Exception
Exception
protected String getDefaultFilter()
getDefaultFilter
in class GlobalImage
protected String getImageFilter(ContentContext ctx)
public void prepareView(ContentContext ctx) throws Exception
AbstractVisualComponent
prepareView
in class GlobalImage
Exception
public String getURL(ContentContext ctx)
ILink
getURL
in interface ILink
getURL
in interface IStaticResource
getURL
in class GlobalImage
public String renderInline(ContentContext ctx, String width, String height, boolean preview, boolean onlyPrepare) throws Exception
Exception
protected boolean isLinkValid(String url)
isLinkValid
in class GlobalImage
protected boolean isMeta()
isMeta
in class GlobalImage
protected boolean isDecorationImage()
isDecorationImage
in class GlobalImage
public boolean isRealContent(ContentContext ctx)
IContentVisualComponent
isRealContent
in interface IContentVisualComponent
isRealContent
in class AbstractVisualComponent
ctx
- current contextprotected String getImageChangeTitle(ContentContext ctx) throws FileNotFoundException, IOException
getImageChangeTitle
in class AbstractFileComponent
FileNotFoundException
IOException
public int getAccess(ContentContext ctx, int days) throws NumberFormatException, IOException
NumberFormatException
IOException
public void addOneAccess(ContentContext ctx) throws NumberFormatException, IOException
NumberFormatException
IOException
public static final String performAccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
public String getResourceURL(ContentContext ctx)
getResourceURL
in interface IImageTitle
getResourceURL
in class AbstractFileComponent
protected boolean isEmbedCode()
isEmbedCode
in class GlobalImage
protected boolean isLink()
isLink
in class GlobalImage
public String getActionGroupName()
IAction
getActionGroupName
in interface IAction
getActionGroupName
in class GlobalImage
public int getPopularity(ContentContext ctx)
IStaticContainer
getPopularity
in interface IStaticContainer
getPopularity
in class Image
public String performEdit(ContentContext ctx) throws Exception
IContentVisualComponent
performEdit
in interface IContentVisualComponent
performEdit
in class GlobalImage
Exception
protected boolean isDisplayMeta(ContentContext ctx)
isDisplayMeta
in class AbstractFileComponent
public int getComplexityLevel(ContentContext ctx)
IContentVisualComponent
getComplexityLevel
in interface IContentVisualComponent
getComplexityLevel
in class AbstractVisualComponent
ctx
- TODOpublic String getPreviewURL(ContentContext ctx, String filter)
getPreviewURL
in interface IStaticResource
getPreviewURL
in class GlobalImage
public boolean isDisplayable(ContentContext ctx) throws Exception
IContentVisualComponent
isDisplayable
in interface IContentVisualComponent
isDisplayable
in class AbstractFileComponent
Exception
protected boolean isFileNameValid(ContentContext ctx, String fileName)
isFileNameValid
in class GlobalImage
public String getFontAwesome()
getFontAwesome
in interface IContentVisualComponent
getFontAwesome
in class GlobalImage
public String getSpecialTagTitle(ContentContext ctx) throws Exception
getSpecialTagTitle
in interface IContentVisualComponent
getSpecialTagTitle
in class GlobalImage
Exception
public boolean isAskWidth(ContentContext ctx)
isAskWidth
in class GlobalImage
Copyright © 2012-2018. All Rights Reserved.