Class ResourceElementBean
- java.lang.Object
-
- org.gcube.portlets.widgets.ckandatapublisherwidget.shared.ResourceElementBean
-
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable,Serializable,Comparable<ResourceElementBean>
public class ResourceElementBean extends Object implements Comparable<ResourceElementBean>, Serializable, com.google.gwt.user.client.rpc.IsSerializable
A resource element bean. Contains part of the logic used into the TwinColumn widget- Author:
- Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it), revisited by Francesco Mangiacrapa
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.gwt.view.client.ProvidesKey<ResourceElementBean>KEY_PROVIDERThe key provider that provides the unique ID of a bean.
-
Constructor Summary
Constructors Constructor Description ResourceElementBean()Default constructor.ResourceElementBean(String name, boolean toBeAdded, boolean isFolder, ResourceElementBean parent, Integer childrenSize, String fullPath, String originalIdInWorkspace, String mimeType, String url, String description, String organizationNameDatasetParent)Instantiates a new resource element bean.ResourceElementBean(ResourceElementBean another)Copy constructor.ResourceElementBean(ResourceElementBean parent, String name, boolean isFolder, Integer childrenSize, String fullPath)Instantiates a new resource element bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ResourceElementBean o)Compare to.booleanequals(Object o)Equals.intgetBeanID()Gets the bean ID.IntegergetChildrenSize()Gets the children size.StringgetCkanDatasetId()StringgetCkanResourceID()Gets the ckan resource ID.StringgetDescription()Gets the description.StringgetEditableName()Gets the editable name.StringgetFullPath()Gets the full path.StringgetMimeType()Gets the mime type.StringgetName()Gets the name.StringgetOrganizationNameDatasetParent()Gets the organization name dataset parent.StringgetOriginalIdInWorkspace()Gets the original id in workspace.ResourceElementBeangetParent()Gets the parent.StringgetRootIdInWorkspace()Gets the root id in workspace.List<ResourceElementBean>getToPublish()Gets the to publish.StringgetUrl()Gets the url.booleanisFolder()Checks if is folder.booleanisToBeAdded()Checks if is to be added.voidsetChildrenSize(Integer size)Sets the children size.voidsetCkanDatasetId(String packageId)voidsetCkanResourceID(String ckanResourceID)Sets the ckan resource ID.voidsetDescription(String description)Sets the description.voidsetEditableName(String newName)Sets the editable name.voidsetFolder(boolean isFolder)Sets the folder.voidsetFullPath(String fullPath)Sets the full path.voidsetMimeType(String mimeType)Sets the mime type.voidsetName(String name)Sets the name.voidsetOrganizationNameDatasetParent(String organizationNameDatasetParent)Sets the organization name dataset parent.voidsetOriginalIdInWorkspace(String originalIdInWorkspace)Sets the original id in workspace.voidsetParent(ResourceElementBean parent)Sets the parent.voidsetRootIdInWorkspace(String rootIdInWorkspace)Sets the root id in workspace.voidsetToBeAdded(boolean toBeAdded)Sets the to be added.voidsetToPublish(List<ResourceElementBean> toPublish)Sets the to publish.voidsetUrl(String url)Sets the url.StringtoString()
-
-
-
Field Detail
-
KEY_PROVIDER
public static final com.google.gwt.view.client.ProvidesKey<ResourceElementBean> KEY_PROVIDER
The key provider that provides the unique ID of a bean.
-
-
Constructor Detail
-
ResourceElementBean
public ResourceElementBean(ResourceElementBean another)
Copy constructor.- Parameters:
another- the another
-
ResourceElementBean
public ResourceElementBean()
Default constructor.
-
ResourceElementBean
public ResourceElementBean(ResourceElementBean parent, String name, boolean isFolder, Integer childrenSize, String fullPath)
Instantiates a new resource element bean.- Parameters:
parent- the parentname- the nameisFolder- the is folderchildrenSize- the children sizefullPath- the full path
-
ResourceElementBean
public ResourceElementBean(String name, boolean toBeAdded, boolean isFolder, ResourceElementBean parent, Integer childrenSize, String fullPath, String originalIdInWorkspace, String mimeType, String url, String description, String organizationNameDatasetParent)
Instantiates a new resource element bean.- Parameters:
name- the nametoBeAdded- the to be addedisFolder- the is folderparent- the parentchildrenSize- the children sizefullPath- the full pathoriginalIdInWorkspace- the original id in workspacemimeType- the mime typeurl- the urldescription- the descriptionorganizationNameDatasetParent- the organization name dataset parent
-
-
Method Detail
-
getBeanID
public int getBeanID()
Gets the bean ID.- Returns:
- the bean ID
-
getCkanResourceID
public String getCkanResourceID()
Gets the ckan resource ID.- Returns:
- the ckan resource ID
-
setCkanResourceID
public void setCkanResourceID(String ckanResourceID)
Sets the ckan resource ID.- Parameters:
ckanResourceID- the new ckan resource ID
-
getParent
public ResourceElementBean getParent()
Gets the parent.- Returns:
- the parent
-
setParent
public void setParent(ResourceElementBean parent)
Sets the parent.- Parameters:
parent- the new parent
-
getName
public String getName()
Gets the name.- Returns:
- the name
-
setName
public void setName(String name)
Sets the name.- Parameters:
name- the new name
-
isToBeAdded
public boolean isToBeAdded()
Checks if is to be added.- Returns:
- true, if is to be added
-
setToBeAdded
public void setToBeAdded(boolean toBeAdded)
Sets the to be added.- Parameters:
toBeAdded- the new to be added
-
getMimeType
public String getMimeType()
Gets the mime type.- Returns:
- the mime type
-
setMimeType
public void setMimeType(String mimeType)
Sets the mime type.- Parameters:
mimeType- the new mime type
-
getUrl
public String getUrl()
Gets the url.- Returns:
- the url
-
setUrl
public void setUrl(String url)
Sets the url.- Parameters:
url- the new url
-
getDescription
public String getDescription()
Gets the description.- Returns:
- the description
-
setDescription
public void setDescription(String description)
Sets the description.- Parameters:
description- the new description
-
getOrganizationNameDatasetParent
public String getOrganizationNameDatasetParent()
Gets the organization name dataset parent.- Returns:
- the organization name dataset parent
-
setOrganizationNameDatasetParent
public void setOrganizationNameDatasetParent(String organizationNameDatasetParent)
Sets the organization name dataset parent.- Parameters:
organizationNameDatasetParent- the new organization name dataset parent
-
isFolder
public boolean isFolder()
Checks if is folder.- Returns:
- true, if is folder
-
setFolder
public void setFolder(boolean isFolder)
Sets the folder.- Parameters:
isFolder- the new folder
-
getChildrenSize
public Integer getChildrenSize()
Gets the children size.- Returns:
- the children size
-
setChildrenSize
public void setChildrenSize(Integer size)
Sets the children size.- Parameters:
size- the new children size
-
getFullPath
public String getFullPath()
Gets the full path.- Returns:
- the full path
-
setFullPath
public void setFullPath(String fullPath)
Sets the full path.- Parameters:
fullPath- the new full path
-
getOriginalIdInWorkspace
public String getOriginalIdInWorkspace()
Gets the original id in workspace.- Returns:
- the original id in workspace
-
setOriginalIdInWorkspace
public void setOriginalIdInWorkspace(String originalIdInWorkspace)
Sets the original id in workspace.- Parameters:
originalIdInWorkspace- the new original id in workspace
-
getEditableName
public String getEditableName()
Gets the editable name.- Returns:
- the editable name
-
setEditableName
public void setEditableName(String newName)
Sets the editable name.- Parameters:
newName- the new editable name
-
getToPublish
public List<ResourceElementBean> getToPublish()
Gets the to publish.- Returns:
- the to publish
-
setToPublish
public void setToPublish(List<ResourceElementBean> toPublish)
Sets the to publish.- Parameters:
toPublish- the new to publish
-
equals
public boolean equals(Object o)
Equals.
-
compareTo
public int compareTo(ResourceElementBean o)
Compare to.- Specified by:
compareToin interfaceComparable<ResourceElementBean>- Parameters:
o- the o- Returns:
- the int
-
getRootIdInWorkspace
public String getRootIdInWorkspace()
Gets the root id in workspace.- Returns:
- the root id in workspace
-
setRootIdInWorkspace
public void setRootIdInWorkspace(String rootIdInWorkspace)
Sets the root id in workspace.- Parameters:
rootIdInWorkspace- the new root id in workspace
-
setCkanDatasetId
public void setCkanDatasetId(String packageId)
-
getCkanDatasetId
public String getCkanDatasetId()
-
-