org.pentaho.di.ui.repository.repositoryexplorer.model
Class UIRepositoryDirectory

java.lang.Object
  extended by org.pentaho.ui.xul.XulEventSourceAdapter
      extended by org.pentaho.ui.xul.util.AbstractModelNode<UIRepositoryObject>
          extended by org.pentaho.di.ui.repository.repositoryexplorer.model.UIRepositoryObject
              extended by org.pentaho.di.ui.repository.repositoryexplorer.model.UIRepositoryDirectory
All Implemented Interfaces:
Serializable, Iterable<UIRepositoryObject>, Collection<UIRepositoryObject>, List<UIRepositoryObject>, org.pentaho.ui.xul.XulEventSource

public class UIRepositoryDirectory
extends UIRepositoryObject

See Also:
Serialized Form

Constructor Summary
UIRepositoryDirectory()
           
UIRepositoryDirectory(RepositoryDirectoryInterface rd, UIRepositoryDirectory uiParent, Repository rep)
           
 
Method Summary
 UIRepositoryDirectory createFolder(String name)
           
 void delete()
           
 boolean equals(Object obj)
           
 void fireCollectionChanged()
           
 UIRepositoryObject get(int index)
           
 int getCategory()
           
 UIRepositoryDirectories getChildren()
           
 String getDescription()
           
 RepositoryDirectory getDirectory()
           
 String getFormatModifiedDate()
           
 String getImage()
           
 String getLockMessage()
           
 Date getModifiedDate()
           
 String getModifiedUser()
           
 UIRepositoryDirectory getParent()
           
 String getPath()
           
 RepositoryObjectType getRepositoryElementType()
           
 UIRepositoryObjects getRepositoryObjects()
           
 String getType()
           
 int hashCode()
           
 boolean isDeleted()
           
 boolean isExpanded()
           
 boolean isVisible()
           
 Iterator<UIRepositoryObject> iterator()
           
 void move(UIRepositoryDirectory newParentDir)
           
 void refresh()
          Synchronize this folder with the back-end
 void setChildren(UIRepositoryDirectories children)
           
 void setExpanded(boolean expand)
           
 void setName(String name)
           
 int size()
           
 void toggleExpanded()
           
 String toString()
           
 
Methods inherited from class org.pentaho.di.ui.repository.repositoryexplorer.model.UIRepositoryObject
getComparator, getId, getName, getObjectId, getParentPath, getRepository, getRepositoryService, setComparator, setRepository, setRepositoryService
 
Methods inherited from class org.pentaho.ui.xul.util.AbstractModelNode
add, add, addAll, addAll, asList, clear, contains, containsAll, indexOf, isEmpty, isUniqueList, lastIndexOf, listIterator, listIterator, moveChildDown, moveChildDown, moveChildUp, moveChildUp, onAdd, onRemove, remove, remove, removeAll, removeModel, retainAll, set, setParent, setUniqueList, subList, toArray, toArray
 
Methods inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UIRepositoryDirectory

public UIRepositoryDirectory()

UIRepositoryDirectory

public UIRepositoryDirectory(RepositoryDirectoryInterface rd,
                             UIRepositoryDirectory uiParent,
                             Repository rep)
Method Detail

getChildren

public UIRepositoryDirectories getChildren()

setChildren

public void setChildren(UIRepositoryDirectories children)

getRepositoryObjects

public UIRepositoryObjects getRepositoryObjects()
                                         throws KettleException
Throws:
KettleException

toString

public String toString()
Overrides:
toString in class Object

setName

public void setName(String name)
             throws Exception
Specified by:
setName in class UIRepositoryObject
Throws:
Exception

getDescription

public String getDescription()
Specified by:
getDescription in class UIRepositoryObject

getLockMessage

public String getLockMessage()

getModifiedDate

public Date getModifiedDate()
Specified by:
getModifiedDate in class UIRepositoryObject

getModifiedUser

public String getModifiedUser()
Specified by:
getModifiedUser in class UIRepositoryObject

getRepositoryElementType

public RepositoryObjectType getRepositoryElementType()
Specified by:
getRepositoryElementType in class UIRepositoryObject

isDeleted

public boolean isDeleted()
Overrides:
isDeleted in class UIRepositoryObject

getType

public String getType()
Specified by:
getType in class UIRepositoryObject

getFormatModifiedDate

public String getFormatModifiedDate()
Specified by:
getFormatModifiedDate in class UIRepositoryObject

getDirectory

public RepositoryDirectory getDirectory()

getImage

public String getImage()
Specified by:
getImage in class UIRepositoryObject

delete

public void delete()
            throws Exception
Specified by:
delete in class UIRepositoryObject
Throws:
Exception

createFolder

public UIRepositoryDirectory createFolder(String name)
                                   throws Exception
Throws:
Exception

fireCollectionChanged

public void fireCollectionChanged()
Overrides:
fireCollectionChanged in class org.pentaho.ui.xul.util.AbstractModelNode<UIRepositoryObject>

move

public void move(UIRepositoryDirectory newParentDir)
          throws Exception
Specified by:
move in class UIRepositoryObject
Throws:
Exception

refresh

public void refresh()
Synchronize this folder with the back-end


getCategory

public int getCategory()
Specified by:
getCategory in class UIRepositoryObject

isExpanded

public boolean isExpanded()

setExpanded

public void setExpanded(boolean expand)

toggleExpanded

public void toggleExpanded()

getParent

public UIRepositoryDirectory getParent()
Specified by:
getParent in class UIRepositoryObject

getPath

public String getPath()
Overrides:
getPath in class UIRepositoryObject

isVisible

public boolean isVisible()

size

public int size()
Specified by:
size in interface Collection<UIRepositoryObject>
Specified by:
size in interface List<UIRepositoryObject>
Overrides:
size in class org.pentaho.ui.xul.util.AbstractModelNode<UIRepositoryObject>

get

public UIRepositoryObject get(int index)
Specified by:
get in interface List<UIRepositoryObject>
Overrides:
get in class org.pentaho.ui.xul.util.AbstractModelNode<UIRepositoryObject>

iterator

public Iterator<UIRepositoryObject> iterator()
Specified by:
iterator in interface Iterable<UIRepositoryObject>
Specified by:
iterator in interface Collection<UIRepositoryObject>
Specified by:
iterator in interface List<UIRepositoryObject>
Overrides:
iterator in class org.pentaho.ui.xul.util.AbstractModelNode<UIRepositoryObject>

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<UIRepositoryObject>
Specified by:
hashCode in interface List<UIRepositoryObject>
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Specified by:
equals in interface Collection<UIRepositoryObject>
Specified by:
equals in interface List<UIRepositoryObject>
Overrides:
equals in class Object