Set Time interval

Hi all
I need a help here..am doing an application in jsp..i got struck in a position where i have not done that before
There are multiple users in my application..for each user the time allotement is 9am to 4pm...after 4 it should automatically logout and the admin can increase the time interval say upto 5..so that he can work til 5pm...
how can i do this...while logging also it should check the time

Well this calls in for adoption of a new solution stratergy.
If i were i'd start with the below things.
1).In the database i'd define a table which would have colums like authKey,userId,logoutTime & createDate
2).Would not set any value for session time out value.
3).Now you'd have a admin interface from where you can change logoutTime parameter to something which is higher of what was allocated by default.
4).Now,i'd design the login strategies using respective database entity / table i have defined as above.(How do you do that should be entierly on the way you have your requirements)
I believe the above points are good enough for you start designing a login stratergy yourself.If you still have issues within it i strongly believe you should look towdars someone who can give you Consulting Solutions in terms implementing design.Which most of the people can do that but not @free of cost.

Similar Messages

  • Set Time Interval with custom fields in generic list with view(SPViewCollection.SPViewType.Calendar)

    I need to set time interval range with custom date fields in sharepoint view SPViewCollection.SPViewType.Calendar. How to do that?
    My code is this:
    System.Collections.Specialized.StringCollection viewFields = new System.Collections.Specialized.StringCollection();
    viewFields.Add("FechaInicio");
    viewFields.Add("FechaFin");
    string query = @"<Query>
    <Where>
    <DateRangesOverlap>
    <FieldRef Name=""FechaInicio"" />
    <FieldRef Name=""FechaFin"" />
    <FieldRef Name=""RecurrenceID"" />
    <Value Type=""DateTime"">
    <Week />
    </Value>
    </DateRangesOverlap>
    </Where>
    </Query>";
    SPView newView = reserva.Views.Add("CalendarView", viewFields, query, 0, true, true, SPViewCollection.SPViewType.Calendar, false);
    "FechaInicio" and "FechaFinal" ara datetime fields in my generic list.
    Thanks.

    Hi,
    According to your post, my understanding is that you want to see the calendar view begin and end time for the time interval.
    We can use the SharePoint Manager to view the internal name for the begin and end time for the time interval.
    Open SharePoint Manager 2013->click your site->click
    Lists->select your list name->click Views->select your calendar view name->click the
    Schema Xml to check the internal name for the time interval begin and end.
    We can download the SharePoint Manager in here:
    http://spm.codeplex.com/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Process Chain - triggering sub chains at set time interval

    Hi all,
    Scenario:
    I want to setup multiple process chains during the day (hourly intervals).  I would like to have a main chain which would then trigger subsequent chains.  the problem is that when i tried to setup the sub-chains to run at say, 10am. 11am etc, they don't fire off at those specified times (because they are part of the meta chain?).  I currently have the individual chains running independently (i.e. first chain at 10am, 2nd chain at 11am...) - but i need to be able to stop the 2nd chain from running if there is a problem on the 1st chain (which is why i want to run them as part of a Meta chain).
    Hope this makes sense - and any help/assistance is much appreciated!  Thanks
    M.

    Do you know how long 1st PC will run ? will it finish before 11 am ?
    If so,  try following proess
    Add Abap Program process(under General Services) to the end of the 1st PC  and use program BTC_EVENT_RAISE and Enter Program variant = event  and activate the PC
    Now go to 2nd PC and schedule at 11 am periodically
    Add another step Interrupt Process (u can find under General Services ) just after start process and enter event and schedule the pc
    When 1st Pc completes sucessfully it will activate the event to trigger 2nd PC , though the event is activated the 2nd pc will start at 11am
    Hope it's clear!

  • How to set the interval time in the   JFormattedTextField? Pls Contribute..

    Hi Frienz,
    Hi have a following code in which i want set the interval time for the TextField by 15 min
    So how it is possible please tell me out.
    DateFormatter frmtr = new DateFormatter();
                   SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
                   frmtr.setFormat(sdf);
                   frmtr.setAllowsInvalid(false);
                   DefaultFormatterFactory factory = new DefaultFormatterFactory(frmtr, frmtr, frmtr);
                   fmtToTime.setFormatterFactory(factory);

    AFAIK there is no easy (pure java) way: either you exec something (depending on your paltform) or use native code. Appropriate privileges will be necessary.

  • Is it possible to set delivery retry time-interval between messages?

    Hello!
              I use Wls 8.1.5 and would love to be able to set delivery retry time-interval between message.
              The complete situtaion looks like this.
              We got one queue (queue_A) that retrives alot of messages.
              At queue_A we got a BMT-MDB that consumes all messages (one by one).
              The BMT-MDB is supposed to forward the messages to an other queue (queue_B). (We also do some other things as well)
              But if we can not forward the message to queue_B because of some Exception is thrown, the transaction is Rolledback exactly as we want.
              But when this happens (for eg the server where queue_b resides is down) our BMT-MDB keeps trying to post the message like an enegizer-bunny. It would feel better if it waited for some seconds before it try again.
              We have tried to set play around with RedeliveryDelayOverride="5000" at the queue_B. But if we set to anything bigger then RedeliveryDelayOverride="-1", then other messages is passing throug and also put into "pending". This ended up in out of memory when the load was big.
              So what we would love to be able is to have all messages in a FIFO-row at the queue_A. And if queue_B is out of order then keep on trying consume the firts messagesd for every 5 sec.
              So if any one know if and how to configure a Wls 8.1.5 please let us know!
              Best regards
              Fredrik

    Hello Again Fredrik!
              Later versions have several more options, but here are some that might work on 8.1:
              (A) A good bit of coding: Write code that undeploys the MDB on certain failures, and redeploys it sometime later.
              (B) A small amount of coding: On a failure, simply force a tx rollback, then put a Thread.currentThread.sleep() in the MDB application itself. (Just make sure the MDB is setup with a dedicated thread pool to avoid using up default threads.)
              (C) Requires no coding: Have the MDB forward the message to a local destination rather than the remote destination (so the forward always succeeds), then use the messaging bridge to forward the message onward. The messaging bridge automatically does a periodic retry on failure, and doesn't need to use redelivery delays.
              (D) Requires no coding: Raise a support case with BEA - I personally consider the fact that redelivery delay messages fail to page out likely indicates that there's a bug in 8.1. (Upgrade to 9.x quite likely doesn't have this problem.)
              Hope this helps,
              Tom

  • Setting the time interval for LEDs

    hello I am new to labview, I am trying to do something simple, but made it a lot more complicated than it needs to be. I need turn on an LED and turn it off, but in random intervals, such as turn it on for 1 second, then turn it off for 2 seconds, then turn it on for 2 seconds, then turn it off for one second, so no real pattern. I need to do this to the LED for a minute, I tried a really convoluted method with a time target and case strictures, but I can only program that to activate in specific intervals, I am not able to set them. Any help will be greatly appreciated. Here is a VI of my convoluted method that didn't work.
    Attachments:
    LED time interval test.vi ‏43 KB

    You have not tried to implement altenbach's suggestion of autoindexing an array of delays.
    The Reshape Array needs to be outside the for loop. You want to reshape the 3x4 2D array into a 12 element 1D array.  What you are doing is reshaping a 3 element 1D array into a 12 element 1D array. This results in the last nine elements always = zero.
    The Arduino expects an 8-bit unsigned integer. So the data in the arrays should also be U8.
    If the index to Replace Array Subset is negative or greater than the maximum index in the 2D array, it does nothing.  I am not sure exactly what you are trying to do with the array index manipulations so I did not try to fix it.  I added some indicators to show what is happening.
    When using autoindexing on a for loop, do not also wire to N.
    The Arduino Rseource wires and the error wires should be connected through the loop boundaries with shift registers, not tunnels, particularly not autoindexing tunnels.
    I do not have an Arduino, so I used Diagram Disable structures to disable the Arduino VIs for testing without getting errors.
    You seem to be allergic to straight wires. Actually the auto wiring tool is probably on and IT is allergic to straight wires.  I find it easier to understand a block diagram where the wires do not have excessive bends.
    Lynn
    Attachments:
    Project 1 with arduino.2.vi ‏23 KB

  • How can you set the ctxsvr time interval ?

    I would like to know how can i set the time
    inteval between each update of the Intermadia
    indexes.
    Thanks.

    stop and restart ctxsrv on specified intervals.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Lombar vincent ([email protected]):
    I'd like to use the ctxsrv utility, because i want automatic index rebuild.
    But Is it possible to set the time interval
    between each update?<HR></BLOCKQUOTE>
    null

  • Set the time interval when BPM read e-mail to get offline adobe forms

    Hi masters
    Do you know where I can set the time interval when the BPM read the e-mail account to get the off-line adobe forms received ? I think it is 10 minutes but I need to change to 1 minute.

    there is a config attribute

  • How to set olite auto sync time interval

    Hi all,
    How to set the auto sync time interval for a publication item, publication or to a user.
    Can anyone tell me, which one is best among setting the auto syncing and syncing with the code.
    I am searching for the code to sync in java only upload or download and both. I tried with some code but it is giving me oracle.lite.mSync.SyncException: AES encryption error.
    Thanks in advance,
    Khadaree

    Bonjour,
    Même demande ;-)

  • How to set the time interval for data obtain through labview via write measureme

    I'm need to programme to obtain data from oscilloscope. Currently my laptop able to communicate with Agilent DSO6014A oscilloscope via USB. I'm include the write measurement in mty program and save the data in .lvm file. But the time interval in the data are too small which is in micron seconds. Is there a way to modify the interval values?

    The attached file is the capture of my diagram. Thanks.
    Attachments:
    Capture.PNG ‏56 KB

  • How do I set the time interval that my email is checked?

    I was test-driving "SpamSweep" on my iMac 24 and
    chose to ignore it
    rather than buy it.
    While "SS" was on, I was notified of email every
    minute.
    After I turned it off, I no longer received email
    automatically.
    My "HELP" section and my Mac book both said to
    "choose MAIL---
    Preferences,
    click General, and choose a time interval from the
    'check for new
    mail' pop-up menu."
    Nope.
    I can go to MAIL and Preferences, but there is
    nothing that says
    "General".
    If I click on the bottom left corner "+" sign,
    GENERAL comes up, but
    will only allow me to add an account.
    HOW do I find the location that allows me to choose
    how often my mail
    is checked (without being dependent upon SpamSweep)?
    On my laptop, it comes up w/ Mail, Preferences,
    General...and allows
    me to choose the "check email" time. It also shows a
    whole tool bar of
    fun items.
    But on my big desktop, the only things that show up
    are when I click
    MAIL, Preferences are "Account Information, Mailbox
    Behaviors, and
    Advanced".

    Hello, and welcome to the Discussions.
    It appears that your Toolbar has become hidden. Click on the small, white, pill-shaped button at the right top of the window that results from invoking Preferences.
    Also can be correct in the pull-down menu under View -- Show Toolbar.
    Ernie

  • What is a fast way to drive a HP53132A counter to do real time, "time interval" measurements?

    Right now I run my system on a simple PCI GPIB bus. The fastest I can the time interval measurement is at 100 Hz. However, the has 350 ns timing and the PC running the program is much faster than this. So I should be able to achieve a rate of at least 10 kHz (depending on the counter of course). Do you have any suggestions for the way to set up the counter for the fastest measurement?

    I think that you're running into a limitation of the counter itself. My manual for the 53131 says that it can can do a maximum of 200 GPIB measurements per second. I think that the 53132 is similar except for extended resolution. What you might try is the STATS mode where you command the counter to take a number of measurements and then calculate the statistic. It is generally fster to let an instrument do a series of measurements and accumulate the results than to try and transfer one measurement at a time over the GPIB bus. VXI, PCI, PXI instruments can do things a lot faster so that might be an option as well. You should also be aware that your rate of 10 kHz requires timing resolution greater than what is in a PC (a PC has 1 msec resolution at best a
    nd it's not deterministic at all) so if you need something accurate, you'll have to use external hardware timing.

  • Capturing data of the previous time interval with Oracle Stream(HotLog)

    I read from 10g Oracle manual that Oracle Steam can capture data within specified time interval with begin_data and end_data options.
    For example :
    BEGIN
    DBMS_CDC_PUBLISH.CREATE_CHANGE_SET(
    change_set_name => 'set_cns',
    description => 'set_cns...',
    change_source_name => 'HOTLOG_SOURCE',
    stop_on_ddl => 'y',
    begin_date => sysdate,
    end_date => sysdate + 1);
    END;
    However if I set begin_date to previous time from now, Oracle doesn't caputre data anymore in this case.(HotLog method)
    (I set begin_date => sysdate - 1/24
    end_date => sysdate + 1/24.)
    Does anybody know to capture the previous time interval with Oracle Stream?

    Change C2 to:
    cursor c2(passing_date IN date) IS
      SELECT MONITOR_ID, SAMPLE_ID,
                   COLL_TIME, DEW_POINT
        FROM ARCHIVE_DATA
        WHERE COLL_TIME < passing_date
        ORDER BY COLL_TIME desc;And rather than populating a table with the three records, you could just select the three records using: where COLL_TIME between Prev3_time and Prev1_time

  • XI3.0/SP19: Deadline Branch - Set time period dynamically

    Hi All,
    We need to receive the deadline period from an external system
    Is it possible to set the time period from an external value?
    Thanks,
    Ofer

    We had a similar request in a project of ours, and managed to make it work with the following workaround.
    Use a Fork Step with 2 branchs and in "necessary finished branches" option, set it to 1.
    In 1 branch, use the steps you normally would use in the block w/ deadline main branch.
    In the other branch, use a transformation step with a particular mapping.
    This mapping should be from the message you receive in "start process" receive step to any other target (you could create a dummy target message type or use the same message type of source message). In the message mapping, supposing you use target message = source message, just map all fields into the respective targets. In particular, in the field with the value you want to set to the deadline, use a UDF between the source and the target. Supposing the waiting interval is in seconds, use the UDF as:
    int delay = Integer.parseInt(a);
    try {
      Thread.sleep(delay*1000);
    } catch (InterruptedException e) {
      throw new RuntimeException("Error in waiting function.");
    This way you can have any time interval you want (including intervals shorter than 1 minute).
    Regards,
    Henrique.

  • Time Interval isn't saved

    Hello,
    The Time-interval on our BW system is set to an upper limit of year 2012. Since this is causing problems, I need to change this value to 9999. With transaction RSRHIERARCHYVIRT, on "General Settings"-tab, I enter 9999 and hit save. No error is generated, but it isn't saved: renewing the transaction shows 2012.
    SU53 doesn't show any authorisation problems.
    SAPNote 930521 looks like the problem, but our support pack is higher. The Support Package of the BW system SAPKW70018 and it was verified that the suggested correction is implemented. 
    The [Forum Thread|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=930521] suggested that the value should be changed in ECC and transferred to BW. But again: the same problem arises in ECC (it doesn't save, but no error is generated and no authorisation problems occur).
    But on a different BW system I can change the value in the RSRHIERARCHYVIRT. This system is on Support Package SAPKW70013.
    Any clues to the solution?

    See if [SAP Note 1224801|https://service.sap.com/sap/support/notes/1224801] is related to your problem

Maybe you are looking for