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) |
getPref
public static final String TYPE
public DocGadgetImpl(DocumentModel doc)
public DocumentModel getDocument()
public URL getDefinitionUrl() throws ClientException
ClientException
public String getDescription() throws ClientException
Gadget
ClientException
public String getId()
Gadget
public String getName() throws ClientException
Gadget
ClientException
public String getOwner() throws ClientException
Gadget
ClientException
public Space getParent() throws ClientException
ClientException
public int getPosition() throws ClientException
Gadget
ClientException
public Map<String,String> getPreferences() throws ClientException
Gadget
ClientException
public String getTitle() throws ClientException
Gadget
ClientException
public boolean isCollapsed() throws ClientException
Gadget
ClientException
public boolean isEqualTo(Gadget gadget)
public void setCollapsed(boolean collapsed) throws ClientException
ClientException
public void setDefinitionUrl(URL url) throws ClientException
ClientException
public void setDescription(String description) throws ClientException
ClientException
public void setName(String name) throws ClientException
ClientException
public void setPosition(int position) throws ClientException
ClientException
public void setPreferences(Map<String,String> prefs) throws ClientException
ClientException
public void setTitle(String title) throws ClientException
ClientException
public int getHeight() throws ClientException
ClientException
public void setHeight(int height) throws ClientException
ClientException
public void copyFrom(Gadget gadget) throws ClientException
ClientException
public String getViewer() throws ClientException
ClientException
public boolean hasPermission(String permissioName) throws ClientException
ClientException
public void save() throws ClientException
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.