com.tivoli.pd.jadmin
Class PDTodAccessInfo

java.lang.Object
  extended by com.tivoli.pd.jadmin.PDTodAccessInfo
All Implemented Interfaces:
java.lang.Cloneable

public class PDTodAccessInfo
extends java.lang.Object
implements java.lang.Cloneable

Security Access Manager Time-of-Day (TOD) Access Information class.

The TOD Access information class represents information needed to specify access to a given resource based on time-of-day constraints.

Modes: Local,Remote


Constructor Summary
PDTodAccessInfo(long days, long startTime, long endTime, int timezone, java.util.Locale locale, PDMessages messages)
          Constructs a PDTodAccessInfo object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 long getDays()
          Returns a bitmap of the days for the time-of-day policy as specified by the PDPOLICY_TOD_* constants defined in the PDPolicy class.
 long getEndTime()
          Returns the minutes after midnight for the end of the access period.
 long getStartTime()
          Returns the minutes after midnight for the start of the access period.
 int getTimezone()
          Returns the timezone as specified by the PDPOLICY_TIME_* constants defined in the PDPolicy class.
 java.lang.String toString()
          Returns a String representation of this object.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PDTodAccessInfo

public PDTodAccessInfo(long days,
                       long startTime,
                       long endTime,
                       int timezone,
                       java.util.Locale locale,
                       PDMessages messages)
                throws PDException
Constructs a PDTodAccessInfo object.

Parameters:
days - a bitmap of the days for the time-of-day policy as specified by the PDPOLICY_TOD_* constants defined in the PDPolicy class.
startTime - the minutes after midnight for the start of the access period. This must be a value between 0 and 1439 (the number of minutes, less 1, that are in 24 hours), inclusive.
endTime - the minutes after midnight for the end of the access period. This must be a value between 1 and 1439 (the number of minutes, less one, that are in 24 hours), inclusive.
timezone - the timezone: UTC or local, as specified by the PDPOLICY_TIME_* constants defined in the PDPolicy class.
locale - the locale into which any generated error or warning messages are translated. May not be null.
messages - in/out parameter; empty PDMessages on input; may contain zero or more informational or warning messages on output.
Throws:
PDException - if an error occurs. This exception may contain error and message codes defined in the product Error Message Reference document.
Method Detail

getDays

public long getDays()
Returns a bitmap of the days for the time-of-day policy as specified by the PDPOLICY_TOD_* constants defined in the PDPolicy class.


getStartTime

public long getStartTime()
Returns the minutes after midnight for the start of the access period.


getEndTime

public long getEndTime()
Returns the minutes after midnight for the end of the access period.


getTimezone

public int getTimezone()
Returns the timezone as specified by the PDPOLICY_TIME_* constants defined in the PDPolicy class.


toString

public java.lang.String toString()
Returns a String representation of this object.

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object