com.dotmarketing.beans
Class Inode

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

public class Inode
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable, Permissionable, Categorizable, Versionable

Author:
rocco
See Also:
Serialized Form

Field Summary
protected  long inode
           
 
Constructor Summary
Inode()
           
 
Method Summary
 void addChild(Inode i)
          Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches
 void addChild(Inode i, java.lang.String relationType)
          Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches
 void addChild(Inode i, java.lang.String relationType, int sortOrder)
          Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches
 void addParent(Inode i)
          Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches
 void addParent(Inode i, java.lang.String relationType)
          Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches
 int compareTo(java.lang.Object compObject)
           
 boolean deleteChild(Inode child)
          Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches
 boolean deleteChild(Inode child, java.lang.String relationType)
          Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches
 boolean deleteParent(Inode parent)
          Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches
 boolean deleteParent(Inode parent, java.lang.String relationType)
          Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches
 boolean equals(java.lang.Object other)
           
 long getCategoryId()
           
 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
 java.util.Date getModDate()
           
 java.lang.String getModUser()
           
 java.lang.String getOwner()
          Returns the owner.
 long getPermissionId()
          Sets the id to be used for checking permissions
 java.lang.String getTitle()
           
 java.lang.String getType()
          Returns the type.
 long getVersionId()
           
 java.lang.String getVersionType()
           
 boolean hasChildren()
           
 boolean hasParents()
           
 boolean isArchived()
           
 boolean isLive()
           
 boolean isLocked()
           
 boolean isNew()
           
 boolean isWorking()
           
 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(java.lang.String owner)
          Sets the owner.
 void setParents(java.util.List newParents)
          Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches
 void setType(java.lang.String type)
          Sets the type.
 void setVersionId(long versionId)
           
 
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

isLocked

public boolean isLocked()
Specified by:
isLocked in interface Versionable

getModDate

public java.util.Date getModDate()
Specified by:
getModDate in interface Versionable

getModUser

public java.lang.String getModUser()
Specified by:
getModUser in interface Versionable

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface Versionable

isArchived

public boolean isArchived()
Specified by:
isArchived in interface Versionable

isLive

public boolean isLive()
Specified by:
isLive in interface Versionable

isWorking

public boolean isWorking()
Specified by:
isWorking in interface Versionable

getVersionId

public long getVersionId()
Specified by:
getVersionId in interface Versionable

getVersionType

public java.lang.String getVersionType()
Specified by:
getVersionType in interface Versionable

setVersionId

public void setVersionId(long versionId)
Specified by:
setVersionId in interface Versionable

getCategoryId

public long getCategoryId()
Specified by:
getCategoryId in interface Categorizable

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()
Specified by:
getInode in interface Versionable

setOwner

public void setOwner(java.lang.String owner)
Sets the owner.

Specified by:
setOwner in interface Permissionable
Parameters:
owner - The owner to set

getOwner

public java.lang.String getOwner()
Returns the owner.

Specified by:
getOwner in interface Permissionable
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)
Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches


addChild

public void addChild(Inode i,
                     java.lang.String relationType)
Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches


addChild

public void addChild(Inode i,
                     java.lang.String relationType,
                     int sortOrder)
Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches


addParent

public void addParent(Inode i)
Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches


addParent

public void addParent(Inode i,
                      java.lang.String relationType)
Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches


deleteChild

public boolean deleteChild(Inode child)
Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches

Remove the ASSOCIATION between a child and the inode

Parameters:
child - child to be dissociated
Returns:

deleteChild

public boolean deleteChild(Inode child,
                           java.lang.String relationType)
Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches

Remove the ASSOCIATION between a child and the inode

Parameters:
child - child to be dissociated
Returns:

deleteParent

public boolean deleteParent(Inode parent)
Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches

Remove the ASSOCIATION between a parent and the inode

Parameters:
parent - parent to be dissociated
Returns:

deleteParent

public boolean deleteParent(Inode parent,
                            java.lang.String relationType)
Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches


setParents

public void setParents(java.util.List newParents)
Deprecated. Association between inodes should be called through their respective API, calling the API ensures the consistency of the relationship and caches

Wipe out the old parents and associate a new parents set to the inode

Parameters:
newChildren - New children set

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()

getMap

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

Returns:
the map

compareTo

public int compareTo(java.lang.Object compObject)
Specified by:
compareTo in interface java.lang.Comparable

getPermissionId

public long getPermissionId()
Description copied from interface: Permissionable
Sets the id to be used for checking permissions

Specified by:
getPermissionId in interface Permissionable
Returns:


Copyright © 2009 Dotmarketing, Inc. All Rights Reserved.