Class ResourceElementBean

    • 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 parent
        name - the name
        isFolder - the is folder
        childrenSize - the children size
        fullPath - 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 name
        toBeAdded - the to be added
        isFolder - the is folder
        parent - the parent
        childrenSize - the children size
        fullPath - the full path
        originalIdInWorkspace - the original id in workspace
        mimeType - the mime type
        url - the url
        description - the description
        organizationNameDatasetParent - 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
      • 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
      • setToPublish

        public void setToPublish​(List<ResourceElementBean> toPublish)
        Sets the to publish.
        Parameters:
        toPublish - the new to publish
      • equals

        public boolean equals​(Object o)
        Equals.
        Overrides:
        equals in class Object
        Parameters:
        o - the o
        Returns:
        true, if successful
      • 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()