org.olat.catalog
Class CatalogEntryImpl

java.lang.Object
  extended by org.olat.core.commons.persistence.PersistentObject
      extended by org.olat.catalog.CatalogEntryImpl
All Implemented Interfaces:
java.io.Serializable, CatalogEntry, CreateInfo, OLATResourceable, Persistable

public class CatalogEntryImpl
extends PersistentObject
implements CatalogEntry

Description:
Implementation of CatalogEntry

Author:
Felix Jost
See Also:
CatalogEntry, Serialized Form

Field Summary
 
Fields inherited from interface org.olat.catalog.CatalogEntry
TYPE_LEAF, TYPE_NODE
 
Method Summary
 java.lang.String getDescription()
          getter
 java.lang.String getExternalURL()
          getter for an external URL pointer of ths catalogentry
 java.lang.String getName()
          getter
 SecurityGroup getOwnerGroup()
          getter
 CatalogEntry getParent()
          parent node of this catalog entry
 RepositoryEntry getRepositoryEntry()
          getter
 java.lang.Long getResourceableId()
           
 java.lang.String getResourceableTypeName()
           
 int getType()
          getter
 void setDescription(java.lang.String description)
          setter
 void setExternalURL(java.lang.String externalURL)
          setter for an external URL pointer of ths catalogentry
 void setName(java.lang.String name)
          setter
 void setOwnerGroup(SecurityGroup ownerGroup)
          getter
 void setParent(CatalogEntry parent)
          parent node of this catalog entry
 void setRepositoryEntry(RepositoryEntry repositoryEntry)
          setter
 void setType(int type)
          setter
 java.lang.String toString()
           
 
Methods inherited from class org.olat.core.commons.persistence.PersistentObject
equalsByPersistableKey, getCreationDate, getKey
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.olat.core.id.CreateInfo
getCreationDate
 
Methods inherited from interface org.olat.core.id.Persistable
equalsByPersistableKey, getKey
 

Method Detail

getDescription

public java.lang.String getDescription()
Description copied from interface: CatalogEntry
getter

Specified by:
getDescription in interface CatalogEntry
Returns:
String
See Also:
CatalogEntry.getDescription()

setDescription

public void setDescription(java.lang.String description)
Description copied from interface: CatalogEntry
setter

Specified by:
setDescription in interface CatalogEntry
See Also:
CatalogEntry.setDescription(java.lang.String)

getName

public java.lang.String getName()
Description copied from interface: CatalogEntry
getter

Specified by:
getName in interface CatalogEntry
Returns:
String
See Also:
CatalogEntry.getName()

setName

public void setName(java.lang.String name)
Description copied from interface: CatalogEntry
setter

Specified by:
setName in interface CatalogEntry
See Also:
CatalogEntry.setName(java.lang.String)

getRepositoryEntry

public RepositoryEntry getRepositoryEntry()
Description copied from interface: CatalogEntry
getter

Specified by:
getRepositoryEntry in interface CatalogEntry
Returns:
RepositoryEntry
See Also:
CatalogEntry.getRepositoryEntry()

setRepositoryEntry

public void setRepositoryEntry(RepositoryEntry repositoryEntry)
Description copied from interface: CatalogEntry
setter

Specified by:
setRepositoryEntry in interface CatalogEntry
See Also:
CatalogEntry.setRepositoryEntry(org.olat.repository.RepositoryEntry)

getOwnerGroup

public SecurityGroup getOwnerGroup()
Description copied from interface: CatalogEntry
getter

Specified by:
getOwnerGroup in interface CatalogEntry
Returns:
SecurityGroup
See Also:
CatalogEntry.getOwnerGroup()

setOwnerGroup

public void setOwnerGroup(SecurityGroup ownerGroup)
Description copied from interface: CatalogEntry
getter

Specified by:
setOwnerGroup in interface CatalogEntry
See Also:
CatalogEntry.setOwnerGroup(org.olat.basesecurity.SecurityGroup)

getType

public int getType()
Description copied from interface: CatalogEntry
getter

Specified by:
getType in interface CatalogEntry
Returns:
int
See Also:
CatalogEntry.getType()

setType

public void setType(int type)
Description copied from interface: CatalogEntry
setter

Specified by:
setType in interface CatalogEntry
See Also:
CatalogEntry.setType(int)

getExternalURL

public java.lang.String getExternalURL()
Description copied from interface: CatalogEntry
getter for an external URL pointer of ths catalogentry

Specified by:
getExternalURL in interface CatalogEntry
Returns:
String
See Also:
CatalogEntry.getExternalURL()

setExternalURL

public void setExternalURL(java.lang.String externalURL)
Description copied from interface: CatalogEntry
setter for an external URL pointer of ths catalogentry

Specified by:
setExternalURL in interface CatalogEntry
See Also:
CatalogEntry.setExternalURL(java.lang.String)

getParent

public CatalogEntry getParent()
Description copied from interface: CatalogEntry
parent node of this catalog entry

Specified by:
getParent in interface CatalogEntry
Returns:
CatalogEntry
See Also:
CatalogEntry.getParent()

setParent

public void setParent(CatalogEntry parent)
Description copied from interface: CatalogEntry
parent node of this catalog entry

Specified by:
setParent in interface CatalogEntry
See Also:
CatalogEntry.setParent(org.olat.catalog.CatalogEntry)

toString

public java.lang.String toString()
Overrides:
toString in class PersistentObject
See Also:
PersistentObject.toString()

getResourceableTypeName

public java.lang.String getResourceableTypeName()
Specified by:
getResourceableTypeName in interface OLATResourceable
Returns:
a type name. It must be unique within OLAT. Consider this.getClass().getName() as such a type name.
See Also:
org.olat.core.id.OLATResourceablegetResourceableTypeName()

getResourceableId

public java.lang.Long getResourceableId()
Specified by:
getResourceableId in interface OLATResourceable
Returns:
a number identfiying the instance of this type. if null, then the OLATResourcable is just a type. The value 0 (zero) is not allowed
See Also:
org.olat.core.id.OLATResourceablegetResourceableId()