Package org.alfresco.repo.links
Class LinkInfoImpl
java.lang.Object
org.alfresco.repo.links.LinkInfoImpl
- All Implemented Interfaces:
Serializable,PermissionCheckValue,LinkInfo
An implementation of
LinkInfo- Since:
- 4.0
- Author:
- Nick Burch (based on existing webscript controllers in the REST API)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new, empty LinkInfoLinkInfoImpl(NodeRef nodeRef, NodeRef containerNodeRef, String systemName) Createa a LinkInfo object from an existing node -
Method Summary
Modifier and TypeMethodDescriptionGet the underlying node value that needs to be permission checked.getTags()getTitle()getURL()booleanIs this a internal link?voidsetCreatedAt(Date createdAt) voidsetCreator(String creator) voidsetDescription(String description) Sets the Description of the linkvoidsetInternal(boolean internal) Sets if this is an internal link or notvoidsetModifiedAt(Date modifiedAt) voidvoidSets the Title of the linkvoidSets the URL of the link
-
Constructor Details
-
LinkInfoImpl
public LinkInfoImpl()Creates a new, empty LinkInfo -
LinkInfoImpl
Createa a LinkInfo object from an existing node
-
-
Method Details
-
getContainerNodeRef
- Specified by:
getContainerNodeRefin interfaceLinkInfo- Returns:
- the NodeRef of the site container this belongs to
-
getNodeRef
Description copied from interface:PermissionCheckValueGet the underlying node value that needs to be permission checked.- Specified by:
getNodeRefin interfaceLinkInfo- Specified by:
getNodeRefin interfacePermissionCheckValue- Returns:
- the NodeRef of the underlying link
-
getSystemName
- Specified by:
getSystemNamein interfaceLinkInfo- Returns:
- the System generated name for the link
-
getTitle
-
getDescription
- Specified by:
getDescriptionin interfaceLinkInfo- Returns:
- the Description of the link
-
getURL
-
getCreator
- Specified by:
getCreatorin interfaceLinkInfo- Returns:
- the creator of the link
-
getCreatedAt
- Specified by:
getCreatedAtin interfaceLinkInfo- Returns:
- the creation date and time
-
getModifiedAt
- Specified by:
getModifiedAtin interfaceLinkInfo- Returns:
- the modification date and time
-
isInternal
public boolean isInternal()Description copied from interface:LinkInfoIs this a internal link?- Specified by:
isInternalin interfaceLinkInfo
-
getTags
-
setTitle
Description copied from interface:LinkInfoSets the Title of the link -
setDescription
Description copied from interface:LinkInfoSets the Description of the link- Specified by:
setDescriptionin interfaceLinkInfo
-
setURL
Description copied from interface:LinkInfoSets the URL of the link -
setInternal
public void setInternal(boolean internal) Description copied from interface:LinkInfoSets if this is an internal link or not- Specified by:
setInternalin interfaceLinkInfo
-
setCreator
-
setCreatedAt
-
setModifiedAt
-
setTags
-