Thread: [smartweb-devel] Time... JODA
Brought to you by:
rlogiacco
From: svetrini <st...@gm...> - 2007-11-06 19:58:31
|
I found a nice lib to manage java time and date in the opensource comunity. This is JODA ( http://joda-time.sourceforge.net/ ) I think it is usefuller than standard JDK class. I tried to use it in Some example Handler inside the auth method. exactly i used Period and Inteval to manage Time interval during which an user is allowed to execute a login. Maybe an entire lib is too much, to use only this feature... What do you think about? -- View this message in context: http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13614454 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Pino C. <gco...@gm...> - 2007-11-06 21:49:02
|
Hi .. Interesting .. as a library could be useful in the implementation of applications in which the dates are at the root of everything .. Like the calculation of the delay of a goal in a really difficult context.. But I think it is not necessarily helpful in your case, you could use the good old Calendar without importing it. svetrini wrote: > > I found a nice lib to manage java time and date in the opensource > comunity. > This is JODA ( http://joda-time.sourceforge.net/ ) > I think it is usefuller than standard JDK class. > I tried to use it in Some example Handler inside the auth method. > exactly i used Period and Inteval to manage Time interval during which an > user is allowed to execute a login. > > Maybe an entire lib is too much, to use only this feature... > > What do you think about? > -- View this message in context: http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13616779 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Roberto Lo G. <rlo...@sm...> - 2007-11-07 01:58:28
|
For what I can see from the site documentation and the API javadoc I think this library doesn't support what we need as Period and interval are nothing like CRON. To be more precise I think the DateTimeHandler should express something like "allow this only if the day of the week is friday and time is between 8 AM and 6PM". This kind of sentence is a tipical CRON expression as in Jcrontab or Quartz which are jobschedulers and therefore much more than we need. In my opinion, if I'm right about JODA capabilities, it's not needed but I'm more than open to discussion. 2007/11/6, svetrini <st...@gm...>: > > I found a nice lib to manage java time and date in the opensource comunity. > This is JODA ( http://joda-time.sourceforge.net/ ) > I think it is usefuller than standard JDK class. > I tried to use it in Some example Handler inside the auth method. > exactly i used Period and Inteval to manage Time interval during which an > user is allowed to execute a login. > > Maybe an entire lib is too much, to use only this feature... > > What do you think about? > -- > View this message in context: http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13614454 > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Gaetano P. <gpe...@sm...> - 2007-11-07 11:39:49
|
Hi all!!! just taking a look around to the library i thing it would be intersting to introduce this or another date/time manipulation library into the smartweb framework (there is also a tag library). The library must be intended as a date/time manipulation utility (more powerfull and easy to use rather then java.util.Calendar and java.text.DateFormat). It must not be intended as a date/time scheduler utility... It simply exports simple method for date/time manipulation and supports internazionalization, tag library, time interval. I think it could enrich the rapid web-application development framework... svetrini wrote: > > I found a nice lib to manage java time and date in the opensource > comunity. > This is JODA ( http://joda-time.sourceforge.net/ ) > I think it is usefuller than standard JDK class. > I tried to use it in Some example Handler inside the auth method. > exactly i used Period and Inteval to manage Time interval during which an > user is allowed to execute a login. > > Maybe an entire lib is too much, to use only this feature... > > What do you think about? > -- View this message in context: http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13625579 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Roberto Lo G. <rlo...@sm...> - 2007-11-07 13:32:49
|
Hi Gaetano, do you have any suggestion? I thought DateFormat and Calendar where doing well their job and with the help of the validator plugin major issues about date and time were solved. Am I missing something? 2007/11/7, Gaetano Perrone <gpe...@sm...>: > > Hi all!!! > just taking a look around to the library i thing it would be intersting to > introduce this or another date/time manipulation library into the smartweb > framework (there is also a tag library). > The library must be intended as a date/time manipulation utility (more > powerfull and easy to use rather then java.util.Calendar and > java.text.DateFormat). > It must not be intended as a date/time scheduler utility... > It simply exports simple method for date/time manipulation and supports > internazionalization, tag library, time interval. > I think it could enrich the rapid web-application development framework... > > > svetrini wrote: > > > > I found a nice lib to manage java time and date in the opensource > > comunity. > > This is JODA ( http://joda-time.sourceforge.net/ ) > > I think it is usefuller than standard JDK class. > > I tried to use it in Some example Handler inside the auth method. > > exactly i used Period and Inteval to manage Time interval during which an > > user is allowed to execute a login. > > > > Maybe an entire lib is too much, to use only this feature... > > > > What do you think about? > > > > -- > View this message in context: http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13625579 > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Roberto Lo G. <rlo...@sm...> - 2007-11-08 13:30:22
|
Hurr=E0! i finally had some time to spend on programming (many months have passed since my last execution of the Eclipse environment) and I've produced a simple class which can solve our DateTimeHandler problem in a very easy way using CRON syntax (some examples here http://www.adminschoice.com/docs/crontab.htm#Example). The class exposes one constructor accepting a cron-like String as parameter and an additional (and overloaded) check method which compares the pattern to a Date or Calendar and returns true or false depending if the date/time matches the pattern. I've tested it and it works well but now we must decide where to place it. Possible candidates are: - into core library to make it available everywhere - as Inner Class of DateTimeHandler as this is the only place where it is n= eeded - into SmartConfig to make it available everywhere SmartConfig is used Suggestions? 2007/11/6, svetrini <st...@gm...>: > > I found a nice lib to manage java time and date in the opensource comunit= y. > This is JODA ( http://joda-time.sourceforge.net/ ) > I think it is usefuller than standard JDK class. > I tried to use it in Some example Handler inside the auth method. > exactly i used Period and Inteval to manage Time interval during which an > user is allowed to execute a login. > > Maybe an entire lib is too much, to use only this feature... > > What do you think about? > -- > View this message in context: http://www.nabble.com/Time...-JODA-tf476055= 1s17546.html#a13614454 > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Giuseppe C. <gco...@gm...> - 2007-11-08 22:56:16
|
Uhmmm.. Hello Roberto, I can not understand the context of this issue accordingly .= . I can not express my opinion about it. Could you state the problem in a mor= e understandable way.. so that even those who are not inside can answer for you? Thanks 2007/11/8, Roberto Lo Giacco <rlo...@sm...>: > > Hurr=E0! i finally had some time to spend on programming (many months > have passed since my last execution of the Eclipse environment) and > I've produced a simple class which can solve our DateTimeHandler > problem in a very easy way using CRON syntax (some examples here > http://www.adminschoice.com/docs/crontab.htm#Example). > > The class exposes one constructor accepting a cron-like String as > parameter and an additional (and overloaded) check method which > compares the pattern to a Date or Calendar and returns true or false > depending if the date/time matches the pattern. > > I've tested it and it works well but now we must decide where to place > it. Possible candidates are: > > - into core library to make it available everywhere > - as Inner Class of DateTimeHandler as this is the only place where it is > needed > - into SmartConfig to make it available everywhere SmartConfig is used > > Suggestions? > > > 2007/11/6, svetrini <st...@gm...>: > > > > I found a nice lib to manage java time and date in the opensource > comunity. > > This is JODA ( http://joda-time.sourceforge.net/ ) > > I think it is usefuller than standard JDK class. > > I tried to use it in Some example Handler inside the auth method. > > exactly i used Period and Inteval to manage Time interval during which > an > > user is allowed to execute a login. > > > > Maybe an entire lib is too much, to use only this feature... > > > > What do you think about? > > -- > > View this message in context: > http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13614454 > > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > smartweb-devel mailing list > > sma...@li... > > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Pino C. <gco...@gm...> - 2007-11-08 23:44:14
|
Uhmmm.. Hello Roberto, I can not understand the context of this issue accordingly .= . I can not express my opinion about it. Could you state the problem in a mor= e understandable way.. so that even those who are not inside can answer for you? Thanks Roberto Lo Giacco-4 wrote: >=20 > Hurr=C3=A0! i finally had some time to spend on programming (many months > have passed since my last execution of the Eclipse environment) and > I've produced a simple class which can solve our DateTimeHandler > problem in a very easy way using CRON syntax (some examples here > http://www.adminschoice.com/docs/crontab.htm#Example). >=20 > The class exposes one constructor accepting a cron-like String as > parameter and an additional (and overloaded) check method which > compares the pattern to a Date or Calendar and returns true or false > depending if the date/time matches the pattern. >=20 > I've tested it and it works well but now we must decide where to place > it. Possible candidates are: >=20 > - into core library to make it available everywhere > - as Inner Class of DateTimeHandler as this is the only place where it is > needed > - into SmartConfig to make it available everywhere SmartConfig is used >=20 > Suggestions? >=20 >=20 > 2007/11/6, svetrini <st...@gm...>: >> >> I found a nice lib to manage java time and date in the opensource >> comunity. >> This is JODA ( http://joda-time.sourceforge.net/ ) >> I think it is usefuller than standard JDK class. >> I tried to use it in Some example Handler inside the auth method. >> exactly i used Period and Inteval to manage Time interval during which a= n >> user is allowed to execute a login. >> >> Maybe an entire lib is too much, to use only this feature... >> >> What do you think about? >> -- >> View this message in context: >> http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13614454 >> Sent from the SmartWeb Developers mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------= - >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> smartweb-devel mailing list >> sma...@li... >> https://lists.sourceforge.net/lists/listinfo/smartweb-devel >> >=20 > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel >=20 >=20 --=20 View this message in context: http://www.nabble.com/Time...-JODA-tf4760551s= 17546.html#a13658472 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |
From: Stefano V <st...@gm...> - 2007-11-08 13:52:38
|
Put it in the core! :-) I think it's a more logic solution. Now we can also externalize the EmailVerifierRegistrationHandler - parseParametricText method ( and its dependencies) in an other utility class... What do you think? good work! 2007/11/8, Roberto Lo Giacco <rlo...@sm...>: > > Hurr=E0! i finally had some time to spend on programming (many months > have passed since my last execution of the Eclipse environment) and > I've produced a simple class which can solve our DateTimeHandler > problem in a very easy way using CRON syntax (some examples here > http://www.adminschoice.com/docs/crontab.htm#Example). > > The class exposes one constructor accepting a cron-like String as > parameter and an additional (and overloaded) check method which > compares the pattern to a Date or Calendar and returns true or false > depending if the date/time matches the pattern. > > I've tested it and it works well but now we must decide where to place > it. Possible candidates are: > > - into core library to make it available everywhere > - as Inner Class of DateTimeHandler as this is the only place where it is > needed > - into SmartConfig to make it available everywhere SmartConfig is used > > Suggestions? > > > 2007/11/6, svetrini <st...@gm...>: > > > > I found a nice lib to manage java time and date in the opensource > comunity. > > This is JODA ( http://joda-time.sourceforge.net/ ) > > I think it is usefuller than standard JDK class. > > I tried to use it in Some example Handler inside the auth method. > > exactly i used Period and Inteval to manage Time interval during which > an > > user is allowed to execute a login. > > > > Maybe an entire lib is too much, to use only this feature... > > > > What do you think about? > > -- > > View this message in context: > http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13614454 > > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > smartweb-devel mailing list > > sma...@li... > > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Roberto Lo G. <rlo...@sm...> - 2007-11-08 15:29:26
|
I'm really tempted to provide such features through the SmartConfig library as they are need in many places and, in a certain way, they are related to applications configuration. 2007/11/8, Stefano V <st...@gm...>: > Put it in the core! > :-) > > I think it's a more logic solution. > Now we can also externalize the > EmailVerifierRegistrationHandler - parseParametricText > method ( and its dependencies) in an other utility class... What do you > think? > > good work! > > 2007/11/8, Roberto Lo Giacco <rlo...@sm...>: > > > > Hurr=E0! i finally had some time to spend on programming (many months > > have passed since my last execution of the Eclipse environment) and > > I've produced a simple class which can solve our DateTimeHandler > > problem in a very easy way using CRON syntax (some examples here > > http://www.adminschoice.com/docs/crontab.htm#Example). > > > > The class exposes one constructor accepting a cron-like String as > > parameter and an additional (and overloaded) check method which > > compares the pattern to a Date or Calendar and returns true or false > > depending if the date/time matches the pattern. > > > > I've tested it and it works well but now we must decide where to place > > it. Possible candidates are: > > > > - into core library to make it available everywhere > > - as Inner Class of DateTimeHandler as this is the only place where it = is > needed > > - into SmartConfig to make it available everywhere SmartConfig is used > > > > Suggestions? > > > > > > 2007/11/6, svetrini <st...@gm...>: > > > > > > I found a nice lib to manage java time and date in the opensource > comunity. > > > This is JODA ( http://joda-time.sourceforge.net/ ) > > > I think it is usefuller than standard JDK class. > > > I tried to use it in Some example Handler inside the auth method. > > > exactly i used Period and Inteval to manage Time interval during whic= h > an > > > user is allowed to execute a login. > > > > > > Maybe an entire lib is too much, to use only this feature... > > > > > > What do you think about? > > > -- > > > View this message in context: > http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13614454 > > > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a browse= r. > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > _______________________________________________ > > > smartweb-devel mailing list > > > sma...@li... > > > > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > smartweb-devel mailing list > > sma...@li... > > > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > |
From: Giuseppe C. <gco...@gm...> - 2007-11-08 23:02:17
|
Hi Stefano ... I began in earnest to use the form smartweb.auth in one of my application and I wanted you to know that I believe the signing net.smartlab.web.auth.User.get () might be more understandable in another way. For example User.getCurrent () What do you think about it? I'm waiting for your answer.. 2007/11/6, svetrini <st...@gm...>: > > > I found a nice lib to manage java time and date in the opensource > comunity. > This is JODA ( http://joda-time.sourceforge.net/ ) > I think it is usefuller than standard JDK class. > I tried to use it in Some example Handler inside the auth method. > exactly i used Period and Inteval to manage Time interval during which an > user is allowed to execute a login. > > Maybe an entire lib is too much, to use only this feature... > > What do you think about? > -- > View this message in context: > http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13614454 > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |
From: Roberto Lo G. <rlo...@us...> - 2007-11-09 11:13:06
|
I think this question is a duplicate of the other one you correctly posted with another subject so I suggest to ignore this one. Pino Contartese wrote: > > Hi Stefano ... I began in earnest to use the form smartweb.auth in one of > my > application and I wanted you to know that I believe the signing > net.smartlab.web.auth.User.get () might be more understandable in another > way. For example User.getCurrent () > What do you think about it? > I'm waiting for your answer.. > > 2007/11/6, svetrini <st...@gm...>: >> >> >> I found a nice lib to manage java time and date in the opensource >> comunity. >> This is JODA ( http://joda-time.sourceforge.net/ ) >> I think it is usefuller than standard JDK class. >> I tried to use it in Some example Handler inside the auth method. >> exactly i used Period and Inteval to manage Time interval during which an >> user is allowed to execute a login. >> >> Maybe an entire lib is too much, to use only this feature... >> >> What do you think about? >> -- >> View this message in context: >> http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13614454 >> Sent from the SmartWeb Developers mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> smartweb-devel mailing list >> sma...@li... >> https://lists.sourceforge.net/lists/listinfo/smartweb-devel >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > > -- View this message in context: http://www.nabble.com/Time...-JODA-tf4760551s17546.html#a13665064 Sent from the SmartWeb Developers mailing list archive at Nabble.com. |