CodeBeamer 5.4.0.1-RC API

com.intland.codebeamer.persistence.dto
Class ArtifactAdditionalInfoDto

java.lang.Object
  extended by com.intland.codebeamer.persistence.dto.base.IdentifiableDto
      extended by com.intland.codebeamer.persistence.dto.ArtifactAdditionalInfoDto
All Implemented Interfaces:
BaseDto, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class ArtifactAdditionalInfoDto
extends IdentifiableDto

Wraps the additional info attached to an artifact.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
IdentifiableDto.IdComparator
 
Constructor Summary
ArtifactAdditionalInfoDto()
           
 
Method Summary
 ArtifactApprovalWorkflowDto getApprovalWorkflow()
           
 java.lang.String getCategory()
           
 java.lang.String getComment()
           
 java.util.Date getContentLastModifiedAt()
           
 UserDto getContentLastModifiedBy()
           
 java.lang.String getDefaultViewableRevision()
          Returns the published revision if there is a revision pending approvals, or the HEAD revision if there isn't.
 java.lang.Integer getKeptHistoryEntries()
          Get the number of artifact history entries to keep
 java.lang.String getKeywords()
           
 UserDto getLockedBy()
           
 java.lang.String getMimeType()
           
 java.lang.Long getObjectLength()
           
 java.lang.String getPublishedRevision()
          Returns the (last) published revision, which is not null only if an artifact is in an approval process.
 java.lang.String getRevision()
          Returns the current latest revision which is different from the published revision if an approval workflow is in process for this artifact.
 ArtifactStatusDto getStatus()
           
 UserDto getTempOwner()
           
 boolean hasRevisionPendingApprovals()
          Returns true if this has a revision pending approvals.
 boolean isApprovalWorkflowApplied()
          Returns true if this has an approval process associated with.
 java.lang.Boolean isContentFrozen()
          Check whether the artifact content is frozen or editable
 boolean isLocked()
           
 void setApprovalWorkflow(ArtifactApprovalWorkflowDto approvalWorkflow)
           
 void setCategory(java.lang.String category)
           
 void setComment(java.lang.String comment)
           
 void setContentFrozen(java.lang.Boolean frozen)
          Set whether the artifact content is frozen or editable
 void setContentLastModifiedAt(java.util.Date lastContentModifiedAt)
           
 void setContentLastModifiedBy(UserDto lastContentModifiedByUser)
           
 void setKeptHistoryEntries(java.lang.Integer keptHistoryEntries)
          Set the number of artifact history entries to keep
 void setKeywords(java.lang.String keywords)
           
 void setLockedBy(UserDto lockedByUser)
           
 void setMimeType(java.lang.String mimeType)
           
 void setObjectLength(java.lang.Long objectLength)
           
 void setPublishedRevision(java.lang.String publishedRevision)
           
 void setRevision(java.lang.String revision)
           
 void setStatus(ArtifactStatusDto status)
           
 void setTempOwner(UserDto tempOwner)
           
 java.lang.String toString()
           
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
clone, compare, compareInteger, compareTo, equals, equals, getId, hashCode, hashCode, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArtifactAdditionalInfoDto

public ArtifactAdditionalInfoDto()
Method Detail

getMimeType

public java.lang.String getMimeType()

setMimeType

public void setMimeType(java.lang.String mimeType)

getKeywords

public java.lang.String getKeywords()

setKeywords

public void setKeywords(java.lang.String keywords)

getCategory

public java.lang.String getCategory()

setCategory

public void setCategory(java.lang.String category)

getComment

public java.lang.String getComment()

setComment

public void setComment(java.lang.String comment)

getObjectLength

public java.lang.Long getObjectLength()

setObjectLength

public void setObjectLength(java.lang.Long objectLength)

getLockedBy

public UserDto getLockedBy()

setLockedBy

public void setLockedBy(UserDto lockedByUser)

isLocked

public boolean isLocked()

isContentFrozen

public java.lang.Boolean isContentFrozen()
Check whether the artifact content is frozen or editable

Returns:
true if the artifact content is frozen, otherwise false

setContentFrozen

public void setContentFrozen(java.lang.Boolean frozen)
Set whether the artifact content is frozen or editable

Parameters:
frozen - is true to freeze document content, otherwise false

getContentLastModifiedAt

public java.util.Date getContentLastModifiedAt()

setContentLastModifiedAt

public void setContentLastModifiedAt(java.util.Date lastContentModifiedAt)

getContentLastModifiedBy

public UserDto getContentLastModifiedBy()

setContentLastModifiedBy

public void setContentLastModifiedBy(UserDto lastContentModifiedByUser)

getApprovalWorkflow

public ArtifactApprovalWorkflowDto getApprovalWorkflow()

setApprovalWorkflow

public void setApprovalWorkflow(ArtifactApprovalWorkflowDto approvalWorkflow)

getRevision

public java.lang.String getRevision()
Returns the current latest revision which is different from the published revision if an approval workflow is in process for this artifact.


setRevision

public void setRevision(java.lang.String revision)

getPublishedRevision

public java.lang.String getPublishedRevision()
Returns the (last) published revision, which is not null only if an artifact is in an approval process. See getDefaultViewableRevision() method.


setPublishedRevision

public void setPublishedRevision(java.lang.String publishedRevision)

isApprovalWorkflowApplied

public boolean isApprovalWorkflowApplied()
Returns true if this has an approval process associated with.


hasRevisionPendingApprovals

public boolean hasRevisionPendingApprovals()
Returns true if this has a revision pending approvals.


getDefaultViewableRevision

public java.lang.String getDefaultViewableRevision()
Returns the published revision if there is a revision pending approvals, or the HEAD revision if there isn't.


getKeptHistoryEntries

public java.lang.Integer getKeptHistoryEntries()
Get the number of artifact history entries to keep

Returns:
the number of artifact history entries to keep

setKeptHistoryEntries

public void setKeptHistoryEntries(java.lang.Integer keptHistoryEntries)
Set the number of artifact history entries to keep

Parameters:
keptHistoryEntries - is the number of artifact history entries to keep

getStatus

public ArtifactStatusDto getStatus()

setStatus

public void setStatus(ArtifactStatusDto status)

getTempOwner

public UserDto getTempOwner()

setTempOwner

public void setTempOwner(UserDto tempOwner)

toString

public java.lang.String toString()
Overrides:
toString in class IdentifiableDto

CodeBeamer 5.4.0.1-RC API

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