org.apache.portals.graffito.portlets
Class BrowserInfo

java.lang.Object
  extended byorg.apache.portals.graffito.portlets.BrowserInfo

public class BrowserInfo
extends java.lang.Object

Information on the current content folder displayed in the Graffito Browser Portlet. This is the DTO used between the velocity template et the portlet methods

Version:
$Id: Exp $
Author:
Lombart Christophe

Field Summary
static java.lang.String DELETE
           
static java.lang.String[] DOCUMENT_TYPES
          All document type available
static java.lang.String INSERT
           
static java.lang.String UPDATE
           
 
Constructor Summary
BrowserInfo(java.util.Collection documentTypes, java.util.Collection languages)
          Contructor
 
Method Summary
 org.apache.portals.graffito.model.CmsObject getCurrentCmsObject()
           
 org.apache.portals.graffito.model.Folder getCurrentFolder()
           
 org.apache.portals.graffito.model.Server getCurrentServer()
           
 java.util.Collection getDocumentLanguages()
          Get all document type that can be created in this Graffito application
 java.util.Collection getDocuments()
           
 java.util.Collection getDocumentTypes()
          Get all document type that can be created in this Graffito application
 java.util.ArrayList getFolderPath()
           
 java.util.Collection getFolders()
           
 java.lang.String getOperation()
           
 boolean isEmpty()
           
 void setCurrentCmsObject(org.apache.portals.graffito.model.CmsObject currentCmsObject)
           
 void setCurrentFolder(org.apache.portals.graffito.model.Folder currentFolder)
           
 void setCurrentServer(org.apache.portals.graffito.model.Server currentServer)
           
 void setDocuments(java.util.Collection documents)
           
 void setFolders(java.util.Collection folders)
           
 void setOperation(java.lang.String operation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOCUMENT_TYPES

public static java.lang.String[] DOCUMENT_TYPES
All document type available


INSERT

public static final java.lang.String INSERT
See Also:
Constant Field Values

UPDATE

public static final java.lang.String UPDATE
See Also:
Constant Field Values

DELETE

public static final java.lang.String DELETE
See Also:
Constant Field Values
Constructor Detail

BrowserInfo

public BrowserInfo(java.util.Collection documentTypes,
                   java.util.Collection languages)
Contructor

Parameters:
documentTypes - list of all available document types
languages - list of all available languages
Method Detail

getDocumentTypes

public java.util.Collection getDocumentTypes()
Get all document type that can be created in this Graffito application

Returns:
all document types (collection of String)

getDocumentLanguages

public java.util.Collection getDocumentLanguages()
Get all document type that can be created in this Graffito application

Returns:
all document types (collection of String)

getDocuments

public java.util.Collection getDocuments()
Returns:
Returns the document children.

setDocuments

public void setDocuments(java.util.Collection documents)
Parameters:
documents - The document children to set.

getFolders

public java.util.Collection getFolders()
Returns:
Returns the folders children.

setFolders

public void setFolders(java.util.Collection folders)
Parameters:
folders - The folders to set.

setCurrentCmsObject

public void setCurrentCmsObject(org.apache.portals.graffito.model.CmsObject currentCmsObject)
Parameters:
currentCmsObject - Current Cms object to set

getCurrentFolder

public org.apache.portals.graffito.model.Folder getCurrentFolder()
Returns:
the current folder

setCurrentFolder

public void setCurrentFolder(org.apache.portals.graffito.model.Folder currentFolder)
Parameters:
currentFolder - The current folder to set

getCurrentCmsObject

public org.apache.portals.graffito.model.CmsObject getCurrentCmsObject()
Returns:
the current cms object

getCurrentServer

public org.apache.portals.graffito.model.Server getCurrentServer()
Returns:
the current server

setCurrentServer

public void setCurrentServer(org.apache.portals.graffito.model.Server currentServer)
Parameters:
currentServer - The current server to set

getFolderPath

public java.util.ArrayList getFolderPath()

getOperation

public java.lang.String getOperation()

setOperation

public void setOperation(java.lang.String operation)

isEmpty

public boolean isEmpty()
Returns:
true if the Browser is empty, else false


Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.