org.sakaiproject.tool.content
Class ResourcesAction.BrowseItem

java.lang.Object
  extended byorg.sakaiproject.tool.content.ResourcesAction.BrowseItem
Direct Known Subclasses:
ResourcesAction.EditItem
Enclosing class:
ResourcesAction

public static class ResourcesAction.BrowseItem
extends Object

Internal class that encapsulates all information about a resource that is needed in the browse mode


Field Summary
protected  boolean m_canAddFolder
           
protected  boolean m_canAddItem
           
protected  boolean m_canCopy
           
protected  boolean m_canDelete
           
protected  boolean m_canRead
           
protected  boolean m_canRevise
           
protected  boolean m_canSelect
           
protected  String m_container
           
protected  boolean m_copyrightAlert
           
protected  String m_createdBy
           
protected  String m_createdTime
           
protected  int m_depth
           
protected  boolean m_hasCopyableChildren
           
protected  boolean m_hasDeletableChildren
           
protected  String m_id
           
protected  boolean m_inheritsHighlight
           
protected  boolean m_isAttached
           
protected  boolean m_isCopied
           
protected  boolean m_isEmpty
           
protected  boolean m_isHighlighted
           
protected  boolean m_isLocal
           
protected  List m_members
           
protected  String m_modifiedBy
           
protected  String m_modifiedTime
           
protected  String m_name
           
protected  String m_root
           
protected  String m_size
           
protected  String m_target
           
protected  String m_type
           
protected  String m_url
           
 
Constructor Summary
ResourcesAction.BrowseItem(String id, String name, String type)
           
 
Method Summary
 void addMembers(Collection members)
           
 boolean canAddFolder()
           
 boolean canAddItem()
           
 boolean canCopy()
           
 boolean canDelete()
           
 boolean canRead()
           
 boolean canRevise()
           
 boolean canSelect()
           
 boolean canUpdate()
           
 String getContainer()
           
 String getCreatedBy()
           
 String getCreatedTime()
           
 int getDepth()
           
 String getId()
           
 List getMembers()
           
 String getModifiedBy()
           
 String getModifiedTime()
           
 String getName()
           
 String getRoot()
           
 String getSize()
           
 String getTarget()
           
 String getType()
           
 String getUrl()
           
 boolean hasCopyableChildren()
           
 boolean hasCopyrightAlert()
           
 boolean hasDeletableChildren()
           
 boolean inheritsHighlighted()
           
 boolean isAttached()
           
 boolean isCopied()
           
 boolean isEmpty()
           
 boolean isFolder()
           
 boolean isHighlighted()
           
 boolean isLocal()
           
 boolean isMoved()
           
 boolean isTooBig()
           
 void seDeletableChildren(boolean hasDeletableChildren)
           
 void setAttached(boolean isAttached)
           
 void setCanAddFolder(boolean canAddFolder)
           
 void setCanAddItem(boolean canAddItem)
           
 void setCanCopy(boolean canCopy)
           
 void setCanDelete(boolean canDelete)
           
 void setCanRead(boolean canRead)
           
 void setCanRevise(boolean canRevise)
           
 void setCanSelect(boolean canSelect)
           
 void setCanUpdate(boolean canUpdate)
           
 void setContainer(String container)
           
 void setCopied(boolean isCopied)
           
 void setCopyableChildren(boolean hasCopyableChildren)
           
 void setCopyrightAlert(boolean copyrightAlert)
           
 void setCreatedBy(String creator)
           
 void setCreatedTime(String time)
           
 void setDepth(int depth)
           
 void setHighlighted(boolean isHighlighted)
           
 void setInheritsHighlight(boolean inheritsHighlight)
           
 void setIsEmpty(boolean isEmpty)
           
 void setIsLocal(boolean isLocal)
           
 void setIsTooBig(boolean toobig)
           
 void setModifiedBy(String modifier)
           
 void setModifiedTime(String time)
           
 void setMoved(boolean isMoved)
           
 void setName(String name)
           
 void setRoot(String root)
           
 void setSize(String size)
           
 void setTarget(String target)
           
 void setUrl(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_name

protected String m_name

m_id

protected String m_id

m_type

protected String m_type

m_canRead

protected boolean m_canRead

m_canRevise

protected boolean m_canRevise

m_canDelete

protected boolean m_canDelete

m_canCopy

protected boolean m_canCopy

m_isCopied

protected boolean m_isCopied

m_canAddItem

protected boolean m_canAddItem

m_canAddFolder

protected boolean m_canAddFolder

m_canSelect

protected boolean m_canSelect

m_members

protected List m_members

m_isEmpty

protected boolean m_isEmpty

m_isHighlighted

protected boolean m_isHighlighted

m_inheritsHighlight

protected boolean m_inheritsHighlight

m_createdBy

protected String m_createdBy

m_createdTime

protected String m_createdTime

m_modifiedBy

protected String m_modifiedBy

m_modifiedTime

protected String m_modifiedTime

m_size

protected String m_size

m_target

protected String m_target

m_container

protected String m_container

m_root

protected String m_root

m_depth

protected int m_depth

m_hasDeletableChildren

protected boolean m_hasDeletableChildren

m_hasCopyableChildren

protected boolean m_hasCopyableChildren

m_copyrightAlert

protected boolean m_copyrightAlert

m_url

protected String m_url

m_isLocal

protected boolean m_isLocal

m_isAttached

protected boolean m_isAttached
Constructor Detail

ResourcesAction.BrowseItem

public ResourcesAction.BrowseItem(String id,
                                  String name,
                                  String type)
Parameters:
id -
name -
type -
Method Detail

setIsTooBig

public void setIsTooBig(boolean toobig)

isTooBig

public boolean isTooBig()

setName

public void setName(String name)
Parameters:
name -

setRoot

public void setRoot(String root)
Parameters:
root -

getRoot

public String getRoot()
Returns:

getMembers

public List getMembers()
Returns:

addMembers

public void addMembers(Collection members)
Parameters:
members -

canAddItem

public boolean canAddItem()
Returns:

canDelete

public boolean canDelete()
Returns:

canRead

public boolean canRead()
Returns:

canSelect

public boolean canSelect()

canRevise

public boolean canRevise()
Returns:

getId

public String getId()
Returns:

getName

public String getName()
Returns:

getDepth

public int getDepth()
Returns:

setDepth

public void setDepth(int depth)
Parameters:
depth -

setCanAddItem

public void setCanAddItem(boolean canAddItem)

setCanDelete

public void setCanDelete(boolean canDelete)
Parameters:
canDelete -

setCanRead

public void setCanRead(boolean canRead)
Parameters:
canRead -

setCanSelect

public void setCanSelect(boolean canSelect)

setCanRevise

public void setCanRevise(boolean canRevise)
Parameters:
canRevise -

isFolder

public boolean isFolder()
Returns:

getType

public String getType()
Returns:

canAddFolder

public boolean canAddFolder()
Returns:

setCanAddFolder

public void setCanAddFolder(boolean canAddFolder)

canCopy

public boolean canCopy()
Returns:

setCanCopy

public void setCanCopy(boolean canCopy)
Parameters:
canCopy -

hasCopyrightAlert

public boolean hasCopyrightAlert()
Returns:

setCopyrightAlert

public void setCopyrightAlert(boolean copyrightAlert)
Parameters:
copyrightAlert -

getUrl

public String getUrl()
Returns:

setUrl

public void setUrl(String url)
Parameters:
url -

isCopied

public boolean isCopied()
Returns:

setCopied

public void setCopied(boolean isCopied)
Parameters:
isCopied -

isMoved

public boolean isMoved()
Returns:

setMoved

public void setMoved(boolean isMoved)

getCreatedBy

public String getCreatedBy()
Returns:

getCreatedTime

public String getCreatedTime()
Returns:

getModifiedBy

public String getModifiedBy()
Returns:

getModifiedTime

public String getModifiedTime()
Returns:

getSize

public String getSize()
Returns:

setCreatedBy

public void setCreatedBy(String creator)
Parameters:
creator -

setCreatedTime

public void setCreatedTime(String time)
Parameters:
time -

setModifiedBy

public void setModifiedBy(String modifier)
Parameters:
modifier -

setModifiedTime

public void setModifiedTime(String time)
Parameters:
time -

setSize

public void setSize(String size)
Parameters:
size -

getTarget

public String getTarget()
Returns:

setTarget

public void setTarget(String target)
Parameters:
target -

isEmpty

public boolean isEmpty()
Returns:

setIsEmpty

public void setIsEmpty(boolean isEmpty)
Parameters:
isEmpty -

getContainer

public String getContainer()
Returns:

setContainer

public void setContainer(String container)
Parameters:
container -

setIsLocal

public void setIsLocal(boolean isLocal)

isLocal

public boolean isLocal()

isAttached

public boolean isAttached()
Returns:
Returns the isAttached.

setAttached

public void setAttached(boolean isAttached)
Parameters:
isAttached - The isAttached to set.

hasCopyableChildren

public boolean hasCopyableChildren()
Returns:
Returns the hasCopyableChildren.

setCopyableChildren

public void setCopyableChildren(boolean hasCopyableChildren)
Parameters:
hasCopyableChildren - The hasCopyableChildren to set.

hasDeletableChildren

public boolean hasDeletableChildren()
Returns:
Returns the hasDeletableChildren.

seDeletableChildren

public void seDeletableChildren(boolean hasDeletableChildren)
Parameters:
hasDeletableChildren - The hasDeletableChildren to set.

canUpdate

public boolean canUpdate()
Returns:
Returns the canUpdate.

setCanUpdate

public void setCanUpdate(boolean canUpdate)
Parameters:
canUpdate - The canUpdate to set.

setHighlighted

public void setHighlighted(boolean isHighlighted)

isHighlighted

public boolean isHighlighted()

setInheritsHighlight

public void setInheritsHighlight(boolean inheritsHighlight)

inheritsHighlighted

public boolean inheritsHighlighted()