org.olat.fileresource.types
Class FileResource

java.lang.Object
  extended by org.olat.fileresource.types.FileResource
All Implemented Interfaces:
OLATResourceable
Direct Known Subclasses:
AnimationFileResource, DocFileResource, FeedFileResource, GlossaryResource, ImageFileResource, ImsCPFileResource, MovieFileResource, PdfFileResource, PowerpointFileResource, ScormCPFileResource, SharedFolderFileResource, SoundFileResource, SurveyFileResource, TestFileResource, WikiResource, XlsFileResource

public class FileResource
extends java.lang.Object
implements OLATResourceable

Initial Date: Apr 8, 2004

Author:
Mike Stock

Field Summary
static java.lang.String GENERIC_TYPE_NAME
          Generic file resource type identifier.
 
Constructor Summary
FileResource()
           
 
Method Summary
 java.lang.Long getResourceableId()
           
 java.lang.String getResourceableTypeName()
           
 void overrideResourceableId(java.lang.Long newId)
          Only used internally when switching subtypes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERIC_TYPE_NAME

public static final java.lang.String GENERIC_TYPE_NAME
Generic file resource type identifier.

See Also:
Constant Field Values
Constructor Detail

FileResource

public FileResource()
Method Detail

overrideResourceableId

public void overrideResourceableId(java.lang.Long newId)
Only used internally when switching subtypes.

Parameters:
newId -

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