com.dotmarketing.beans
Class Inode

java.lang.Object
  extended by com.dotmarketing.beans.Inode
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AddressProxy, Banner, Campaign, Category, Click, Communication, DiscountCode, Entity, Event, EventRegistration, Facility, Field, FileUpload, Folder, Host, Identifier, Jobs, MailingList, Order, OrderItem, Organization, Product, ProductFormat, ProductPrice, Recipient, Recurance, Relationship, Resume, Searchfirm, Structure, Subscriber, UserComment, UserProxy, VirtualLink, WebAsset, WebEvent, WebEventAttendee, WebEventLocation, WebEventRegistration, WorkflowComment, WorkflowHistory, WorkflowTask

public class Inode
extends java.lang.Object
implements java.io.Serializable

Author:
rocco
See Also:
Serialized Form

Field Summary
protected  long inode
           
 
Constructor Summary
Inode()
           
 
Method Summary
 void addChild(Inode i)
           
 void addChild(Inode i, java.lang.String relationType)
           
 void addParent(Inode i)
           
 void addParent(Inode i, java.lang.String relationType)
           
 boolean deleteChild(Inode child)
          Remove the ASSOCIATION between a child and the inode
 boolean deleteChild(Inode child, java.lang.String relationType)
           
 boolean deleteParent(Inode parent)
          Remove the ASSOCIATION between a parent and the inode
 boolean deleteParent(Inode parent, java.lang.String relationType)
           
 boolean equals(java.lang.Object other)
           
 java.util.Date getiDate()
           
 java.util.Date getIDate()
          Returns the iDate.
 long getIdentifier()
           
 long getInode()
           
 java.util.Map<java.lang.String,java.lang.Object> getMap()
          Returns a hashmap with all the inode fields
 int getOwner()
          Returns the owner.
 java.lang.String getType()
          Returns the type.
 boolean hasChildren()
           
 boolean hasParents()
           
 boolean isNew()
           
 void setiDate(java.util.Date iDate)
           
 void setIDate(java.util.Date iDate)
          Sets the iDate.
 void setIDate(java.lang.String x)
           
 void setIdentifier(long identifier)
           
 void setInode(long inode)
          Sets the inode.
 void setInode(java.lang.String inode)
           
 void setOwner(int owner)
          Sets the owner.
 void setOwner(java.lang.String owner)
           
 void setParents(java.util.List newParents)
          Wipe out the old parents and associate a new parents set to the inode
 void setType(java.lang.String type)
          Sets the type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inode

protected long inode
Constructor Detail

Inode

public Inode()
Method Detail

setIDate

public void setIDate(java.util.Date iDate)
Sets the iDate.

Parameters:
iDate - The iDate to set

setIDate

public void setIDate(java.lang.String x)

getIDate

public java.util.Date getIDate()
Returns the iDate.

Returns:
java.util.Date

setInode

public void setInode(long inode)
Sets the inode.

Parameters:
inode - The inode to set

setInode

public void setInode(java.lang.String inode)

getInode

public long getInode()

setOwner

public void setOwner(int owner)
Sets the owner.

Parameters:
owner - The owner to set

setOwner

public void setOwner(java.lang.String owner)

getOwner

public int getOwner()
Returns the owner.

Returns:
int

setType

public void setType(java.lang.String type)
Sets the type.

Parameters:
type - The type to set

getType

public java.lang.String getType()
Returns the type.

Returns:
String

addChild

public void addChild(Inode i)

addChild

public void addChild(Inode i,
                     java.lang.String relationType)

addParent

public void addParent(Inode i)

addParent

public void addParent(Inode i,
                      java.lang.String relationType)

deleteChild

public boolean deleteChild(Inode child)
Remove the ASSOCIATION between a child and the inode

Parameters:
child - child to be disassociated
Returns:

deleteChild

public boolean deleteChild(Inode child,
                           java.lang.String relationType)

deleteParent

public boolean deleteParent(Inode parent)
Remove the ASSOCIATION between a parent and the inode

Parameters:
parent - parent to be disassociated
Returns:

deleteParent

public boolean deleteParent(Inode parent,
                            java.lang.String relationType)

hasChildren

public boolean hasChildren()
Returns:
If the inode has children return true, false otherwise

hasParents

public boolean hasParents()
Returns:
If the inode has children return true, false otherwise

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

getiDate

public java.util.Date getiDate()

setiDate

public void setiDate(java.util.Date iDate)

getIdentifier

public long getIdentifier()
Returns:
Returns the identifier.

setIdentifier

public void setIdentifier(long identifier)
Parameters:
identifier - The identifier to set.

isNew

public boolean isNew()

setParents

public void setParents(java.util.List newParents)
Wipe out the old parents and associate a new parents set to the inode

Parameters:
newChildren - New children set

getMap

public java.util.Map<java.lang.String,java.lang.Object> getMap()
Returns a hashmap with all the inode fields

Returns:
the map


Copyright © 2006 Dotmarketing, Inc. All Rights Reserved.