|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.wsrp4j.persistence.xml.driver.ClientPersistentInformationProviderImpl
Consumer: This class holds the information for persistent file handling centrally. It creates the persistent file store directory on demand and returns PersistentFileInformation objects, filled with directory and file name information, based on the request. The file system structure looks like: 1) the CONSUMER case: ./persistence/*.xml (contains the mapping XML files) ./persistence/portlets/*.xml (contains object XML files) ./persistence/pages/*.xml (contains object XML files) ./persistence/users/*.xml (contains object XML files) ./persistence/producers/*.xml (contains object XML files)
| Field Summary | |
private ClientPersistentInformationProvider |
_persistentInfoProvider
|
private static java.lang.String |
CONSUMER_PERSISTENTSTORE
|
private static java.lang.String |
FILE_EXTENSION
|
private Logger |
logger
|
private static java.lang.String |
PAGE_MAPPING
|
private static java.lang.String |
PAGES
|
private static java.lang.String |
PERSISTENT_DIR
|
private static java.lang.String |
PORTLET_MAPPING
|
private static java.lang.String |
PORTLETS
|
private static java.lang.String |
PRODUCER_MAPPING
|
private static java.lang.String |
PRODUCERS
|
private static java.lang.String |
ROOT_DIR
|
private static java.lang.String |
SEPARATOR
|
private static java.lang.String |
USER_MAPPING
|
private static java.lang.String |
USERS
|
| Constructor Summary | |
private |
ClientPersistentInformationProviderImpl()
Private constructor Creates the persistent file store directories dependent on the configured persistent store directory in the consumer properties file. |
| Method Summary | |
static ClientPersistentInformationProvider |
create()
Static construction of the PersistentInformationProvider |
private java.lang.String |
getMappingFile(java.lang.String mappingBaseName)
Compute the path to the mapping file from the root plus the name of the mapping file |
PersistentInformation |
getPersistentInformation(ConsumerPortletContextList consumerPortletContextList)
Returns the persistent file information for the ConsumerPortletContext |
PersistentInformation |
getPersistentInformation(PageList pageList)
Returns the persistent file information for the Page |
PersistentInformation |
getPersistentInformation(PortletList portletList)
Returns the persistent file information for the Portlet |
PersistentInformation |
getPersistentInformation(ProducerList producerList)
Returns the persistent file information for the producers |
PersistentInformation |
getPersistentInformation(UserList userList)
Returns the persistent file information for the user |
private java.lang.String |
getStoreDirectory(java.lang.String subDirectory)
Returns the store directory with the given sub directory |
private void |
makeStoreSubDir(java.lang.String subDirectory)
Creates the store directory with the given sub directory name |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private ClientPersistentInformationProvider _persistentInfoProvider
private static final java.lang.String CONSUMER_PERSISTENTSTORE
private Logger logger
private static final java.lang.String PORTLETS
private static final java.lang.String USERS
private static final java.lang.String PAGES
private static final java.lang.String PRODUCERS
private static final java.lang.String PORTLET_MAPPING
private static final java.lang.String PAGE_MAPPING
private static final java.lang.String USER_MAPPING
private static final java.lang.String PRODUCER_MAPPING
private static java.lang.String ROOT_DIR
private static java.lang.String FILE_EXTENSION
private static java.lang.String PERSISTENT_DIR
private static java.lang.String SEPARATOR
| Constructor Detail |
private ClientPersistentInformationProviderImpl()
| Method Detail |
public static ClientPersistentInformationProvider create()
private java.lang.String getStoreDirectory(java.lang.String subDirectory)
subDirectory - String sub directory
private void makeStoreSubDir(java.lang.String subDirectory)
subDirectory - String sub directoryprivate java.lang.String getMappingFile(java.lang.String mappingBaseName)
mappingBaseName - String mapping file base name without extension
public PersistentInformation getPersistentInformation(PortletList portletList)
getPersistentInformation in interface ClientPersistentInformationProviderportletList -
public PersistentInformation getPersistentInformation(PageList pageList)
getPersistentInformation in interface ClientPersistentInformationProviderpageList -
public PersistentInformation getPersistentInformation(UserList userList)
getPersistentInformation in interface ClientPersistentInformationProvideruserList -
public PersistentInformation getPersistentInformation(ProducerList producerList)
getPersistentInformation in interface ClientPersistentInformationProviderproducerList -
public PersistentInformation getPersistentInformation(ConsumerPortletContextList consumerPortletContextList)
getPersistentInformation in interface ClientPersistentInformationProviderconsumerPortletContextList - ConsumerPortletContextList
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||