Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.opencms.core
Class CmsCronEntry  view CmsCronEntry download CmsCronEntry.java

java.lang.Object
  extended bycom.opencms.core.CmsCronEntry

class CmsCronEntry
extends java.lang.Object


Field Summary
static int C_ASTERIX
          The asterix-Value this value is set where no check has to be performed.
private static java.lang.String C_SPLITSTRING
          This string indicates, where to split the parameterstring.
private  int m_dayOfMonth
          The day of a month, when to lauch.
private  int m_dayOfWeek
          The day of a week, when to lauch.
private  java.lang.String m_group
          The group with its rights to lauch the module.
private  int m_hour
          The hour, when to lauch.
private  int m_minute
          The minute, when to lauch.
private  java.lang.String m_moduleParameter
          The parameter fot the module to lauch.
private  java.lang.String m_moduleToLaunch
          The module to lauch at its time.
private  int m_month
          The month, when to lauch.
private  java.lang.String m_user
          The user with its rights to lauch the module.
 
Constructor Summary
(package private) CmsCronEntry(java.lang.String paramstring)
          A constructor for this Table-Entry.
 
Method Summary
(package private)  boolean check(java.util.Calendar lastTime, java.util.Calendar now)
          Checks this schedule-entry.
 int getDayOfMonth()
           
 int getDayOfWeek()
           
 java.lang.String getGroupName()
          Gets the name of the group.
 int getHour()
           
 int getMinute()
           
 java.lang.String getModuleName()
          Gets the name of the module.
 java.lang.String getModuleParameter()
          Gets the parameter for the module.
 int getMonth()
           
 java.lang.String getParamstring()
          This method returns the paramstring for this table-entry.
 java.lang.String getUserName()
          Gets the name of the user.
private  boolean isBetween(int min, int value, int max)
          Checks, if the value is inbetween min and max.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_minute

private int m_minute
The minute, when to lauch.


m_hour

private int m_hour
The hour, when to lauch.


m_dayOfMonth

private int m_dayOfMonth
The day of a month, when to lauch.


m_month

private int m_month
The month, when to lauch.


m_dayOfWeek

private int m_dayOfWeek
The day of a week, when to lauch.


m_moduleToLaunch

private java.lang.String m_moduleToLaunch
The module to lauch at its time.


m_moduleParameter

private java.lang.String m_moduleParameter
The parameter fot the module to lauch.


m_user

private java.lang.String m_user
The user with its rights to lauch the module.


m_group

private java.lang.String m_group
The group with its rights to lauch the module.


C_ASTERIX

public static final int C_ASTERIX
The asterix-Value this value is set where no check has to be performed.

See Also:
Constant Field Values

C_SPLITSTRING

private static final java.lang.String C_SPLITSTRING
This string indicates, where to split the parameterstring.

See Also:
Constant Field Values
Constructor Detail

CmsCronEntry

CmsCronEntry(java.lang.String paramstring)
       throws CmsException
A constructor for this Table-Entry.

Method Detail

getParamstring

public java.lang.String getParamstring()
This method returns the paramstring for this table-entry. It is a string with all fields conected via C_SPLITSTRING


check

boolean check(java.util.Calendar lastTime,
              java.util.Calendar now)
Checks this schedule-entry.


isBetween

private boolean isBetween(int min,
                          int value,
                          int max)
Checks, if the value is inbetween min and max.


getModuleName

public java.lang.String getModuleName()
Gets the name of the module.


getModuleParameter

public java.lang.String getModuleParameter()
Gets the parameter for the module.


getUserName

public java.lang.String getUserName()
Gets the name of the user.


getGroupName

public java.lang.String getGroupName()
Gets the name of the group.


getMinute

public int getMinute()

getHour

public int getHour()

getDayOfMonth

public int getDayOfMonth()

getMonth

public int getMonth()

getDayOfWeek

public int getDayOfWeek()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).