|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.wsrp4j.persistence.xml.driver.ServerPersistentInformationProviderImpl
This class holds the information for persistent file handling centrally. It creates the persistent file store directory during construction and returns PersistentFileInformation objects, filled with directory and file name information, based on the request. The file system structure looks like: 1) the PROVIDER case: ./persistence/*.xml (contains the mapping XML files) ./persistence/portlets/*.xml (contains object XML files) ./persistence/descriptions/*.xml (contains object XML files) ./persistence/portletStates/*.xml (contains object XML files) ./persistence/registries/*.xml (contains object XML files)
| Field Summary | |
private ServerPersistentInformationProvider |
_persistentInfoProvider
|
private static java.lang.String |
DESCRIPTIONS
|
private static java.lang.String |
FILE_EXTENSION
|
private Logger |
logger
|
private static java.lang.String |
PERSISTENT_DIR
|
private static java.lang.String |
PLUTO_PORTLET_MAPPING
|
private static java.lang.String |
PORTLET_MAPPING
|
private static java.lang.String |
PORTLET_STATE_MAPPING
|
private static java.lang.String |
PORTLETS
|
private static java.lang.String |
PORTLETSTATES
|
private static java.lang.String |
PRODUCER_MAPPING
|
private static java.lang.String |
PRODUCERS
|
private static java.lang.String |
REGISTRIES
|
private static java.lang.String |
REGISTRY_MAPPING
|
private static java.lang.String |
ROOT_DIR
|
private static java.lang.String |
SEPARATOR
|
private static java.lang.String |
SERVICE_DESCRIPTION_MAPPING
|
private static java.lang.String |
SIMPLE_PORTLET_MAPPING
|
private static java.lang.String |
USER_MAPPING
|
private static java.lang.String |
USERS
|
| Constructor Summary | |
private |
ServerPersistentInformationProviderImpl()
Private constructor |
|
ServerPersistentInformationProviderImpl(java.lang.String offsetPath)
Private constructor |
| Method Summary | |
static ServerPersistentInformationProvider |
create()
Static construction of the PersistentInformationProvider |
static ServerPersistentInformationProvider |
create(java.lang.String offsetPath)
|
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(ConsumerConfiguredPortletList cceList)
Returns the persistent file information for the ConsumerConfiguredPortlet |
PersistentInformation |
getPersistentInformation(ConsumerPortletRegistrationList regList)
Returns the persistent file information for the ConsumerPortletRegistrationList |
PersistentInformation |
getPersistentInformation(PortletDescriptionList portletDescriptionList)
Returns the persistent file information for the PortletDescription |
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(RegistrationList registrationList)
Returns the persistent file information for the Registration |
PersistentInformation |
getPersistentInformation(ServiceDescriptionList serviceDescriptionList)
Returns the persistent file information for the ServiceDescription |
PersistentInformation |
getPersistentInformation(UserList userList)
Returns the persistent file information for the user |
java.lang.String |
getStoreDirectory(java.lang.String subDirectory)
Returns the store directory with the given sub directory |
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 ServerPersistentInformationProvider _persistentInfoProvider
private Logger logger
private static final java.lang.String DESCRIPTIONS
private static final java.lang.String PORTLETS
private static final java.lang.String PORTLETSTATES
private static final java.lang.String REGISTRIES
private static final java.lang.String USERS
private static final java.lang.String PRODUCERS
private static final java.lang.String USER_MAPPING
private static final java.lang.String PRODUCER_MAPPING
private static final java.lang.String PORTLET_MAPPING
private static final java.lang.String SERVICE_DESCRIPTION_MAPPING
private static final java.lang.String REGISTRY_MAPPING
private static final java.lang.String PLUTO_PORTLET_MAPPING
private static final java.lang.String SIMPLE_PORTLET_MAPPING
private static final java.lang.String PORTLET_STATE_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 ServerPersistentInformationProviderImpl()
public ServerPersistentInformationProviderImpl(java.lang.String offsetPath)
| Method Detail |
public static ServerPersistentInformationProvider create()
public static ServerPersistentInformationProvider create(java.lang.String offsetPath)
offsetPath - path for the store directory to be used
Static construction of the PersistentInformationProviderpublic java.lang.String getStoreDirectory(java.lang.String subDirectory)
subDirectory - String sub directory
public void makeStoreSubDir(java.lang.String subDirectory)
subDirectory - String sub directorypublic java.lang.String getMappingFile(java.lang.String mappingBaseName)
mappingBaseName - String mapping file base name without extension
public PersistentInformation getPersistentInformation(ServiceDescriptionList serviceDescriptionList)
getPersistentInformation in interface ServerPersistentInformationProviderserviceDescriptionList - ServiceDescriptionList
public PersistentInformation getPersistentInformation(PortletDescriptionList portletDescriptionList)
getPersistentInformation in interface ServerPersistentInformationProviderportletDescriptionList - PortletDescriptionList
public PersistentInformation getPersistentInformation(RegistrationList registrationList)
getPersistentInformation in interface ServerPersistentInformationProviderregistrationList - RegistrationList
public PersistentInformation getPersistentInformation(ConsumerConfiguredPortletList cceList)
getPersistentInformation in interface ServerPersistentInformationProvidercceList - ConsumerConfiguredPortletList
public PersistentInformation getPersistentInformation(ProducerList producerList)
getPersistentInformation in interface ServerPersistentInformationProviderproducerList -
public PersistentInformation getPersistentInformation(UserList userList)
getPersistentInformation in interface ServerPersistentInformationProvideruserList -
public PersistentInformation getPersistentInformation(PortletList portletList)
getPersistentInformation in interface ServerPersistentInformationProviderportletList -
public PersistentInformation getPersistentInformation(ConsumerPortletRegistrationList regList)
getPersistentInformation in interface ServerPersistentInformationProviderregList -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||