<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2_05) on Fri Oct 01 12:49:35 CEST 2004 -->
<TITLE>
CmsResource
</TITLE>
<META NAME="keywords" CONTENT="org.opencms.file.CmsResource class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="CmsResource";
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../org/opencms/file/CmsRequestContext.html" title="class in org.opencms.file"><B>PREV CLASS</B></A>
<A HREF="../../../org/opencms/file/CmsResourceFilter.html" title="class in org.opencms.file"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="CmsResource.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.opencms.file</FONT>
<BR>
Class CmsResource</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.opencms.file.CmsResource</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable, java.lang.Comparable, java.io.Serializable</DD>
</DL>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../org/opencms/file/CmsFile.html" title="class in org.opencms.file">CmsFile</A>, <A HREF="../../../org/opencms/file/CmsFolder.html" title="class in org.opencms.file">CmsFolder</A></DD>
</DL>
<HR>
<DL>
<DT>public class <B>CmsResource</B><DT>extends java.lang.Object<DT>implements java.lang.Cloneable, java.io.Serializable, java.lang.Comparable</DL>
<P>
Base class for all OpenCms resources.<p>
<P>
<P>
<DL>
<DT><B>Version:</B></DT>
<DD>$Revision: 1.18 $</DD>
<DT><B>Author:</B></DT>
<DD>Alexander Kandzior (a.kandzior@alkacon.com), Michael Emmerich (m.emmerich@alkacon.com), Thomas Weckert (t.weckert@alkacon.com)</DD>
<DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#org.opencms.file.CmsResource">Serialized Form</A></DL>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Field Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#DATE_EXPIRED_DEFAULT">DATE_EXPIRED_DEFAULT</A></B></CODE>
<BR>
The default expiration date of a resource (which is: never expires).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#DATE_RELEASED_DEFAULT">DATE_RELEASED_DEFAULT</A></B></CODE>
<BR>
The default release date of a resource (which is: always released).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#m_length">m_length</A></B></CODE>
<BR>
The size of the content.</TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#CmsResource(org.opencms.util.CmsUUID, org.opencms.util.CmsUUID, java.lang.String, int, int, int, int, long, org.opencms.util.CmsUUID, long, org.opencms.util.CmsUUID, long, long, int, int)">CmsResource</A></B>(<A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A> structureId,
<A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A> resourceId,
java.lang.String rootPath,
int type,
int flags,
int projectId,
int state,
long dateCreated,
<A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A> userCreated,
long dateLastModified,
<A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A> userLastModified,
long dateReleased,
long dateExpired,
int linkCount,
int size)</CODE>
<BR>
Constructor, creates a new CmsRecource object.</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#clone()">clone</A></B>()</CODE>
<BR>
Returns a clone of this Objects instance.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#compareTo(java.lang.Object)">compareTo</A></B>(java.lang.Object o)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object obj)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getDateCreated()">getDateCreated</A></B>()</CODE>
<BR>
Returns the date of the creation of this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getDateExpired()">getDateExpired</A></B>()</CODE>
<BR>
Returns the expiration date this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getDateLastModified()">getDateLastModified</A></B>()</CODE>
<BR>
Returns the date of the last modification of this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getDateReleased()">getDateReleased</A></B>()</CODE>
<BR>
Returns the release date this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getFlags()">getFlags</A></B>()</CODE>
<BR>
Returns the flags of this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getFolderPath(java.lang.String)">getFolderPath</A></B>(java.lang.String resource)</CODE>
<BR>
Returns the folder path of the resource with the given name,
if the resource is a folder (i.e. ends with a "/"), the complete path of the folder
is returned (not the parent folder path).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getLength()">getLength</A></B>()</CODE>
<BR>
Gets the length of the content (i.e. the file size).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getName()">getName</A></B>()</CODE>
<BR>
Returns the name of this resource, e.g. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getName(java.lang.String)">getName</A></B>(java.lang.String resource)</CODE>
<BR>
Returns the name of a resource without the path information.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getParentFolder(java.lang.String)">getParentFolder</A></B>(java.lang.String resource)</CODE>
<BR>
Returns the absolute parent folder name of a resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getPathLevel(java.lang.String)">getPathLevel</A></B>(java.lang.String resource)</CODE>
<BR>
Returns the directory level of a resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getPathPart(java.lang.String, int)">getPathPart</A></B>(java.lang.String resource,
int level)</CODE>
<BR>
Returns the name of a parent folder of the given resource,
that is either minus levels up
from the current folder, or that is plus levels down from the
root folder.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getProjectLastModified()">getProjectLastModified</A></B>()</CODE>
<BR>
Returns the id of the project where the resource has been last modified.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getResourceId()">getResourceId</A></B>()</CODE>
<BR>
Returns the id of the resource database entry of this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getRootPath()">getRootPath</A></B>()</CODE>
<BR>
Returns the name of a resource with it's full path from the root folder
including the current site root,
for example <code>/sites/default/myfolder/index.html</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getSiblingCount()">getSiblingCount</A></B>()</CODE>
<BR>
Returns the number of siblings of the resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getState()">getState</A></B>()</CODE>
<BR>
Returns the state of this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getStructureId()">getStructureId</A></B>()</CODE>
<BR>
Returns the id of the structure record of this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getTypeId()">getTypeId</A></B>()</CODE>
<BR>
Returns the resource type id for this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getUserCreated()">getUserCreated</A></B>()</CODE>
<BR>
Returns the user id of the user who created this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#getUserLastModified()">getUserLastModified</A></B>()</CODE>
<BR>
Returns the user id of the user who made the last change on this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#hashCode()">hashCode</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#isFile()">isFile</A></B>()</CODE>
<BR>
Determines if this resource is a file.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#isFolder()">isFolder</A></B>()</CODE>
<BR>
Checks if this resource is a folder.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#isFolder(java.lang.String)">isFolder</A></B>(java.lang.String resource)</CODE>
<BR>
Returns true if the resource name is a folder name, i.e. ends with a "/".</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#isInternal()">isInternal</A></B>()</CODE>
<BR>
Checks if the resource is internal.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#isLabeled()">isLabeled</A></B>()</CODE>
<BR>
Checks if the link has to be labeled with a special icon in the explorer view.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#isTouched()">isTouched</A></B>()</CODE>
<BR>
Returns true if this resource was touched.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#setDateExpired(long)">setDateExpired</A></B>(long time)</CODE>
<BR>
Sets the expiration date this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#setDateLastModified(long)">setDateLastModified</A></B>(long time)</CODE>
<BR>
Sets the date of the last modification of this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#setDateReleased(long)">setDateReleased</A></B>(long time)</CODE>
<BR>
Sets the release date this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#setFlags(int)">setFlags</A></B>(int flags)</CODE>
<BR>
Sets the flags of this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#setState(int)">setState</A></B>(int state)</CODE>
<BR>
Sets the state of this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#setType(int)">setType</A></B>(int type)</CODE>
<BR>
Sets the type of this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#setUserLastModified(org.opencms.util.CmsUUID)">setUserLastModified</A></B>(<A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A> resourceLastModifiedByUserId)</CODE>
<BR>
Sets the user id of the user who changed this resource.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/opencms/file/CmsResource.html#toString()">toString</A></B>()</CODE>
<BR>
</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="DATE_EXPIRED_DEFAULT"><!-- --></A><H3>
DATE_EXPIRED_DEFAULT</H3>
<PRE>
public static final long <B>DATE_EXPIRED_DEFAULT</B></PRE>
<DL>
<DD>The default expiration date of a resource (which is: never expires).
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.opencms.file.CmsResource.DATE_EXPIRED_DEFAULT">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="DATE_RELEASED_DEFAULT"><!-- --></A><H3>
DATE_RELEASED_DEFAULT</H3>
<PRE>
public static final long <B>DATE_RELEASED_DEFAULT</B></PRE>
<DL>
<DD>The default release date of a resource (which is: always released).
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.opencms.file.CmsResource.DATE_RELEASED_DEFAULT">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="m_length"><!-- --></A><H3>
m_length</H3>
<PRE>
protected int <B>m_length</B></PRE>
<DL>
<DD>The size of the content.
<P>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="CmsResource(org.opencms.util.CmsUUID, org.opencms.util.CmsUUID, java.lang.String, int, int, int, int, long, org.opencms.util.CmsUUID, long, org.opencms.util.CmsUUID, long, long, int, int)"><!-- --></A><H3>
CmsResource</H3>
<PRE>
public <B>CmsResource</B>(<A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A> structureId,
<A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A> resourceId,
java.lang.String rootPath,
int type,
int flags,
int projectId,
int state,
long dateCreated,
<A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A> userCreated,
long dateLastModified,
<A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A> userLastModified,
long dateReleased,
long dateExpired,
int linkCount,
int size)</PRE>
<DL>
<DD>Constructor, creates a new CmsRecource object.<p>
<P>
<DT><B>Parameters:</B><DD><CODE>structureId</CODE> - the id of this resources structure record<DD><CODE>resourceId</CODE> - the id of this resources resource record<DD><CODE>rootPath</CODE> - the root path to the resource<DD><CODE>type</CODE> - the type of this resource<DD><CODE>flags</CODE> - the flags of this resource<DD><CODE>projectId</CODE> - the project id this resource was last modified in<DD><CODE>state</CODE> - the state of this resource<DD><CODE>dateCreated</CODE> - the creation date of this resource<DD><CODE>userCreated</CODE> - the id of the user who created this resource<DD><CODE>dateLastModified</CODE> - the date of the last modification of this resource<DD><CODE>userLastModified</CODE> - the id of the user who did the last modification of this resource<DD><CODE>dateReleased</CODE> - the release date of this resource<DD><CODE>dateExpired</CODE> - the expiration date of this resource<DD><CODE>linkCount</CODE> - the count of all siblings of this resource<DD><CODE>size</CODE> - the size of the file content of this resource</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="getFolderPath(java.lang.String)"><!-- --></A><H3>
getFolderPath</H3>
<PRE>
public static java.lang.String <B>getFolderPath</B>(java.lang.String resource)</PRE>
<DL>
<DD>Returns the folder path of the resource with the given name,
if the resource is a folder (i.e. ends with a "/"), the complete path of the folder
is returned (not the parent folder path).<p>
This is achived by just cutting of everthing behind the last occurence of a "/" character
in the String, no check if performed if the resource exists or not in the VFS,
only resources that end with a "/" are considered to be folders.
Example: Returns <code>/system/def/</code> for the
resource <code>/system/def/file.html</code> and
<code>/system/def/</code> for the (folder) resource <code>/system/def/</code>..
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resource</CODE> - the name of a resource
<DT><B>Returns:</B><DD>the folder of the given resource</DL>
</DD>
</DL>
<HR>
<A NAME="getName(java.lang.String)"><!-- --></A><H3>
getName</H3>
<PRE>
public static java.lang.String <B>getName</B>(java.lang.String resource)</PRE>
<DL>
<DD>Returns the name of a resource without the path information.<p>
The resource name of a file is the name of the file.
The resource name of a folder is the folder name with trailing "/".
The resource name of the root folder is <code>/</code>.<p>
Example: <code>/system/workplace/</code> has the resource name <code>workplace/</code>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resource</CODE> - the resource to get the name for
<DT><B>Returns:</B><DD>the name of a resource without the path information</DL>
</DD>
</DL>
<HR>
<A NAME="getParentFolder(java.lang.String)"><!-- --></A><H3>
getParentFolder</H3>
<PRE>
public static java.lang.String <B>getParentFolder</B>(java.lang.String resource)</PRE>
<DL>
<DD>Returns the absolute parent folder name of a resource.<p>
The parent resource of a file is the folder of the file.
The parent resource of a folder is the parent folder.
The parent resource of the root folder is <code>null</code>.<p>
Example: <code>/system/workplace/</code> has the parent <code>/system/</code>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resource</CODE> - the resource to find the parent folder for
<DT><B>Returns:</B><DD>the calculated parent absolute folder path, or <code>null</code> for the root folder</DL>
</DD>
</DL>
<HR>
<A NAME="getPathLevel(java.lang.String)"><!-- --></A><H3>
getPathLevel</H3>
<PRE>
public static int <B>getPathLevel</B>(java.lang.String resource)</PRE>
<DL>
<DD>Returns the directory level of a resource.<p>
The root folder "/" has level 0,
a folder "/foo/" would have level 1,
a folfer "/foo/bar/" level 2 etc.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resource</CODE> - the resource to determin the directory level for
<DT><B>Returns:</B><DD>the directory level of a resource</DL>
</DD>
</DL>
<HR>
<A NAME="getPathPart(java.lang.String, int)"><!-- --></A><H3>
getPathPart</H3>
<PRE>
public static java.lang.String <B>getPathPart</B>(java.lang.String resource,
int level)</PRE>
<DL>
<DD>Returns the name of a parent folder of the given resource,
that is either minus levels up
from the current folder, or that is plus levels down from the
root folder.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resource</CODE> - the name of a resource<DD><CODE>level</CODE> - of levels to walk up or down
<DT><B>Returns:</B><DD>the name of a parent folder of the given resource</DL>
</DD>
</DL>
<HR>
<A NAME="isFolder(java.lang.String)"><!-- --></A><H3>
isFolder</H3>
<PRE>
public static boolean <B>isFolder</B>(java.lang.String resource)</PRE>
<DL>
<DD>Returns true if the resource name is a folder name, i.e. ends with a "/".<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resource</CODE> - the resource to check
<DT><B>Returns:</B><DD>true if the resource name is a folder name, i.e. ends with a "/"</DL>
</DD>
</DL>
<HR>
<A NAME="clone()"><!-- --></A><H3>
clone</H3>
<PRE>
public java.lang.Object <B>clone</B>()</PRE>
<DL>
<DD>Returns a clone of this Objects instance.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a clone of this instance</DL>
</DD>
</DL>
<HR>
<A NAME="compareTo(java.lang.Object)"><!-- --></A><H3>
compareTo</H3>
<PRE>
public int <B>compareTo</B>(java.lang.Object o)</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>compareTo</CODE> in interface <CODE>java.lang.Comparable</CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Comparable.compareTo(java.lang.Object)</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(java.lang.Object obj)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Object.equals(java.lang.Object)</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getDateCreated()"><!-- --></A><H3>
getDateCreated</H3>
<PRE>
public long <B>getDateCreated</B>()</PRE>
<DL>
<DD>Returns the date of the creation of this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the date of the creation of this resource</DL>
</DD>
</DL>
<HR>
<A NAME="getDateExpired()"><!-- --></A><H3>
getDateExpired</H3>
<PRE>
public long <B>getDateExpired</B>()</PRE>
<DL>
<DD>Returns the expiration date this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the expiration date of this resource</DL>
</DD>
</DL>
<HR>
<A NAME="getDateLastModified()"><!-- --></A><H3>
getDateLastModified</H3>
<PRE>
public long <B>getDateLastModified</B>()</PRE>
<DL>
<DD>Returns the date of the last modification of this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the date of the last modification of this resource</DL>
</DD>
</DL>
<HR>
<A NAME="getDateReleased()"><!-- --></A><H3>
getDateReleased</H3>
<PRE>
public long <B>getDateReleased</B>()</PRE>
<DL>
<DD>Returns the release date this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the release date of this resource</DL>
</DD>
</DL>
<HR>
<A NAME="getFlags()"><!-- --></A><H3>
getFlags</H3>
<PRE>
public int <B>getFlags</B>()</PRE>
<DL>
<DD>Returns the flags of this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the flags of this resource</DL>
</DD>
</DL>
<HR>
<A NAME="getLength()"><!-- --></A><H3>
getLength</H3>
<PRE>
public int <B>getLength</B>()</PRE>
<DL>
<DD>Gets the length of the content (i.e. the file size).<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the length of the content</DL>
</DD>
</DL>
<HR>
<A NAME="getName()"><!-- --></A><H3>
getName</H3>
<PRE>
public java.lang.String <B>getName</B>()</PRE>
<DL>
<DD>Returns the name of this resource, e.g. <code>index.html</code>.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the name of this resource</DL>
</DD>
</DL>
<HR>
<A NAME="getProjectLastModified()"><!-- --></A><H3>
getProjectLastModified</H3>
<PRE>
public int <B>getProjectLastModified</B>()</PRE>
<DL>
<DD>Returns the id of the project where the resource has been last modified.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the id of the project where the resource has been last modified</DL>
</DD>
</DL>
<HR>
<A NAME="getResourceId()"><!-- --></A><H3>
getResourceId</H3>
<PRE>
public <A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A> <B>getResourceId</B>()</PRE>
<DL>
<DD>Returns the id of the resource database entry of this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the id of the resource database entry</DL>
</DD>
</DL>
<HR>
<A NAME="getRootPath()"><!-- --></A><H3>
getRootPath</H3>
<PRE>
public java.lang.String <B>getRootPath</B>()</PRE>
<DL>
<DD>Returns the name of a resource with it's full path from the root folder
including the current site root,
for example <code>/sites/default/myfolder/index.html</code>.<p>
In a presentation level application usually the current site root must be
cut of from the root path. Use <A HREF="../../../org/opencms/file/CmsObject.html#getSitePath(org.opencms.file.CmsResource)"><CODE>CmsObject.getSitePath(CmsResource)</CODE></A>
to get the "absolute" path of a resource in the current site.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the name of a resource with it's full path from the root folder
including the current site root<DT><B>See Also:</B><DD><A HREF="../../../org/opencms/file/CmsObject.html#getSitePath(org.opencms.file.CmsResource)"><CODE>CmsObject.getSitePath(CmsResource)</CODE></A>,
<A HREF="../../../org/opencms/file/CmsRequestContext.html#getSitePath(org.opencms.file.CmsResource)"><CODE>CmsRequestContext.getSitePath(CmsResource)</CODE></A>,
<A HREF="../../../org/opencms/file/CmsRequestContext.html#removeSiteRoot(java.lang.String)"><CODE>CmsRequestContext.removeSiteRoot(String)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getSiblingCount()"><!-- --></A><H3>
getSiblingCount</H3>
<PRE>
public int <B>getSiblingCount</B>()</PRE>
<DL>
<DD>Returns the number of siblings of the resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the number of siblings</DL>
</DD>
</DL>
<HR>
<A NAME="getState()"><!-- --></A><H3>
getState</H3>
<PRE>
public int <B>getState</B>()</PRE>
<DL>
<DD>Returns the state of this resource.<p>
This may be C_STATE_UNCHANGED, C_STATE_CHANGED, C_STATE_NEW or C_STATE_DELETED.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the state of this resource</DL>
</DD>
</DL>
<HR>
<A NAME="getStructureId()"><!-- --></A><H3>
getStructureId</H3>
<PRE>
public <A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A> <B>getStructureId</B>()</PRE>
<DL>
<DD>Returns the id of the structure record of this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the id of the structure record of this resource</DL>
</DD>
</DL>
<HR>
<A NAME="getTypeId()"><!-- --></A><H3>
getTypeId</H3>
<PRE>
public int <B>getTypeId</B>()</PRE>
<DL>
<DD>Returns the resource type id for this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the resource type id of this resource.</DL>
</DD>
</DL>
<HR>
<A NAME="getUserCreated()"><!-- --></A><H3>
getUserCreated</H3>
<PRE>
public <A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A> <B>getUserCreated</B>()</PRE>
<DL>
<DD>Returns the user id of the user who created this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the user id</DL>
</DD>
</DL>
<HR>
<A NAME="getUserLastModified()"><!-- --></A><H3>
getUserLastModified</H3>
<PRE>
public <A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A> <B>getUserLastModified</B>()</PRE>
<DL>
<DD>Returns the user id of the user who made the last change on this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the user id of the user who made the last change<p></DL>
</DD>
</DL>
<HR>
<A NAME="hashCode()"><!-- --></A><H3>
hashCode</H3>
<PRE>
public int <B>hashCode</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Object.hashCode()</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="isFile()"><!-- --></A><H3>
isFile</H3>
<PRE>
public boolean <B>isFile</B>()</PRE>
<DL>
<DD>Determines if this resource is a file.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>true if this resource is a file, false otherwise</DL>
</DD>
</DL>
<HR>
<A NAME="isFolder()"><!-- --></A><H3>
isFolder</H3>
<PRE>
public boolean <B>isFolder</B>()</PRE>
<DL>
<DD>Checks if this resource is a folder.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>true if this is is a folder</DL>
</DD>
</DL>
<HR>
<A NAME="isInternal()"><!-- --></A><H3>
isInternal</H3>
<PRE>
public boolean <B>isInternal</B>()</PRE>
<DL>
<DD>Checks if the resource is internal.<p>
This state is stored as bit 1 in the resource flags.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>true if the resource is internal, otherwise false</DL>
</DD>
</DL>
<HR>
<A NAME="isLabeled()"><!-- --></A><H3>
isLabeled</H3>
<PRE>
public boolean <B>isLabeled</B>()</PRE>
<DL>
<DD>Checks if the link has to be labeled with a special icon in the explorer view.<p>
This state is stored as bit 2 in the resource flags.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>true if a link to the resource has to be labeled, otherwise false</DL>
</DD>
</DL>
<HR>
<A NAME="isTouched()"><!-- --></A><H3>
isTouched</H3>
<PRE>
public boolean <B>isTouched</B>()</PRE>
<DL>
<DD>Returns true if this resource was touched.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>boolean true if this resource was touched</DL>
</DD>
</DL>
<HR>
<A NAME="setDateExpired(long)"><!-- --></A><H3>
setDateExpired</H3>
<PRE>
public void <B>setDateExpired</B>(long time)</PRE>
<DL>
<DD>Sets the expiration date this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>time</CODE> - the date to set</DL>
</DD>
</DL>
<HR>
<A NAME="setDateLastModified(long)"><!-- --></A><H3>
setDateLastModified</H3>
<PRE>
public void <B>setDateLastModified</B>(long time)</PRE>
<DL>
<DD>Sets the date of the last modification of this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>time</CODE> - the date to set</DL>
</DD>
</DL>
<HR>
<A NAME="setDateReleased(long)"><!-- --></A><H3>
setDateReleased</H3>
<PRE>
public void <B>setDateReleased</B>(long time)</PRE>
<DL>
<DD>Sets the release date this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>time</CODE> - the date to set</DL>
</DD>
</DL>
<HR>
<A NAME="setFlags(int)"><!-- --></A><H3>
setFlags</H3>
<PRE>
public void <B>setFlags</B>(int flags)</PRE>
<DL>
<DD>Sets the flags of this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>flags</CODE> - int value with flag values to set</DL>
</DD>
</DL>
<HR>
<A NAME="setState(int)"><!-- --></A><H3>
setState</H3>
<PRE>
public void <B>setState</B>(int state)</PRE>
<DL>
<DD>Sets the state of this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>state</CODE> - the state to set</DL>
</DD>
</DL>
<HR>
<A NAME="setType(int)"><!-- --></A><H3>
setType</H3>
<PRE>
public void <B>setType</B>(int type)</PRE>
<DL>
<DD>Sets the type of this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - the type to set</DL>
</DD>
</DL>
<HR>
<A NAME="setUserLastModified(org.opencms.util.CmsUUID)"><!-- --></A><H3>
setUserLastModified</H3>
<PRE>
public void <B>setUserLastModified</B>(<A HREF="../../../org/opencms/util/CmsUUID.html" title="class in org.opencms.util">CmsUUID</A> resourceLastModifiedByUserId)</PRE>
<DL>
<DD>Sets the user id of the user who changed this resource.<p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resourceLastModifiedByUserId</CODE> - the user id of the user who changed the resource</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Object.toString()</CODE></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../org/opencms/file/CmsRequestContext.html" title="class in org.opencms.file"><B>PREV CLASS</B></A>
<A HREF="../../../org/opencms/file/CmsResourceFilter.html" title="class in org.opencms.file"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="CmsResource.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>