public interface ProjectLink extends Adaptable
ProjectManager
for details.Modifier and Type | Method and Description |
---|---|
Resource |
getCoverImage()
Returns the resource representing the project's cover image.
|
java.lang.String |
getDescription()
Returns the description of the link.
|
Project |
getProject()
Returns the project that this link is associated with.
|
java.lang.String |
getResolvedTitle()
Returns the title of the target of this link if no title was set on this link.
|
java.lang.String |
getTarget()
Returns the target path or url of this link.
|
java.lang.String |
getTitle()
Returns the title of the link.
|
void |
setCoverImage(java.lang.String mimeType,
java.io.InputStream stream)
Associate a new image to this link's cover.
|
void |
setDescription(java.lang.String description)
Set a new description for the link.
|
void |
setTarget(java.lang.String target)
Set the target path or url for this link.
|
void |
setTitle(java.lang.String title)
Set a new title for the link.
|
Project getProject()
java.lang.String getTarget()
void setTarget(java.lang.String target)
target
- the target path or url for this linkjava.lang.String getTitle()
void setTitle(java.lang.String title)
title
- the new name for the linkProjectException
- if the operation failsjava.lang.String getResolvedTitle()
setTitle(java.lang.String)
then that title will be returned,
otherwise the title of the target resource will be returned.
E.g. If the link points to a cq:Page the page's title will be returned,
similarly if the link points to an Asset the asset's title will be returned.java.lang.String getDescription()
void setDescription(java.lang.String description)
description
- the new description for the linkProjectException
- if the operation failsvoid setCoverImage(java.lang.String mimeType, java.io.InputStream stream)
mimeType
- the mime type of the provided input streamstream
- a stream of image data.ProjectException
- if updating the cover image fails.Resource getCoverImage()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"