com.atlassian.crowd.integration.model
Class DirectoryEntity

java.lang.Object
  extended by com.atlassian.crowd.integration.model.DirectoryEntity
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DirectoryContainer, InternalDirectory, RemotePrincipal

public abstract class DirectoryEntity
extends Object
implements Serializable

Generic directory entity object. All entity attributes are stored as attributes.

See Also:
Serialized Form

Field Summary
protected  boolean active
          If the entity is active or not.
protected  Map attributes
          RemoteAttributes for the entity.
protected  Date conception
          The time entity was created.
protected  String description
          Description of the entity.
protected  long directoryID
          The crowd server internal directory tracking ID.
protected  long ID
          The unique identifier for the entity.
protected  Date lastModified
          The time entity was last modification.
protected  String name
          The unique name of the entity for the directory entity
 
Constructor Summary
DirectoryEntity()
           
 
Method Summary
 boolean equals(Object o)
           
 AttributeValues getAttribute(String key)
           
 Map getAttributes()
          Gets the attributes of the entity.
 Date getConception()
          Gets the conception date of the entity.
 String getDescription()
          Gets the description of the entity.
 long getDirectoryID()
          Sets the internal directory of the entity is mapped too.
 long getID()
          Gets the unique identifier.
 Date getLastModified()
          Gets the last time the entity was modified.
 String getName()
          Gets the name of the entity.
 int hashCode()
           
 boolean isActive()
          Gets if the entity is active or inactive.
 void setActive(boolean active)
          Sets if the entity is active or inactive.
 void setAttribute(String key, AttributeValues values)
           
 void setAttribute(String key, String value)
           
 void setAttributes(Map attributes)
          Sets the attributes of the entity.
 void setConception(Date conception)
          Sets the conception date of the entity.
 void setDescription(String description)
          Sets the description of the entity.
 void setDirectoryID(long directoryID)
          Gets the internal directory of the entity is mapped too.
 void setID(long ID)
          Sets the unique identifier.
 void setLastModified(Date lastModified)
          Sets the last time the entity was modified.
 void setName(String name)
          Sets the name of the entity.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

protected long ID
The unique identifier for the entity.


name

protected String name
The unique name of the entity for the directory entity


directoryID

protected long directoryID
The crowd server internal directory tracking ID.


description

protected String description
Description of the entity.


active

protected boolean active
If the entity is active or not.


conception

protected Date conception
The time entity was created.


attributes

protected Map attributes
RemoteAttributes for the entity.


lastModified

protected Date lastModified
The time entity was last modification.

Constructor Detail

DirectoryEntity

public DirectoryEntity()
Method Detail

getID

public long getID()
Gets the unique identifier.

Returns:
The ID.

setID

public void setID(long ID)
Sets the unique identifier.

Parameters:
ID - The ID.

getName

public String getName()
Gets the name of the entity.

Returns:
The name.

setName

public void setName(String name)
Sets the name of the entity.

Parameters:
name - The name.

getDirectoryID

public long getDirectoryID()
Sets the internal directory of the entity is mapped too.

Returns:
The directory ID.

setDirectoryID

public void setDirectoryID(long directoryID)
Gets the internal directory of the entity is mapped too.

Parameters:
directoryID - The directory ID.

getAttributes

public Map getAttributes()
Gets the attributes of the entity.

Returns:
The attributes.

setAttributes

public void setAttributes(Map attributes)
Sets the attributes of the entity.

Parameters:
attributes - The attributes.

getDescription

public String getDescription()
Gets the description of the entity.

Returns:
The description.

setDescription

public void setDescription(String description)
Sets the description of the entity.

Parameters:
description - The description.

isActive

public boolean isActive()
Gets if the entity is active or inactive.

Returns:
true if and only if the entity is active, otherwise false.

setActive

public void setActive(boolean active)
Sets if the entity is active or inactive.

Parameters:
active - true if and only if the entity is active, otherwise false.

getConception

public Date getConception()
Gets the conception date of the entity.

Returns:
The conception date.

setConception

public void setConception(Date conception)
Sets the conception date of the entity.

Parameters:
conception - The conception date.

getLastModified

public Date getLastModified()
Gets the last time the entity was modified.

Returns:
The last modified date.

setLastModified

public void setLastModified(Date lastModified)
Sets the last time the entity was modified.

Parameters:
lastModified - The last modified date.

getAttribute

public AttributeValues getAttribute(String key)

setAttribute

public void setAttribute(String key,
                         String value)

setAttribute

public void setAttribute(String key,
                         AttributeValues values)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.