CodeBeamer 5.4.0.1-RC API

com.intland.codebeamer.persistence.dto
Class GroupDto

java.lang.Object
  extended by com.intland.codebeamer.persistence.dto.base.IdentifiableDto
      extended by com.intland.codebeamer.persistence.dto.base.NamedDto
          extended by com.intland.codebeamer.persistence.dto.GroupDto
All Implemented Interfaces:
BaseDto, ReferenceHolderDto, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
Direct Known Subclasses:
ReadOnlyGroupDto

public class GroupDto
extends NamedDto
implements ReferenceHolderDto

The name GroupDto is misleading. A better name would be DomainDto, because it represents an access control domain for a codeBeamer entity, like a project, tracker, artifact, etc.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.base.NamedDto
NamedDto.NameComparator
 
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
IdentifiableDto.IdComparator
 
Field Summary
static GroupDto ACCOUNT_GROUP
           
static java.lang.Integer UNSET_ID
           
 
Fields inherited from interface com.intland.codebeamer.persistence.dto.base.ReferenceHolderDto
Accessor
 
Constructor Summary
GroupDto()
           
GroupDto(GroupDto other)
           
GroupDto(int groupId)
           
GroupDto(java.lang.Integer groupId)
           
GroupDto(java.lang.Integer groupId, java.lang.Integer typeId, java.lang.Integer objectId, java.lang.Integer projectId)
           
GroupDto(java.lang.Integer groupId, java.lang.Integer typeId, java.lang.Integer objectId, java.lang.Integer projectId, java.lang.Integer parentId)
           
GroupDto(java.lang.Integer groupId, int typeId, java.lang.Integer objectId)
           
GroupDto(int groupId, java.lang.Integer typeId, int objectId, java.lang.Integer projectId)
           
GroupDto(int groupId, int typeId, int objectId)
           
 
Method Summary
 boolean equals(java.lang.Object grp)
           
 java.lang.Integer getObjectId()
          Get the object id of the protected entity
 java.lang.Integer getParentId()
          Get the id of the parent domain
 java.lang.Integer getProjectId()
          Get the id of the project where the protected entity belongs to
 ReferenceDto getReference()
          Get the reference to the protected entity
 java.lang.Integer getTypeId()
          Get the type of the protected entity
 int hashCode()
           
 void setObjectId(java.lang.Integer objectId)
          Get the object id of the protected entity
 void setParentId(java.lang.Integer parentId)
          Set the id of the parent domain
 void setProjectId(java.lang.Integer projectId)
          Set the id of the project where the protected entity belongs to
 void setReference(ReferenceDto reference)
          Set the reference to the protected entity
 void setTypeId(java.lang.Integer typeId)
          Set the type of the protected entity
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.NamedDto
compareNames, compareString, compareStringIgnoreCase, compareTo, createLookupMap, getName, setName, toString
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
clone, compare, compareInteger, equals, getId, hashCode, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNSET_ID

public static final java.lang.Integer UNSET_ID

ACCOUNT_GROUP

public static final GroupDto ACCOUNT_GROUP
Constructor Detail

GroupDto

public GroupDto()

GroupDto

public GroupDto(int groupId)

GroupDto

public GroupDto(java.lang.Integer groupId)

GroupDto

public GroupDto(int groupId,
                int typeId,
                int objectId)

GroupDto

public GroupDto(java.lang.Integer groupId,
                int typeId,
                java.lang.Integer objectId)

GroupDto

public GroupDto(int groupId,
                java.lang.Integer typeId,
                int objectId,
                java.lang.Integer projectId)

GroupDto

public GroupDto(java.lang.Integer groupId,
                java.lang.Integer typeId,
                java.lang.Integer objectId,
                java.lang.Integer projectId)

GroupDto

public GroupDto(java.lang.Integer groupId,
                java.lang.Integer typeId,
                java.lang.Integer objectId,
                java.lang.Integer projectId,
                java.lang.Integer parentId)

GroupDto

public GroupDto(GroupDto other)
Method Detail

getReference

public ReferenceDto getReference()
Get the reference to the protected entity

Specified by:
getReference in interface ReferenceHolderDto
Returns:
the reference to the protected entity, or null if not set

setReference

public void setReference(ReferenceDto reference)
Set the reference to the protected entity

Parameters:
reference - identifies the protected entity

getParentId

public java.lang.Integer getParentId()
Get the id of the parent domain

Returns:
the id of the parent domain, or null if no parent exists

setParentId

public void setParentId(java.lang.Integer parentId)
Set the id of the parent domain

Parameters:
parentId - is the id of the parent domain, or null if no parent exists

getTypeId

public java.lang.Integer getTypeId()
Get the type of the protected entity

Returns:
the type of the protected entity, or null if not set

setTypeId

public void setTypeId(java.lang.Integer typeId)
Set the type of the protected entity

Parameters:
typeId - of the protected entity

getObjectId

public java.lang.Integer getObjectId()
Get the object id of the protected entity

Returns:
the object id of the protected entity, or null if not set

setObjectId

public void setObjectId(java.lang.Integer objectId)
Get the object id of the protected entity

Parameters:
objectId - of the protected entity, or null if not set

getProjectId

public java.lang.Integer getProjectId()
Get the id of the project where the protected entity belongs to

Returns:
the id of the project the protected entity belongs to, or null if not set or entity is project independent

setProjectId

public void setProjectId(java.lang.Integer projectId)
Set the id of the project where the protected entity belongs to

Parameters:
projectId - of the project the protected entity belongs to, or null if entity is project independent

equals

public boolean equals(java.lang.Object grp)
Overrides:
equals in class NamedDto

hashCode

public int hashCode()
Overrides:
hashCode in class NamedDto

CodeBeamer 5.4.0.1-RC API

Copyright © 2006-2009 Intland Software. All rights reserved.