com.dotmarketing.beans
Class Identifier

java.lang.Object
  extended by com.dotmarketing.beans.Identifier
All Implemented Interfaces:
UUIDable, Permissionable, Categorizable, java.io.Serializable

public class Identifier
extends java.lang.Object
implements UUIDable, java.io.Serializable, Permissionable, Categorizable

Author:
maria
See Also:
Serialized Form

Constructor Summary
Identifier()
           
 
Method Summary
 java.util.List<PermissionSummary> acceptedPermissions()
          Returns the list of accepted permission of this permissionable (I.E.
 void addChild(Identifier i, java.lang.String relationType, int sortOrder)
           
 void addChild(Inode i)
           
 boolean deleteChild(Inode child)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAssetName()
           
 java.lang.String getAssetType()
           
 java.lang.String getCategoryId()
           
 java.lang.String getHostId()
           
 java.lang.String getId()
           
 java.lang.String getInode()
           
 java.lang.String getOwner()
           
 java.lang.String getParentPath()
           
 Permissionable getParentPermissionable()
          Retrieves the parent permissionable in the chain of permissions inheritance
 java.lang.String getPath()
           
 java.lang.String getPermissionId()
          Sets the id to be used for checking permissions
 java.lang.String getPermissionType()
          Returns the permission type which this permissionable can inherit from
 java.util.Date getSysExpireDate()
           
 java.util.Date getSysPublishDate()
           
 java.lang.String getURI()
          Returns the uRI.
 int hashCode()
           
 boolean isParentPermissionable()
          Returns true if other asset could inherit permissions from it
 java.util.List<RelatedPermissionableGroup> permissionDependencies(int requiredPermission)
          Based on the given required permission bit, this method should return the list of dependencies that should be check as well on related permissionables before grant the requiredPermission
 void setAssetName(java.lang.String assetName)
           
 void setAssetType(java.lang.String assetType)
           
 void setHostId(java.lang.String hostId)
           
 void setId(java.lang.String id)
           
 void setInode(java.lang.String inode)
           
 void setOwner(java.lang.String owner)
           
 void setParentPath(java.lang.String parentPath)
           
 void setSysExpireDate(java.util.Date sysExpireDate)
           
 void setSysPublishDate(java.util.Date sysPublishDate)
           
 void setURI(java.lang.String uRI)
          Sets the uRI.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Identifier

public Identifier()
Method Detail

getInode

public java.lang.String getInode()
Specified by:
getInode in interface UUIDable

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

setInode

public void setInode(java.lang.String inode)
Specified by:
setInode in interface UUIDable

getAssetName

public java.lang.String getAssetName()

setAssetName

public void setAssetName(java.lang.String assetName)

getAssetType

public java.lang.String getAssetType()

setAssetType

public void setAssetType(java.lang.String assetType)

getParentPath

public java.lang.String getParentPath()

setParentPath

public void setParentPath(java.lang.String parentPath)

getHostId

public java.lang.String getHostId()

setHostId

public void setHostId(java.lang.String hostId)

getURI

public java.lang.String getURI()
Returns the uRI.

Returns:
String

setURI

public void setURI(java.lang.String uRI)
Sets the uRI.

Parameters:
uRI - The uRI to set

addChild

public void addChild(Inode i)

addChild

public void addChild(Identifier i,
                     java.lang.String relationType,
                     int sortOrder)

deleteChild

public boolean deleteChild(Inode child)

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
Returns:

getOwner

public java.lang.String getOwner()
Specified by:
getOwner in interface Permissionable

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
Returns:
Throws:
DotDataException

getPermissionId

public java.lang.String getPermissionId()
Description copied from interface: Permissionable
Sets the id to be used for checking permissions

Specified by:
getPermissionId in interface Permissionable
Returns:

getPermissionType

public java.lang.String getPermissionType()
Description copied from interface: Permissionable
Returns the permission type which this permissionable can inherit from

Specified by:
getPermissionType in interface Permissionable
Returns:

isParentPermissionable

public boolean isParentPermissionable()
Description copied from interface: Permissionable
Returns true if other asset could inherit permissions from it

Specified by:
isParentPermissionable in interface Permissionable
Returns:

permissionDependencies

public java.util.List<RelatedPermissionableGroup> permissionDependencies(int requiredPermission)
Description copied from interface: Permissionable
Based on the given required permission bit, this method should return the list of dependencies that should be check as well on related permissionables before grant the requiredPermission

Specified by:
permissionDependencies in interface Permissionable
Returns:

setOwner

public void setOwner(java.lang.String owner)
Specified by:
setOwner in interface Permissionable

getCategoryId

public java.lang.String getCategoryId()
Specified by:
getCategoryId in interface Categorizable

getPath

public java.lang.String getPath()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getSysPublishDate

public java.util.Date getSysPublishDate()

setSysPublishDate

public void setSysPublishDate(java.util.Date sysPublishDate)

getSysExpireDate

public java.util.Date getSysExpireDate()

setSysExpireDate

public void setSysExpireDate(java.util.Date sysExpireDate)


Copyright © 2013 dotCMS Inc. All Rights Reserved.