mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-05-07 05:31:00 +00:00
o added -validateStatisticsLogin:withPassword:
o added -_allowedToViewEvents o added -_allowToViewEvents o added -_setAllowedToViewEvents: o added -validateEventsLogin:withPassword: o added -_setBirthDate: o added -addLanguage: o added -firstLanguage git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18143 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d0d510572c
commit
e6700eb0e3
1 changed files with 49 additions and 7 deletions
|
@ -53,6 +53,7 @@
|
||||||
int _contextCounter;
|
int _contextCounter;
|
||||||
int _requestCounter;
|
int _requestCounter;
|
||||||
BOOL _isAllowedToViewStatistics;
|
BOOL _isAllowedToViewStatistics;
|
||||||
|
BOOL _isAllowedToViewEvents;
|
||||||
BOOL _isTerminating;
|
BOOL _isTerminating;
|
||||||
BOOL _isDistributionEnabled;
|
BOOL _isDistributionEnabled;
|
||||||
BOOL _storesIDsInCookies;
|
BOOL _storesIDsInCookies;
|
||||||
|
@ -69,8 +70,24 @@
|
||||||
-(NSDate*)expirationDateForIDCookies;
|
-(NSDate*)expirationDateForIDCookies;
|
||||||
-(BOOL)storesIDsInCookies;
|
-(BOOL)storesIDsInCookies;
|
||||||
-(void)setStoresIDsInCookies:(BOOL)flag;
|
-(void)setStoresIDsInCookies:(BOOL)flag;
|
||||||
|
|
||||||
|
/** Returns NO if URLs contains application number so requests are
|
||||||
|
directed to the specific application instance.
|
||||||
|
Resturns YES if URLs doesn't contain application number so requests
|
||||||
|
can be directed to any instance (load balancing)
|
||||||
|
Default value is NO
|
||||||
|
**/
|
||||||
-(BOOL)isDistributionEnabled;
|
-(BOOL)isDistributionEnabled;
|
||||||
|
|
||||||
|
/** Enables or disables application instance number in URLs.
|
||||||
|
If flag is NO, URLs contains application number so requests are directed
|
||||||
|
to the specific application instance.
|
||||||
|
If flag is YES, URLs doesn't contain application number so requests can
|
||||||
|
be directed to any instance (load balancing)
|
||||||
|
**/
|
||||||
-(void)setDistributionEnabled:(BOOL)flag;
|
-(void)setDistributionEnabled:(BOOL)flag;
|
||||||
|
|
||||||
|
|
||||||
-(NSString*)sessionID;
|
-(NSString*)sessionID;
|
||||||
-(void)setSessionID:(NSString*)sessionID;
|
-(void)setSessionID:(NSString*)sessionID;
|
||||||
-(NSString*)description;
|
-(NSString*)description;
|
||||||
|
@ -157,7 +174,25 @@
|
||||||
@interface GSWSession (GSWLocalization)
|
@interface GSWSession (GSWLocalization)
|
||||||
|
|
||||||
-(void)setLanguages:(NSArray*)languages;
|
-(void)setLanguages:(NSArray*)languages;
|
||||||
|
|
||||||
|
/** GSWeb specific
|
||||||
|
Insert language language at the begining of session languages array
|
||||||
|
**/
|
||||||
|
-(void)insertLanguage:(NSString*)language;
|
||||||
|
|
||||||
|
/** GSWeb specific
|
||||||
|
Add language language at the end of session languages array if language
|
||||||
|
is not present
|
||||||
|
**/
|
||||||
|
-(void)addLanguage:(NSString*)language;
|
||||||
|
|
||||||
-(NSArray*)languages;
|
-(NSArray*)languages;
|
||||||
|
-(NSArray*)_languages;
|
||||||
|
|
||||||
|
/** GSWeb specific
|
||||||
|
Returns first element of languages or nil if languages is empty
|
||||||
|
**/
|
||||||
|
-(NSString*)firstLanguage;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@ -202,17 +237,24 @@
|
||||||
@interface GSWSession (GSWStatistics)
|
@interface GSWSession (GSWStatistics)
|
||||||
|
|
||||||
-(NSArray*)statistics;
|
-(NSArray*)statistics;
|
||||||
|
-(BOOL)_allowedToViewStatistics;
|
||||||
|
-(void)_allowToViewStatistics;
|
||||||
|
-(void)_setAllowedToViewStatistics:(BOOL)flag;
|
||||||
|
-(BOOL)validateStatisticsLogin:(NSString*)login
|
||||||
|
withPassword:(NSString*)password;
|
||||||
|
-(NSString*)_formattedStatistics;
|
||||||
|
-(NSDate*)_birthDate;
|
||||||
|
-(void)_setBirthDate:(NSDate*)birthDate;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
//====================================================================
|
//====================================================================
|
||||||
@interface GSWSession (GSWSessionM)
|
@interface GSWSession (GSWEvents)
|
||||||
|
|
||||||
-(BOOL)_allowedToViewStatistics;
|
|
||||||
-(void)_allowToViewStatistics;
|
|
||||||
-(id)_formattedStatistics;
|
|
||||||
-(NSDate*)_birthDate;
|
|
||||||
|
|
||||||
|
-(BOOL)_allowedToViewEvents;
|
||||||
|
-(void)_allowToViewEvents;
|
||||||
|
-(void)_setAllowedToViewEvents:(BOOL)flag;
|
||||||
|
-(BOOL)validateEventsLogin:(NSString*)login
|
||||||
|
withPassword:(NSString*)password;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
//====================================================================
|
//====================================================================
|
||||||
|
|
Loading…
Reference in a new issue