edu.vt.middleware.ed
Interface DataRelation<T extends DirectoryObject,V extends DirectoryObject>

Type Parameters:
T - The owning type.
V - The dependent type.
All Superinterfaces:
DataObject
All Known Subinterfaces:
GroupRelation<V>
All Known Implementing Classes:
AbstractDataRelation, AbstractGroupRelation, EntitlementPersonRelation, EntitlementServiceRelation, GroupGroupRelation, GroupPersonRelation, GroupServiceRelation, PersonPersonRelation, ServicePersonRelation

public interface DataRelation<T extends DirectoryObject,V extends DirectoryObject>
extends DataObject

Generic interface describing a relational table that is mapped as an entity because of additional data such as audit and expiration information.

Version:
$Revision: 7971 $
Author:
Marvin S. Addison

Method Summary
 Calendar getExpirationDate()
          Gets the expiration date on the relationship.
 V getRelation()
          Gets the relation object.
 T getRelationship()
          Gets the relationship object.
 RoleType getRoleType()
          Gets the role on the relationship.
 void setExpirationDate(Calendar expires)
          Sets the expiration date on the relationship.
 void setRelation(V o)
          Sets the relation object.
 void setRelationship(T o)
          Sets the relationship object.
 void setRoleType(RoleType role)
          Sets the role on the relationship.
 
Methods inherited from interface edu.vt.middleware.ed.DataObject
getCreatedBy, getCreationDate, getUid, setCreatedBy, setCreationDate, setUid
 

Method Detail

getRelationship

T getRelationship()
Gets the relationship object.

Returns:
Relationship.

setRelationship

void setRelationship(T o)
Sets the relationship object.

Parameters:
o - Relationship.

getRelation

V getRelation()
Gets the relation object.

Returns:
Relation.

setRelation

void setRelation(V o)
Sets the relation object.

Parameters:
o - Relation.

setRoleType

void setRoleType(RoleType role)
Sets the role on the relationship.

Parameters:
role - Relationship role.

getRoleType

RoleType getRoleType()
Gets the role on the relationship.

Returns:
Relationship role.

setExpirationDate

void setExpirationDate(Calendar expires)
Sets the expiration date on the relationship.

Parameters:
expires - Relationship expiration date.

getExpirationDate

Calendar getExpirationDate()
Gets the expiration date on the relationship.

Returns:
Relationship expiration date.


Copyright © 2008 Virginia Tech. All Rights Reserved.