Package org.alfresco.repo.links
Class LinkInfoImpl
- java.lang.Object
-
- org.alfresco.repo.links.LinkInfoImpl
-
- All Implemented Interfaces:
Serializable,PermissionCheckValue,LinkInfo
public class LinkInfoImpl extends Object implements LinkInfo
An implementation ofLinkInfo- Since:
- 4.0
- Author:
- Nick Burch (based on existing webscript controllers in the REST API)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LinkInfoImpl()Creates a new, empty LinkInfoLinkInfoImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.repository.NodeRef containerNodeRef, String systemName)Createa a LinkInfo object from an existing node
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.alfresco.service.cmr.repository.NodeRefgetContainerNodeRef()DategetCreatedAt()StringgetCreator()StringgetDescription()DategetModifiedAt()org.alfresco.service.cmr.repository.NodeRefgetNodeRef()Get the underlying node value that needs to be permission checked.StringgetSystemName()List<String>getTags()StringgetTitle()StringgetURL()booleanisInternal()Is 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)voidsetTags(List<String> tags)voidsetTitle(String title)Sets the Title of the linkvoidsetURL(String url)Sets the URL of the link
-
-
-
Constructor Detail
-
LinkInfoImpl
public LinkInfoImpl()
Creates a new, empty LinkInfo
-
LinkInfoImpl
public LinkInfoImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.repository.NodeRef containerNodeRef, String systemName)Createa a LinkInfo object from an existing node
-
-
Method Detail
-
getContainerNodeRef
public org.alfresco.service.cmr.repository.NodeRef getContainerNodeRef()
- Specified by:
getContainerNodeRefin interfaceLinkInfo- Returns:
- the NodeRef of the site container this belongs to
-
getNodeRef
public org.alfresco.service.cmr.repository.NodeRef 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
public String getSystemName()
- Specified by:
getSystemNamein interfaceLinkInfo- Returns:
- the System generated name for the link
-
getTitle
public String getTitle()
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceLinkInfo- Returns:
- the Description of the link
-
getURL
public String getURL()
-
getCreator
public String getCreator()
- Specified by:
getCreatorin interfaceLinkInfo- Returns:
- the creator of the link
-
getCreatedAt
public Date getCreatedAt()
- Specified by:
getCreatedAtin interfaceLinkInfo- Returns:
- the creation date and time
-
getModifiedAt
public Date 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
-
setTitle
public void setTitle(String title)
Description copied from interface:LinkInfoSets the Title of the link
-
setDescription
public void setDescription(String description)
Description copied from interface:LinkInfoSets the Description of the link- Specified by:
setDescriptionin interfaceLinkInfo
-
setURL
public void setURL(String url)
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
public void setCreator(String creator)
-
setCreatedAt
public void setCreatedAt(Date createdAt)
-
setModifiedAt
public void setModifiedAt(Date modifiedAt)
-
-