Core API 7.13

net.juniper.smgt.sae.portal
Class TimeSpec

java.lang.Object
  extended by net.juniper.smgt.sae.portal.TimeSpec

public class TimeSpec
extends java.lang.Object

The TimeSpec class encapsulates the time specification used in ScheduledTime

Since:
4.1. Effective Period added in 6.1
See Also:
ScheduledTime

Constructor Summary
TimeSpec()
          Default constrcutor
TimeSpec(long date)
          Constrcutor using a date
TimeSpec(java.lang.String year, java.lang.String month, java.lang.String dayOfMonth, java.lang.String dayOfWeek, java.lang.String hour, java.lang.String minute, java.lang.String timeZone, java.lang.String weeklyRecurFreq)
          Constructor with all the Time spec attributes EXCEPT effectivePeriod
TimeSpec(java.lang.String year, java.lang.String month, java.lang.String dayOfMonth, java.lang.String dayOfWeek, java.lang.String hour, java.lang.String minute, java.lang.String timeZone, java.lang.String effectivePeriod, java.lang.String weeklyRecurFreq)
          Constructor with all the time spec attributes INCLUDING effective period.
TimeSpec(net.juniper.smgt.policy.time.TimeSpec aTimeSpec)
          Constrcutor using portal TimeSpec
 
Method Summary
 java.lang.String getDayOfMonth()
           
 java.lang.String getDayOfWeek()
           
 net.juniper.smgt.policy.time.TimeSpec getDelegateTimeSpec()
          For internal use.
 java.lang.String getEffectivePeriod()
           
 java.lang.String getHour()
           
 java.lang.String getMinute()
           
 java.lang.String getMonth()
           
 java.lang.String getTimeZone()
           
 java.lang.String getWeeklyRecurFreq()
           
 java.lang.String getYear()
           
 void setDayOfMonth(java.lang.String dayOfMonth)
           
 void setDayOfWeek(java.lang.String dayOfWeek)
           
 void setEffectivePeriod(java.lang.String effectivePeriod)
           
 void setHour(java.lang.String hour)
           
 void setMinute(java.lang.String minute)
           
 void setMonth(java.lang.String month)
           
 void setTimeZone(java.lang.String timeZone)
           
 void setWeeklyRecurFreq(java.lang.String weeklyRecurFreq)
           
 void setYear(java.lang.String year)
           
 java.lang.String toString()
          For debugging only.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeSpec

public TimeSpec()
Default constrcutor


TimeSpec

public TimeSpec(java.lang.String year,
                java.lang.String month,
                java.lang.String dayOfMonth,
                java.lang.String dayOfWeek,
                java.lang.String hour,
                java.lang.String minute,
                java.lang.String timeZone,
                java.lang.String weeklyRecurFreq)
Constructor with all the Time spec attributes EXCEPT effectivePeriod


TimeSpec

public TimeSpec(java.lang.String year,
                java.lang.String month,
                java.lang.String dayOfMonth,
                java.lang.String dayOfWeek,
                java.lang.String hour,
                java.lang.String minute,
                java.lang.String timeZone,
                java.lang.String effectivePeriod,
                java.lang.String weeklyRecurFreq)
Constructor with all the time spec attributes INCLUDING effective period.


TimeSpec

public TimeSpec(long date)
Constrcutor using a date


TimeSpec

public TimeSpec(net.juniper.smgt.policy.time.TimeSpec aTimeSpec)
Constrcutor using portal TimeSpec

Method Detail

getYear

public java.lang.String getYear()
Returns:
String The year.

getMonth

public java.lang.String getMonth()
Returns:
String The month.

getDayOfMonth

public java.lang.String getDayOfMonth()
Returns:
String The day of the month.

getDayOfWeek

public java.lang.String getDayOfWeek()
Returns:
String The day of the week.

getHour

public java.lang.String getHour()
Returns:
String The hour.

getMinute

public java.lang.String getMinute()
Returns:
String The minute.

getEffectivePeriod

public java.lang.String getEffectivePeriod()
Returns:
String The effective period.

getTimeZone

public java.lang.String getTimeZone()
Returns:
String The time zone.

getWeeklyRecurFreq

public java.lang.String getWeeklyRecurFreq()

setWeeklyRecurFreq

public void setWeeklyRecurFreq(java.lang.String weeklyRecurFreq)

setYear

public void setYear(java.lang.String year)
Parameters:
string -

setMonth

public void setMonth(java.lang.String month)
Parameters:
string -

setDayOfMonth

public void setDayOfMonth(java.lang.String dayOfMonth)
Parameters:
string -

setDayOfWeek

public void setDayOfWeek(java.lang.String dayOfWeek)
Parameters:
string -

setHour

public void setHour(java.lang.String hour)
Parameters:
string -

setMinute

public void setMinute(java.lang.String minute)
Parameters:
string -

setTimeZone

public void setTimeZone(java.lang.String timeZone)
Parameters:
string -

setEffectivePeriod

public void setEffectivePeriod(java.lang.String effectivePeriod)
Parameters:
string -

getDelegateTimeSpec

public net.juniper.smgt.policy.time.TimeSpec getDelegateTimeSpec()
For internal use. Provide the delegate time spec


toString

public java.lang.String toString()
For debugging only. Returns a description of this bean.

Overrides:
toString in class java.lang.Object

Core API 7.13