com.atlassian.crowd.openid.server.manager.property
Class TrustRelationShipMode

java.lang.Object
  extended by com.atlassian.crowd.openid.server.manager.property.TrustRelationShipMode
All Implemented Interfaces:
Serializable

public class TrustRelationShipMode
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static TrustRelationShipMode BLACKLIST
           
static long BLACKLIST_CODE
          The persistance code for an LDAP directory implementation.
static TrustRelationShipMode NONE
           
static long NONE_CODE
          The persistance code for an unknown directory implementation.
static TrustRelationShipMode WHITELIST
           
static long WHITELIST_CODE
          The persistance code for an internal directory implementation.
 
Constructor Summary
TrustRelationShipMode()
          Default constructor.
TrustRelationShipMode(long code)
          Creates a directory type with a known code.
 
Method Summary
 boolean equals(Object o)
           
 long getCode()
          Gets the current code for the directory type.
 int hashCode()
           
 void setCode(long code)
          Sets the current code for the directory type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static TrustRelationShipMode NONE

WHITELIST

public static TrustRelationShipMode WHITELIST

BLACKLIST

public static TrustRelationShipMode BLACKLIST

NONE_CODE

public static final long NONE_CODE
The persistance code for an unknown directory implementation.

See Also:
Constant Field Values

WHITELIST_CODE

public static final long WHITELIST_CODE
The persistance code for an internal directory implementation.

See Also:
Constant Field Values

BLACKLIST_CODE

public static final long BLACKLIST_CODE
The persistance code for an LDAP directory implementation.

See Also:
Constant Field Values
Constructor Detail

TrustRelationShipMode

public TrustRelationShipMode()
Default constructor.


TrustRelationShipMode

public TrustRelationShipMode(long code)
Creates a directory type with a known code.

Parameters:
code - The directory code.
Method Detail

getCode

public long getCode()
Gets the current code for the directory type.

Returns:
The code.

setCode

public void setCode(long code)
Sets the current code for the directory type.

Parameters:
code - The code.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012 Atlassian. All Rights Reserved.