|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.versionone.om.Entity
com.versionone.om.BaseAsset
public abstract class BaseAsset
Represents the base type of members, projects, teams, etc in the VersionOne system.
| Field Summary | |
|---|---|
protected static int |
STATE_ACTIVE
|
protected static int |
STATE_CLOSED
|
| Fields inherited from class com.versionone.om.Entity |
|---|
ASSET_STATE_VALUE, ASSET_VALUE, CHANGE_DATE_UTC, CONTENT_TYPE_VALUE, CONTENT_VALUE, CREATE_DATE_UTC, DELETE_OPERATION, DESCRIPTION_VALUE, FILENAME_VALUE, NAME_VALUE |
| Method Summary | |
|---|---|
boolean |
canClose()
|
boolean |
canDelete()
|
boolean |
canReactivate()
|
void |
close()
Closes or Inactivates the item |
Attachment |
createAttachment(java.lang.String name,
java.lang.String fileName,
java.io.InputStream stream)
Create an attachment that belongs to this asset. |
Attachment |
createAttachment(java.lang.String name,
java.lang.String fileName,
java.io.InputStream stream,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Create an attachment that belongs to this asset. |
Conversation |
createConversation(Member author,
java.lang.String content)
Creates conversation which mentioned this asset. |
Conversation |
createConversation(Member author,
java.lang.String content,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Creates conversation which mentioned this asset. |
Link |
createLink(java.lang.String name,
java.lang.String url,
boolean onMenu)
Create a link that belongs to this asset. |
Link |
createLink(java.lang.String name,
java.lang.String url,
boolean onMenu,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Create a link that belongs to this asset. |
Note |
createNote(java.lang.String name,
java.lang.String content,
boolean personal)
Create a note that belongs to this asset. |
Note |
createNote(java.lang.String name,
java.lang.String content,
boolean personal,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Create a note that belongs to this asset. |
void |
delete()
Deletes the Item |
java.util.Collection<Attachment> |
getAttachments(AttachmentFilter filter)
|
ICustomDropdownDictionary |
getCustomDropdown()
|
ICustomAttributeDictionary |
getCustomField()
|
java.lang.String |
getDescription()
|
java.util.Collection<Link> |
getLinks(LinkFilter filter)
|
java.lang.String |
getName()
|
java.util.Collection<Note> |
getNotes(NoteFilter filter)
|
java.util.Collection<Conversation> |
getReferencedInExpressions()
|
java.lang.String |
getURL()
|
boolean |
isActive()
|
boolean |
isClosed()
|
void |
reactivate()
Reactivates the item. |
void |
setDescription(java.lang.String value)
|
void |
setName(java.lang.String name)
|
| Methods inherited from class com.versionone.om.Entity |
|---|
equals, get, getChangeComment, getChangeDate, getChangedBy, getCreateComment, getCreateDate, getCreatedBy, getID, getInstance, hashCode, save, save, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final int STATE_CLOSED
protected static final int STATE_ACTIVE
| Method Detail |
|---|
public java.lang.String getURL()
public java.lang.String getName()
public void setName(java.lang.String name)
name - Name of the base asset.public java.lang.String getDescription()
public void setDescription(java.lang.String value)
value - description of the base asset.public java.util.Collection<Conversation> getReferencedInExpressions()
public java.util.Collection<Attachment> getAttachments(AttachmentFilter filter)
filter - filter for getting a collection of attachments (If null,
then all items returned).
public java.util.Collection<Note> getNotes(NoteFilter filter)
filter - filter for getting a collection of notes (If null, then all
items returned).
public java.util.Collection<Link> getLinks(LinkFilter filter)
filter - Limit the link returned. If null, then all items returned.
public boolean isActive()
public boolean isClosed()
public boolean canDelete()
public void delete()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException - if the item is an invalid state for
the Operation.public ICustomAttributeDictionary getCustomField()
public ICustomDropdownDictionary getCustomDropdown()
public Link createLink(java.lang.String name,
java.lang.String url,
boolean onMenu)
name - The name of the link.url - The url of the link.onMenu - True if the link is visible on this asset's detail page
menu.
public Link createLink(java.lang.String name,
java.lang.String url,
boolean onMenu,
java.util.Map<java.lang.String,java.lang.Object> attributes)
name - The name of the link.url - The url of the link.onMenu - True if the link is visible on this asset's detail page
menu.attributes - additional attributes for the Link.
public Note createNote(java.lang.String name,
java.lang.String content,
boolean personal)
name - The name of the note.content - The content of the note.personal - True if the note is only visible to the currently logged
in user.
public Note createNote(java.lang.String name,
java.lang.String content,
boolean personal,
java.util.Map<java.lang.String,java.lang.Object> attributes)
name - The name of the note.content - The content of the note.personal - True if the note is only visible to the currently logged
in user.attributes - additional attributes for the Note.
public Attachment createAttachment(java.lang.String name,
java.lang.String fileName,
java.io.InputStream stream)
throws AttachmentLengthExceededException,
ApplicationUnavailableException
name - The name of the attachment.fileName - The name of the original attachment file.stream - The read-enabled stream that contains the attachment.
content to upload.
Attachment object with corresponding parameters.
AttachmentLengthExceededException - if attachment is too long.
ApplicationUnavailableException - if any problem appears during
connection to the server.
public Attachment createAttachment(java.lang.String name,
java.lang.String fileName,
java.io.InputStream stream,
java.util.Map<java.lang.String,java.lang.Object> attributes)
throws AttachmentLengthExceededException,
ApplicationUnavailableException
name - The name of the attachment.fileName - The name of the original attachment file.stream - The read-enabled stream that contains the attachment.
content to upload.attributes - additional attributes for the Attachment.
Attachment object with corresponding parameters.
AttachmentLengthExceededException - if attachment is too long.
ApplicationUnavailableException - if any problem appears during
connection to the server.
public Conversation createConversation(Member author,
java.lang.String content)
author - Author of conversation.content - Content of conversation.
public Conversation createConversation(Member author,
java.lang.String content,
java.util.Map<java.lang.String,java.lang.Object> attributes)
author - Author of conversation.content - Content of conversation.attributes - additional attributes for the Conversation.
public boolean canClose()
public void close()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException - if the item is an invalid state for
the Operation, e.g. it is already closed or inactive.public boolean canReactivate()
public void reactivate()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException - if the item is an invalid state for
the Operation, e.g. it is already open or active.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||