com.dotmarketing.portlets.links.model
Class Link

java.lang.Object
  extended by com.dotmarketing.beans.Inode
      extended by com.dotmarketing.beans.WebAsset
          extended by com.dotmarketing.portlets.links.model.Link
All Implemented Interfaces:
UUIDable, Permissionable, Versionable, Categorizable, java.io.Serializable, java.lang.Comparable

public class Link
extends WebAsset
implements java.io.Serializable, java.lang.Comparable

Author:
Hibernate CodeGenerator
See Also:
Serialized Form

Nested Class Summary
static class Link.LinkType
           
 
Field Summary
 
Fields inherited from class com.dotmarketing.beans.Inode
inode, owner
 
Constructor Summary
Link()
          default constructor
 
Method Summary
 java.util.List<PermissionSummary> acceptedPermissions()
          Returns the list of accepted permission of this permissionable (I.E.
 int compareTo(java.lang.Object compObject)
           
 void copy(Link newLink)
           
 java.lang.String getInode()
           
 java.lang.String getInternalLinkIdentifier()
          Returns the internalLinkIdentifier.
 java.lang.String getLinkCode()
           
 java.lang.String getLinkType()
          Returns the type of link.
 java.util.Map<java.lang.String,java.lang.Object> getMap()
          Returns a map representation of the asset
 java.lang.String getParent()
          Returns the parent.
 Permissionable getParentPermissionable()
          Retrieves the parent permissionable in the chain of permissions inheritance
 java.lang.String getProtocal()
          Returns the protocal.
 java.lang.String getTarget()
          Returns the target.
 java.lang.String getURI(Folder folder)
           
 java.lang.String getUrl()
          Returns the url.
 java.lang.String getWorkingURL()
          Returns the protocal.
 boolean isInternal()
          Deprecated. use link type property instead
 void setInode(java.lang.String inode)
          Sets the inode.
 void setInternal(boolean internal)
          Deprecated. use link type property instead
 void setInternalLinkIdentifier(java.lang.String internalLinkIdentifier)
          Sets the internalLinkIdentifier.
 void setLinkCode(java.lang.String linkCode)
           
 void setLinkType(java.lang.String type)
          Sets the type of link.
 void setParent(java.lang.String parent)
          Sets the parent.
 void setProtocal(java.lang.String protocal)
          Sets the protocal.
 void setTarget(java.lang.String target)
          Sets the target.
 void setUrl(java.lang.String url)
          Sets the url.
 
Methods inherited from class com.dotmarketing.beans.WebAsset
copy, getFriendlyName, getModDate, getModUser, getOwner, getPermissionId, getSortOrder, getTitle, getVersionId, isArchived, isDeleted, isLive, isLocked, isShowOnMenu, isWorking, setDeleted, setFriendlyName, setLive, setLocked, setModDate, setModUser, setShowOnMenu, setSortOrder, setTitle, setWorking
 
Methods inherited from class com.dotmarketing.beans.Inode
addChild, addChild, addChild, addParent, addParent, deleteChild, deleteChild, deleteParent, deleteParent, equals, getCategoryId, getiDate, getIDate, getIdentifier, getPermissionType, getType, getVersionType, hasChildren, hashCode, hasParents, isNew, isParentPermissionable, permissionDependencies, setiDate, setIDate, setIDate, setIdentifier, setOwner, setParents, setType, setVersionId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.dotmarketing.business.Permissionable
getPermissionType, isParentPermissionable, permissionDependencies, setOwner
 
Methods inherited from interface com.dotmarketing.business.Versionable
getVersionType, setVersionId
 

Constructor Detail

Link

public Link()
default constructor

Method Detail

getInode

public java.lang.String getInode()
Specified by:
getInode in interface UUIDable
Specified by:
getInode in interface Versionable
Overrides:
getInode in class Inode

getParent

public java.lang.String getParent()
Returns the parent.

Returns:
String

setParent

public void setParent(java.lang.String parent)
Sets the parent.

Parameters:
parent - The parent to set

setInode

public void setInode(java.lang.String inode)
Sets the inode.

Specified by:
setInode in interface UUIDable
Overrides:
setInode in class Inode
Parameters:
inode - The inode to set

copy

public void copy(Link newLink)

getUrl

public java.lang.String getUrl()
Returns the url.

Returns:
String

setUrl

public void setUrl(java.lang.String url)
Sets the url.

Parameters:
url - The url to set

getTarget

public java.lang.String getTarget()
Returns the target.

Returns:
String

setTarget

public void setTarget(java.lang.String target)
Sets the target.

Parameters:
target - The target to set

compareTo

public int compareTo(java.lang.Object compObject)
Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class Inode

getProtocal

public java.lang.String getProtocal()
Returns the protocal.

Returns:
String

setProtocal

public void setProtocal(java.lang.String protocal)
Sets the protocal.

Parameters:
protocal - The protocal to set

getLinkType

public java.lang.String getLinkType()
Returns the type of link.

Returns:
boolean

setLinkType

public void setLinkType(java.lang.String type)
Sets the type of link.

Parameters:
type -

getLinkCode

public java.lang.String getLinkCode()

setLinkCode

public void setLinkCode(java.lang.String linkCode)

isInternal

public boolean isInternal()
Deprecated. use link type property instead

Returns:

setInternal

public void setInternal(boolean internal)
Deprecated. use link type property instead

Parameters:
internal -

getWorkingURL

public java.lang.String getWorkingURL()
Returns the protocal.

Returns:
String

getURI

public java.lang.String getURI(Folder folder)
Specified by:
getURI in class WebAsset

getInternalLinkIdentifier

public java.lang.String getInternalLinkIdentifier()
Returns the internalLinkIdentifier.

Returns:
String

setInternalLinkIdentifier

public void setInternalLinkIdentifier(java.lang.String internalLinkIdentifier)
Sets the internalLinkIdentifier.

Parameters:
internalLinkIdentifier - The internalLinkIdentifier to set

getMap

public java.util.Map<java.lang.String,java.lang.Object> getMap()
Description copied from class: WebAsset
Returns a map representation of the asset

Overrides:
getMap in class WebAsset
Returns:
the map

acceptedPermissions

public java.util.List<PermissionSummary> acceptedPermissions()
Description copied from interface: Permissionable
Returns the list of accepted permission of this permissionable (I.E. content accepts permissions to view, edit, publish, and edit permissions)

Specified by:
acceptedPermissions in interface Permissionable
Overrides:
acceptedPermissions in class Inode
Returns:

getParentPermissionable

public Permissionable getParentPermissionable()
                                       throws DotDataException
Description copied from interface: Permissionable
Retrieves the parent permissionable in the chain of permissions inheritance

Specified by:
getParentPermissionable in interface Permissionable
Overrides:
getParentPermissionable in class Inode
Returns:
Throws:
DotDataException


Copyright © 2010 dotCMS Inc. All Rights Reserved.