public class DocGadgetImpl extends AbstractGadget
| Constructor and Description |
|---|
DocGadgetImpl(DocumentModel doc) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(Gadget gadget) |
URL |
getDefinitionUrl() |
String |
getDescription()
description
|
DocumentModel |
getDocument() |
int |
getHeight() |
String |
getId()
Unique identifier of a gadget
|
String |
getName()
name
|
String |
getOwner()
creator name
|
Space |
getParent() |
int |
getPosition()
Relative position in the parent container at the place id "getPlaceID()"
|
Map<String,String> |
getPreferences()
preferences values
|
String |
getTitle()
title
|
String |
getViewer() |
boolean |
hasPermission(String permissioName) |
boolean |
isCollapsed()
Determines if the display state of the gadget
|
boolean |
isEqualTo(Gadget gadget) |
void |
save() |
void |
setCollapsed(boolean collapsed) |
void |
setDefinitionUrl(URL url) |
void |
setDescription(String description) |
void |
setHeight(int height) |
void |
setName(String name) |
void |
setPosition(int position) |
void |
setPreferences(Map<String,String> prefs) |
void |
setTitle(String title) |
getPrefpublic static final String TYPE
public DocGadgetImpl(DocumentModel doc)
public DocumentModel getDocument()
public URL getDefinitionUrl() throws ClientException
ClientExceptionpublic String getDescription() throws ClientException
GadgetClientExceptionpublic String getId()
Gadgetpublic String getName() throws ClientException
GadgetClientExceptionpublic String getOwner() throws ClientException
GadgetClientExceptionpublic Space getParent() throws ClientException
ClientExceptionpublic int getPosition()
throws ClientException
GadgetClientExceptionpublic Map<String,String> getPreferences() throws ClientException
GadgetClientExceptionpublic String getTitle() throws ClientException
GadgetClientExceptionpublic boolean isCollapsed()
throws ClientException
GadgetClientExceptionpublic boolean isEqualTo(Gadget gadget)
public void setCollapsed(boolean collapsed)
throws ClientException
ClientExceptionpublic void setDefinitionUrl(URL url) throws ClientException
ClientExceptionpublic void setDescription(String description) throws ClientException
ClientExceptionpublic void setName(String name) throws ClientException
ClientExceptionpublic void setPosition(int position)
throws ClientException
ClientExceptionpublic void setPreferences(Map<String,String> prefs) throws ClientException
ClientExceptionpublic void setTitle(String title) throws ClientException
ClientExceptionpublic int getHeight()
throws ClientException
ClientExceptionpublic void setHeight(int height)
throws ClientException
ClientExceptionpublic void copyFrom(Gadget gadget) throws ClientException
ClientExceptionpublic String getViewer() throws ClientException
ClientExceptionpublic boolean hasPermission(String permissioName) throws ClientException
ClientExceptionpublic void save()
throws ClientException
ClientExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.