Class MultiviewPictureAdapter
- java.lang.Object
-
- org.nuxeo.ecm.platform.picture.api.adapters.MultiviewPictureAdapter
-
- All Implemented Interfaces:
MultiviewPicture
public class MultiviewPictureAdapter extends Object implements MultiviewPicture
-
-
Field Summary
Fields Modifier and Type Field Description static String
FIELD_BYLINE
static String
FIELD_CAPTION
static String
FIELD_CREDIT
static String
FIELD_DATELINE
static String
FIELD_GENRE
static String
FIELD_HEADLINE
static String
FIELD_INFO
static String
FIELD_LANGUAGE
static String
FIELD_ORIGIN
static String
FIELD_SLUGLINE
static String
FIELD_SOURCE
static String
FIELD_SUBHEADLINE
static String
FIELD_TYPAGE
static String
SCHEMA_NAME
-
Constructor Summary
Constructors Constructor Description MultiviewPictureAdapter(DocumentModel docModel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addView(PictureView view)
String
getByline()
String
getCaption()
String
getCredit()
String
getDateline()
String
getGenre()
String
getHeadline()
String
getLanguage()
String
getOrigin()
String
getSlugline()
String
getSource()
String
getSubheadline()
String
getTypage()
PictureView
getView(String title)
PictureView[]
getViews()
static PictureView
mapToView(Map<String,Object> map)
void
removeAllView()
void
removeView(String name)
void
setByline(String byline)
void
setCaption(String caption)
void
setCredit(String credit)
void
setDateline(String dateline)
void
setGenre(String genre)
void
setHeadline(String headline)
void
setLanguage(String language)
void
setOrigin(String origin)
void
setSlugline(String slugline)
void
setSource(String source)
void
setSubheadline(String subheadline)
void
setTypage(String typage)
static Map<String,Object>
viewToMap(PictureView view)
-
-
-
Field Detail
-
FIELD_HEADLINE
public static final String FIELD_HEADLINE
- See Also:
- Constant Field Values
-
FIELD_SUBHEADLINE
public static final String FIELD_SUBHEADLINE
- See Also:
- Constant Field Values
-
FIELD_BYLINE
public static final String FIELD_BYLINE
- See Also:
- Constant Field Values
-
FIELD_DATELINE
public static final String FIELD_DATELINE
- See Also:
- Constant Field Values
-
FIELD_SLUGLINE
public static final String FIELD_SLUGLINE
- See Also:
- Constant Field Values
-
FIELD_CREDIT
public static final String FIELD_CREDIT
- See Also:
- Constant Field Values
-
FIELD_LANGUAGE
public static final String FIELD_LANGUAGE
- See Also:
- Constant Field Values
-
FIELD_SOURCE
public static final String FIELD_SOURCE
- See Also:
- Constant Field Values
-
FIELD_ORIGIN
public static final String FIELD_ORIGIN
- See Also:
- Constant Field Values
-
FIELD_GENRE
public static final String FIELD_GENRE
- See Also:
- Constant Field Values
-
FIELD_CAPTION
public static final String FIELD_CAPTION
- See Also:
- Constant Field Values
-
FIELD_TYPAGE
public static final String FIELD_TYPAGE
- See Also:
- Constant Field Values
-
FIELD_INFO
public static final String FIELD_INFO
- See Also:
- Constant Field Values
-
SCHEMA_NAME
public static final String SCHEMA_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MultiviewPictureAdapter
public MultiviewPictureAdapter(DocumentModel docModel)
-
-
Method Detail
-
viewToMap
public static Map<String,Object> viewToMap(PictureView view)
-
mapToView
public static PictureView mapToView(Map<String,Object> map)
-
getViews
public PictureView[] getViews()
- Specified by:
getViews
in interfaceMultiviewPicture
-
getView
public PictureView getView(String title)
- Specified by:
getView
in interfaceMultiviewPicture
-
removeView
public void removeView(String name)
- Specified by:
removeView
in interfaceMultiviewPicture
-
addView
public void addView(PictureView view)
- Specified by:
addView
in interfaceMultiviewPicture
-
removeAllView
public void removeAllView()
- Specified by:
removeAllView
in interfaceMultiviewPicture
-
getHeadline
public String getHeadline()
- Specified by:
getHeadline
in interfaceMultiviewPicture
-
setHeadline
public void setHeadline(String headline)
- Specified by:
setHeadline
in interfaceMultiviewPicture
-
getSubheadline
public String getSubheadline()
- Specified by:
getSubheadline
in interfaceMultiviewPicture
-
setSubheadline
public void setSubheadline(String subheadline)
- Specified by:
setSubheadline
in interfaceMultiviewPicture
-
getByline
public String getByline()
- Specified by:
getByline
in interfaceMultiviewPicture
-
setByline
public void setByline(String byline)
- Specified by:
setByline
in interfaceMultiviewPicture
-
getDateline
public String getDateline()
- Specified by:
getDateline
in interfaceMultiviewPicture
-
setDateline
public void setDateline(String dateline)
- Specified by:
setDateline
in interfaceMultiviewPicture
-
getSlugline
public String getSlugline()
- Specified by:
getSlugline
in interfaceMultiviewPicture
-
setSlugline
public void setSlugline(String slugline)
- Specified by:
setSlugline
in interfaceMultiviewPicture
-
getCredit
public String getCredit()
- Specified by:
getCredit
in interfaceMultiviewPicture
-
setCredit
public void setCredit(String credit)
- Specified by:
setCredit
in interfaceMultiviewPicture
-
getLanguage
public String getLanguage()
- Specified by:
getLanguage
in interfaceMultiviewPicture
-
setLanguage
public void setLanguage(String language)
- Specified by:
setLanguage
in interfaceMultiviewPicture
-
getSource
public String getSource()
- Specified by:
getSource
in interfaceMultiviewPicture
-
setSource
public void setSource(String source)
- Specified by:
setSource
in interfaceMultiviewPicture
-
getOrigin
public String getOrigin()
- Specified by:
getOrigin
in interfaceMultiviewPicture
-
setOrigin
public void setOrigin(String origin)
- Specified by:
setOrigin
in interfaceMultiviewPicture
-
getGenre
public String getGenre()
- Specified by:
getGenre
in interfaceMultiviewPicture
-
setGenre
public void setGenre(String genre)
- Specified by:
setGenre
in interfaceMultiviewPicture
-
getCaption
public String getCaption()
- Specified by:
getCaption
in interfaceMultiviewPicture
-
setCaption
public void setCaption(String caption)
- Specified by:
setCaption
in interfaceMultiviewPicture
-
getTypage
public String getTypage()
- Specified by:
getTypage
in interfaceMultiviewPicture
-
setTypage
public void setTypage(String typage)
- Specified by:
setTypage
in interfaceMultiviewPicture
-
-