public class Link extends 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
Modifier and Type | Method and Description |
---|---|
boolean |
canDelete() |
void |
delete()
Deletes the link.
|
BaseAsset |
getAsset() |
String |
getName() |
String |
getURL() |
boolean |
isOnMenu() |
void |
setAsset(BaseAsset value) |
void |
setName(String value) |
void |
setOnMenu(boolean value) |
void |
setURL(String value) |
equals, get, getChangeComment, getChangeDate, getChangedBy, getCreateComment, getCreateDate, getCreatedBy, getID, getInstance, hashCode, save, save, toString
public BaseAsset getAsset()
public void setAsset(BaseAsset value)
value
- Asset this link is related to.public boolean isOnMenu()
public void setOnMenu(boolean value)
value
- True if this link is visible on the asset's detail page
menu.public String getURL()
public void setURL(String value)
value
- URL this link points to.public String getName()
public void setName(String value)
value
- Name of this link.public boolean canDelete()
public void delete() throws UnsupportedOperationException
UnsupportedOperationException
- if the item is an invalid state for
the Operation.Copyright © 2013 Version One, Inc.. All rights reserved.