com.starteam
Class User.LogOnPolicy

java.lang.Object
  extended by com.starteam.User.LogOnPolicy
Enclosing class:
User

public static final class User.LogOnPolicy
extends java.lang.Object

The current logon access policy of the User Account.


Field Summary
static User.LogOnPolicy[] ALL
          All legal access policies
static User.LogOnPolicy ALWAYS
          Always Allowed to Access
static User.LogOnPolicy CUSTOM
          Custom Access Policy
static User.LogOnPolicy STANDARD
          Standard Access Policy
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this object with another logon policy for equality
static User.LogOnPolicy fromID(int id)
          Gets the Policy value corresponding to the given ID.
 int getID()
          The ID of the corresponding Policy
 java.lang.String getName()
          A friendly name for this logon policy
 int hashCode()
          Returns a hashCode for this logon policy
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALWAYS

public static final User.LogOnPolicy ALWAYS
Always Allowed to Access

See Also:
User.getAccessPolicy(), User.setAccessPolicy(com.starteam.User.LogOnPolicy)

STANDARD

public static final User.LogOnPolicy STANDARD
Standard Access Policy

See Also:
User.getAccessPolicy(), User.setAccessPolicy(com.starteam.User.LogOnPolicy)

CUSTOM

public static final User.LogOnPolicy CUSTOM
Custom Access Policy

See Also:
User.getAccessPolicy(), User.setAccessPolicy(com.starteam.User.LogOnPolicy), User.getAccessStartTime1(com.starteam.User.DayOfWeek), User.getAccessEndTime1(com.starteam.User.DayOfWeek), User.getAccessStartTime2(com.starteam.User.DayOfWeek), User.getAccessEndTime2(com.starteam.User.DayOfWeek), User.setAccessTimes(com.starteam.User.DayOfWeek, int, int, int, int), User.getPolicyTimeZoneShift(), User.setPolicyTimeZoneShift(int)

ALL

public static final User.LogOnPolicy[] ALL
All legal access policies

Method Detail

getName

public java.lang.String getName()
A friendly name for this logon policy

Returns:
a friendly name for this logon policy

getID

public int getID()
The ID of the corresponding Policy

Returns:
The ID of this Policy.

fromID

public static User.LogOnPolicy fromID(int id)
Gets the Policy value corresponding to the given ID.

Parameters:
id - A Policy ID.
Returns:
The corresponding Policy value, or null.

equals

public boolean equals(java.lang.Object o)
Compares this object with another logon policy for equality

Overrides:
equals in class java.lang.Object
Parameters:
o - the Object to compare
Returns:
true if the two are identical

hashCode

public int hashCode()
Returns a hashCode for this logon policy

Overrides:
hashCode in class java.lang.Object
Returns:
a hashCode for this logon policy


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.