2 Copyright (C) 2002-2005 SKYRIX Software AG
4 This file is part of SOPE.
6 SOPE is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with SOPE; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef __SoObjects_WOContext_SoObjects_H__
23 #define __SoObjects_WOContext_SoObjects_H__
25 #include <NGObjWeb/WOContext.h>
30 The WOContext is the central access point for SOPE too. It has several new
31 variables representing publishing state like the client object or the
32 traversal path. You also access global SOPE objects using the context, for
33 example the security manager.
37 @class SoSecurityManager, SoSubContext;
39 @interface WOContext(SoObjects)
43 - (SoSecurityManager *)soSecurityManager;
47 - (void)addObjectToTraversalStack:(id)_object;
48 - (NSArray *)objectTraversalStack;
51 - (void)setClientObject:(id)_object;
54 - (void)setObjectDispatcher:(id)_dispatcher;
55 - (id)objectDispatcher;
57 - (void)setSoRequestType:(NSString *)_rqType;
58 - (NSString *)soRequestType;
59 - (void)setSoRequestTraversalPath:(NSArray *)_path;
60 - (NSArray *)soRequestTraversalPath;
62 - (void)setPathInfo:(NSString *)_pi;
63 - (NSString *)pathInfo;
65 - (void)setRootURL:(NSString *)_url;
66 - (NSString *)rootURL;
68 - (void)setObjectPermissionCache:(id)_cache;
69 - (id)objectPermissionCache;
71 - (void)setActiveUser:(id)_user;
76 - (SoSubContext *)createSubContext;
77 - (WOContext *)parentContext;
78 - (WOContext *)rootContext;
82 /* all the following methods are convenience methods that access WOContext */
84 #include <NGObjWeb/WOComponent.h>
85 #include <NGObjWeb/WODirectAction.h>
87 @interface WOComponent(SoObjects)
88 - (void)setClientObject:(id)_object;
92 @interface WODirectAction(SoObjects)
96 #endif /* __SoObjects_WOContext_SoObjects_H__ */