Core API 7.7

net.juniper.smgt.sae.portal
Class TimeSpec

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

public class TimeSpec
extends 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(String year, String month, String dayOfMonth, String dayOfWeek, String hour, String minute, String timeZone)
          Constructor with all the Time spec attributes EXCEPT effectivePeriod
TimeSpec(String year, String month, String dayOfMonth, String dayOfWeek, String hour, String minute, String timeZone, String effectivePeriod)
          Constructor with all the time spec attributes INCLUDING effective period.
TimeSpec(net.juniper.smgt.policy.time.TimeSpec aTimeSpec)
          Constrcutor using portal TimeSpec
 
Method Summary
 String getDayOfMonth()
           
 String getDayOfWeek()
           
 net.juniper.smgt.policy.time.TimeSpec getDelegateTimeSpec()
          For internal use.
 String getEffectivePeriod()
           
 String getHour()
           
 String getMinute()
           
 String getMonth()
           
 String getTimeZone()
           
 String getYear()
           
 void setDayOfMonth(String dayOfMonth)
           
 void setDayOfWeek(String dayOfWeek)
           
 void setEffectivePeriod(String effectivePeriod)
           
 void setHour(String hour)
           
 void setMinute(String minute)
           
 void setMonth(String month)
           
 void setTimeZone(String timeZone)
           
 void setYear(String year)
           
 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(String year,
                String month,
                String dayOfMonth,
                String dayOfWeek,
                String hour,
                String minute,
                String timeZone)
Constructor with all the Time spec attributes EXCEPT effectivePeriod


TimeSpec

public TimeSpec(String year,
                String month,
                String dayOfMonth,
                String dayOfWeek,
                String hour,
                String minute,
                String timeZone,
                String effectivePeriod)
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 String getYear()
Returns:
String The year.

getMonth

public String getMonth()
Returns:
String The month.

getDayOfMonth

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

getDayOfWeek

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

getHour

public String getHour()
Returns:
String The hour.

getMinute

public String getMinute()
Returns:
String The minute.

getEffectivePeriod

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

getTimeZone

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

setYear

public void setYear(String year)
Parameters:
string -

setMonth

public void setMonth(String month)
Parameters:
string -

setDayOfMonth

public void setDayOfMonth(String dayOfMonth)
Parameters:
string -

setDayOfWeek

public void setDayOfWeek(String dayOfWeek)
Parameters:
string -

setHour

public void setHour(String hour)
Parameters:
string -

setMinute

public void setMinute(String minute)
Parameters:
string -

setTimeZone

public void setTimeZone(String timeZone)
Parameters:
string -

setEffectivePeriod

public void setEffectivePeriod(String effectivePeriod)
Parameters:
string -

getDelegateTimeSpec

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


toString

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

Overrides:
toString in class Object

Core API 7.7