com.gentics.portal
Class PortalDefaultContentHelper

java.lang.Object
  extended by com.gentics.portal.PortalDefaultContentHelper

public class PortalDefaultContentHelper
extends Object

provides the possibility to read a property file for default contentids.

It reads the given request and looks in the property file "portaldefault.properties" for a match.

Author:
Leonard Osang
 

Field Summary
private static Map<String,String> cache
           
private static com.gentics.cr.CRConfigFileLoader crConf
           
private static org.apache.log4j.Logger log
          The logger.
private static String PORTALCONTEXT_KEY_KEY
           
private static String portalContextKey
           
static String PROPERTY_FILENAME
          The Constant Property Filename.
 
Constructor Summary
private PortalDefaultContentHelper()
          Instantiates a new permission checker factory.
 
Method Summary
static String getDefaultContentId(javax.portlet.RenderRequest request)
          Returns the specified value of the property file
private static void init()
          Inits a new instance of the PortalPermissionChecker with the given parameters from property file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.log4j.Logger log
The logger.


PROPERTY_FILENAME

public static final String PROPERTY_FILENAME
The Constant Property Filename.

See Also:
Constant Field Values

PORTALCONTEXT_KEY_KEY

private static final String PORTALCONTEXT_KEY_KEY
See Also:
Constant Field Values

portalContextKey

private static String portalContextKey

crConf

private static com.gentics.cr.CRConfigFileLoader crConf

cache

private static Map<String,String> cache
Constructor Detail

PortalDefaultContentHelper

private PortalDefaultContentHelper()
Instantiates a new permission checker factory.

Method Detail

init

private static void init()
Inits a new instance of the PortalPermissionChecker with the given parameters from property file.


getDefaultContentId

public static String getDefaultContentId(javax.portlet.RenderRequest request)
Returns the specified value of the property file

If the config is not initialized yet, we initialize it here

Returns:
the abstract portal permission checker


Copyright © 2014 Gentics Software GmbH. All Rights Reserved.