Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E27155-01 ESAPI


oracle.security.jps.service.policystore.info
Class OpssDateTimeObject

java.lang.Object
  extended by oracle.security.jps.service.policystore.info.DataType
      extended by oracle.security.jps.service.policystore.info.OpssDateTimeObject

All Implemented Interfaces:
ExpressionComponent
Direct Known Subclasses:
OpssDate, OpssDateTime, OpssTime

public abstract class OpssDateTimeObject
extends DataType

This object basically provides timezone management for three OES supported data types: date, time and dateTime. It supports ISO 8601 standard. Time zone information can be provided either by specifying a +ve/ -ve offet from UTC or by using time zone name. Time zone names are either: IDs supported by java.util.TimeZone object OR OES specific keywords: PEP_TIMEZONE and PDP_TIMEZONE OES specific timezones get a value only at runtime when authorization policy is evaluated using various attribute values provided.


Nested Class Summary

 

Nested classes/interfaces inherited from class oracle.security.jps.service.policystore.info.DataType
DataType.TYPE

 

Nested classes/interfaces inherited from interface oracle.security.jps.service.policystore.info.ExpressionComponent
ExpressionComponent.Type

 

Field Summary
static int OES_SPECIFIC_TZ_OFFSET
           
static java.lang.String PDP_TIMEZONE
          A constant that specifies that when evaluating this date/ time/ dateTime object, local timezone at the PDP must be used.
static java.lang.String PEP_TIMEZONE
           

 

Constructor Summary
OpssDateTimeObject()
           

 

Method Summary
 java.lang.String getTimeZoneName()
          Returns name used to create this time zone.
 java.lang.String[] getTimeZonesForOffset()
          Returns time zone names for the offset of this object.
 java.lang.String getTimeZoneString()
           
 int getUTCOffset()
          Returns offset of this object.
 int hashCode()
           
 boolean isTimeZonePresent()
          Returns true if timezone is legal and false if not "GMT"&"UTC", or offset is not 0
 boolean isUTC()
          Returns true if this time object uses utc time zone.
static int nthOccurrence(java.lang.String str, char c, int n)
           

 

Methods inherited from class oracle.security.jps.service.policystore.info.DataType
equals, getDataTypeObjectFromString, getDataTypeObjectFromString, getType, getTypeClassFromClassName, getTypeFromClass, getValue, toString

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface oracle.security.jps.service.policystore.info.ExpressionComponent
getComponentType

 

Field Detail

PDP_TIMEZONE

public static final java.lang.String PDP_TIMEZONE
A constant that specifies that when evaluating this date/ time/ dateTime object, local timezone at the PDP must be used.
See Also:
Constant Field Values

PEP_TIMEZONE

public static final java.lang.String PEP_TIMEZONE
See Also:
Constant Field Values

OES_SPECIFIC_TZ_OFFSET

public static final int OES_SPECIFIC_TZ_OFFSET
See Also:
Constant Field Values

Constructor Detail

OpssDateTimeObject

public OpssDateTimeObject()

Method Detail

getUTCOffset

public final int getUTCOffset()
Returns offset of this object. If timezone object was defined with offset, it will return that offset. If timezone object was defined with a Java timezone id, it will return the current offset of that id. If the timezone object was defined with an OES specific keyword (PDP_TIMEZONE or PEP_TIMEZONE), this method will return -1.

getTimeZonesForOffset

public final java.lang.String[] getTimeZonesForOffset()
Returns time zone names for the offset of this object. If timezone is specified with an offset from UTC, this method returns Java TimeZone IDs of all timezones that CURRENTLY have this offset. Note that the resuls of this query will be different at different times of the years dependong on daylight savings. If a timezone is specified using Java timezone ID, this method returns only that ID, no other IDs are looked up. If a timezone is OES specific, such as PDP or PEP timezone, this method returns null, since offset is unknown.

getTimeZoneName

public final java.lang.String getTimeZoneName()
Returns name used to create this time zone. Note that this method will return Java timezone IDs as well as OES specific timezones such as PDP or PEP timezones. If the date time object was created with an offset and not with a time zone id, then this method will return null.

isUTC

public final boolean isUTC()
Returns true if this time object uses utc time zone.

isTimeZonePresent

public final boolean isTimeZonePresent()
Returns true if timezone is legal and false if not "GMT"&"UTC", or offset is not 0

getTimeZoneString

public java.lang.String getTimeZoneString()
Returns:
If a time offset is provided, this method will return a string of format <+/->hh:mm Else, if a time zone is specified using time zone ID, will return name of the time zone.

nthOccurrence

public static int nthOccurrence(java.lang.String str,
                                char c,
                                int n)

hashCode

public int hashCode()
Specified by:
hashCode in class DataType

Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E27155-01 ESAPI


Copyright © 2011,2012, Oracle and/or its affiliates. All rights reserved.