anderix.otcs
Class OtcsNode

java.lang.Object
  extended by anderix.otcs.OtcsNode

public class OtcsNode
extends java.lang.Object


Constructor Summary
OtcsNode()
           
OtcsNode(long nodeId, OtcsClient otcs)
           
 
Method Summary
 void downloadDocument(OtcsClient otcs, java.lang.String localFilePath)
           
 long getContainerSize()
           
 java.lang.String getCreateDate()
           
 long getCreateUserId()
           
 java.lang.String getDescription()
           
 java.lang.String getGuid()
           
 long getId()
           
 java.lang.String getModifyDate()
           
 long getModifyUserId()
           
 java.lang.String getName()
           
 long getOwnerGroupId()
           
 long getOwnerUserId()
           
 long getParentId()
           
 java.lang.String getPath()
           
 java.lang.String getPath(OtcsClient otcs)
           
 java.lang.String getReservedDate()
           
 long getReservedUserId()
           
 long getType()
           
 java.lang.String getTypeName()
           
 boolean isContainer()
           
 boolean isReserved()
           
static OtcsNode[] parseOtcsNodesFromJson(java.lang.String json)
           
 void rebuildOtcsPath(OtcsClient otcs)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OtcsNode

public OtcsNode()

OtcsNode

public OtcsNode(long nodeId,
                OtcsClient otcs)
         throws java.net.MalformedURLException,
                java.io.IOException
Throws:
java.net.MalformedURLException
java.io.IOException
Method Detail

isContainer

public boolean isContainer()

getContainerSize

public long getContainerSize()

getCreateDate

public java.lang.String getCreateDate()

getCreateUserId

public long getCreateUserId()

getDescription

public java.lang.String getDescription()

getGuid

public java.lang.String getGuid()

getId

public long getId()

getModifyDate

public java.lang.String getModifyDate()

getModifyUserId

public long getModifyUserId()

getName

public java.lang.String getName()

getPath

public java.lang.String getPath()

getPath

public java.lang.String getPath(OtcsClient otcs)
                         throws java.net.MalformedURLException,
                                java.io.IOException
Throws:
java.net.MalformedURLException
java.io.IOException

getOwnerGroupId

public long getOwnerGroupId()

getOwnerUserId

public long getOwnerUserId()

getParentId

public long getParentId()

isReserved

public boolean isReserved()

getReservedDate

public java.lang.String getReservedDate()

getReservedUserId

public long getReservedUserId()

getType

public long getType()

getTypeName

public java.lang.String getTypeName()

rebuildOtcsPath

public void rebuildOtcsPath(OtcsClient otcs)
                     throws java.net.MalformedURLException,
                            java.io.IOException
Throws:
java.net.MalformedURLException
java.io.IOException

downloadDocument

public void downloadDocument(OtcsClient otcs,
                             java.lang.String localFilePath)
                      throws java.net.MalformedURLException,
                             java.io.IOException
Throws:
java.net.MalformedURLException
java.io.IOException

parseOtcsNodesFromJson

public static OtcsNode[] parseOtcsNodesFromJson(java.lang.String json)
                                         throws java.net.MalformedURLException,
                                                java.io.IOException
Throws:
java.net.MalformedURLException
java.io.IOException