Package org.alfresco.repo.links
Class LinkInfoImpl
- java.lang.Object
-
- org.alfresco.repo.links.LinkInfoImpl
-
- All Implemented Interfaces:
java.io.Serializable,PermissionCheckValue,LinkInfo
public class LinkInfoImpl extends java.lang.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, java.lang.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()java.util.DategetCreatedAt()java.lang.StringgetCreator()java.lang.StringgetDescription()java.util.DategetModifiedAt()org.alfresco.service.cmr.repository.NodeRefgetNodeRef()Get the underlying node value that needs to be permission checked.java.lang.StringgetSystemName()java.util.List<java.lang.String>getTags()java.lang.StringgetTitle()java.lang.StringgetURL()booleanisInternal()Is this a internal link?voidsetCreatedAt(java.util.Date createdAt)voidsetCreator(java.lang.String creator)voidsetDescription(java.lang.String description)Sets the Description of the linkvoidsetInternal(boolean internal)Sets if this is an internal link or notvoidsetModifiedAt(java.util.Date modifiedAt)voidsetTags(java.util.List<java.lang.String> tags)voidsetTitle(java.lang.String title)Sets the Title of the linkvoidsetURL(java.lang.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, java.lang.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 java.lang.String getSystemName()
- Specified by:
getSystemNamein interfaceLinkInfo- Returns:
- the System generated name for the link
-
getTitle
public java.lang.String getTitle()
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceLinkInfo- Returns:
- the Description of the link
-
getURL
public java.lang.String getURL()
-
getCreator
public java.lang.String getCreator()
- Specified by:
getCreatorin interfaceLinkInfo- Returns:
- the creator of the link
-
getCreatedAt
public java.util.Date getCreatedAt()
- Specified by:
getCreatedAtin interfaceLinkInfo- Returns:
- the creation date and time
-
getModifiedAt
public java.util.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
-
getTags
public java.util.List<java.lang.String> getTags()
-
setTitle
public void setTitle(java.lang.String title)
Description copied from interface:LinkInfoSets the Title of the link
-
setDescription
public void setDescription(java.lang.String description)
Description copied from interface:LinkInfoSets the Description of the link- Specified by:
setDescriptionin interfaceLinkInfo
-
setURL
public void setURL(java.lang.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(java.lang.String creator)
-
setCreatedAt
public void setCreatedAt(java.util.Date createdAt)
-
setModifiedAt
public void setModifiedAt(java.util.Date modifiedAt)
-
setTags
public void setTags(java.util.List<java.lang.String> tags)
-
-