org.ow2.dragon.ui.uibeans.organization
Class ListOfPostsBean

java.lang.Object
  extended by org.ow2.dragon.ui.uibeans.organization.ListOfPostsBean

public class ListOfPostsBean
extends java.lang.Object

This bean holds a list of posts. It is initialized either by loading all posts from the database, or by searching directors by keywords on various fields.

This version of the bean performs the search when loading, then lets the framework manage sort and pagination. This design may only be used if you're sure the amount of data is "reasonable" and under control.

Author:
ambarthe, ofabre

Constructor Summary
ListOfPostsBean()
           
 
Method Summary
 void deletePost(java.lang.String postId, javax.servlet.http.HttpServletRequest request)
           
 java.util.List<org.ow2.dragon.api.to.organization.PostTO> getFreePosts()
           
 java.util.List<org.ow2.dragon.api.to.organization.PostTO> getOrgPosts()
           
 java.util.List<org.ow2.dragon.api.to.organization.PostTO> getPosts()
           
 java.util.List<org.ow2.dragon.api.to.organization.PostTO> getPostsToAdd()
           
 java.lang.String getSearchCriteria()
           
 java.util.List<java.lang.String> getSearchedProperties()
           
 void loadAll()
          Loads all posts from the database
 void loadByOrganization(java.lang.String orgId)
          Loads all posts from the database
 void loadFree(javax.servlet.http.HttpServletRequest request)
          Loads all posts from the database
 void noOrgSelected()
          TODO to be replaced by a more elegant solution
 java.lang.String postInUse(org.ow2.dragon.api.to.organization.PostTO post)
           
 void search(javax.servlet.http.HttpServletRequest request)
          Searches post by business name, nature, description
 void setSearchCriteria(java.lang.String searchCriteria)
           
 void setSearchedProperties(java.util.List<java.lang.String> searchedProperties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListOfPostsBean

public ListOfPostsBean()
Method Detail

loadAll

public void loadAll()
             throws org.ow2.opensuit.core.error.LocalizedError
Loads all posts from the database

Throws:
org.ow2.opensuit.core.error.LocalizedError

loadByOrganization

public void loadByOrganization(java.lang.String orgId)
                        throws org.ow2.opensuit.core.error.LocalizedError
Loads all posts from the database

Throws:
org.ow2.opensuit.core.error.LocalizedError

deletePost

public void deletePost(java.lang.String postId,
                       javax.servlet.http.HttpServletRequest request)
                throws org.ow2.opensuit.core.error.LocalizedError
Throws:
org.ow2.opensuit.core.error.LocalizedError

postInUse

public java.lang.String postInUse(org.ow2.dragon.api.to.organization.PostTO post)
                           throws org.ow2.opensuit.core.error.LocalizedError
Throws:
org.ow2.opensuit.core.error.LocalizedError

search

public void search(javax.servlet.http.HttpServletRequest request)
            throws org.ow2.opensuit.core.error.LocalizedError
Searches post by business name, nature, description

Throws:
org.ow2.opensuit.core.error.LocalizedError

loadFree

public void loadFree(javax.servlet.http.HttpServletRequest request)
              throws org.ow2.opensuit.core.error.LocalizedError
Loads all posts from the database

Throws:
org.ow2.opensuit.core.error.LocalizedError

getPostsToAdd

public java.util.List<org.ow2.dragon.api.to.organization.PostTO> getPostsToAdd()

noOrgSelected

public void noOrgSelected()
TODO to be replaced by a more elegant solution


getPosts

public java.util.List<org.ow2.dragon.api.to.organization.PostTO> getPosts()

getFreePosts

public java.util.List<org.ow2.dragon.api.to.organization.PostTO> getFreePosts()

getOrgPosts

public java.util.List<org.ow2.dragon.api.to.organization.PostTO> getOrgPosts()

getSearchCriteria

public java.lang.String getSearchCriteria()
Returns:
the searchCriteria

setSearchCriteria

public void setSearchCriteria(java.lang.String searchCriteria)
Parameters:
searchCriteria - the searchCriteria to set

getSearchedProperties

public java.util.List<java.lang.String> getSearchedProperties()

setSearchedProperties

public void setSearchedProperties(java.util.List<java.lang.String> searchedProperties)


Copyright © 2008-2010 eBMWebsourcing. All Rights Reserved.