com.wewebu.ow.server.ecm
Interface OwNetworkContext

All Superinterfaces:
OwBaseInitializer, OwRepositoryContext, OwUserOperationExecutor
All Known Implementing Classes:
OwMainAppContext

public interface OwNetworkContext
extends OwRepositoryContext, OwUserOperationExecutor

Interface for the ECM context.
The context keeps basic configuration, localization and environment information and is independent to the web context.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.wewebu.ow.server.ecm.OwRepositoryContext
OwRepositoryContext.OwConfigChangeEvent, OwRepositoryContext.OwConfigChangeEventListener
 
Method Summary
 TimeZone getClientTimeZone()
          Return a time zone which represents the client time zone.
 OwTimeZoneInfo getClientTimeZoneInfo()
          Get client's time zone offset information.
 OwBaseUserInfo getCurrentUser()
          get the current user
 String getDefaultFolderClassName()
          name of the default class used to create simple folders
 void onLogin(OwBaseUserInfo user_p)
          callback from network adapter when user gets logged in
 Object resolveLiteralPlaceholder(String contextname_p, String placeholdername_p)
          resolve the given literal placeholder name to a property / criteria value
 
Methods inherited from interface com.wewebu.ow.server.ecm.OwRepositoryContext
addConfigChangeEventListener, createTempDir, deleteTempDir, getBasePath, getClientID, getClientWildCard, getConfigurationName, getConfigURL, getInitParameter, getJDBCTemplate, getLocale, getMandator, getMandatorID, getMandatorManager, getXMLConfigDoc, hasLabel, localize, localize1, localize2, localize3, localizeLabel
 
Methods inherited from interface com.wewebu.ow.server.conf.OwBaseInitializer
getApplicationAttribute, setApplicationAttribute
 
Methods inherited from interface com.wewebu.ow.server.app.OwUserOperationExecutor
addUserOperationListener, removeUserOperationListener
 

Method Detail

onLogin

void onLogin(OwBaseUserInfo user_p)
             throws Exception
callback from network adapter when user gets logged in

Throws:
Exception

getDefaultFolderClassName

String getDefaultFolderClassName()
name of the default class used to create simple folders

Returns:
String classname/id of default folder class or null if not defined

getCurrentUser

OwBaseUserInfo getCurrentUser()
                              throws Exception
get the current user

Returns:
OwUserInfo
Throws:
Exception

resolveLiteralPlaceholder

Object resolveLiteralPlaceholder(String contextname_p,
                                 String placeholdername_p)
                                 throws Exception
resolve the given literal placeholder name to a property / criteria value

Parameters:
contextname_p - String name of calling context, e.g. searchtemplate name
placeholdername_p - String name of placeholder to retrieve value for
Returns:
an Object
Throws:
Exception

getClientTimeZoneInfo

OwTimeZoneInfo getClientTimeZoneInfo()
Get client's time zone offset information. The time zone information can be used to set or guess the client's actual time zone or a client-compatible time zone.

Returns:
the current timezone information .
Since:
3.1.0.3

getClientTimeZone

TimeZone getClientTimeZone()
Return a time zone which represents the client time zone. If the client time zone could not be found/recognized the method return by default a time zone TimeZone.getDefault().

Returns:
the current time zone as indicated by the current client time zone information.
Since:
3.1.0.3


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.