I would like to implement an appointment system in Liferay Calendar.
In Liferay Calendar if two users are logged in and one of them books a particular time slot, then the other user should not be able to book the same slot. In other words that particular slot should be disabled.
Related
I have a google account with my company domain. I received super user status so that I can access all the calendars in the workspace. I registered my app and followed oAuth2.0 authorization steps with these scopes -
https://www.googleapis.com/auth/calendar.events
https://www.googleapis.com/auth/admin.directory.resource.calendar
https://www.googleapis.com/auth/calendar
Now I am able to read all the events and subscribe to the web_hook. My doubt is twofold -
For the same user, when I fetch the calendar list using CalendarList.list method (Calendar A), it is different from the list I get when I hit calendar list API from the admin directory side (Calendar B).
Is it because there are 2 sets of calendars being maintained for the user side and one from the admin side (that is domain wide)? If so, how can I modify or create an event in calendar B? (it is pretty simple from the UI side, I open my calendar and add that particular room to the meeting).
If there is a meeting (event) planned and I need to release the meeting room (i.e. the calendar itself because the rooms are coming as calendar resources themselves) from the meeting, which API should I hit?
Actually I need to simulate real life scenario where I have a meeting scheduled in a meeting room but then I want to keep the meeting but not the room, so that the room is no longer occupied and others might use it. It is during implementation of this flow that I had above 2 doubts.
Please help me out here as I am completely new to programming and it has been days since I started banging my head over it.
To answer your concerns, please see below:
Yes, that is correct. The calendars mentioned(user and admin) are completely different calendars. As for modification in calendar B, as long as you have the calendarId, you can use Events: insert .
The room should appear in the event resources and you can update it via Events: update.
I'm creating an application where there will be a lot of groups in. Every group should have an own calendar.
I was thinking of using google calendar API for a specified admin user that creates a google-calendar/google-calendar-group for all the groups in my application.
Now I'm wondering which way should be the best way to do this?
Create only one calendar but many groups to the calendar
depending on the number of groups I have in the application.
Create a new calendar for every group that I have in my application
Something else?
Is this even possible?
Before you begin, if you don’t want to share the calendar with everyone in your organization, create a group that contains only the people you want to share with.
You can create an organization and sign in to G Suite administrator. Then create multiple groups using either the Groups control in the Admin console, or the Google Groups for Business service.
Here's the steps to create and share a group calendar from G Suite Admin Help:
Sign in with your G Suite administrator account and open Google Calendar.
On the left, above My Calendars, click Add and then New calendar.
Add the name of the calendar (for example, All Hands Meetings), a description, and time zone.
Click Create Calendar.
On the left, click the name of your new calendar.
If you want to share the calendar with everyone in your organization, under Access permissions:
Check the Make available for your domain box.
In the Permissions box, click the Down arrow and choose an option. For details, see the permission
settings.
If you want to share the calendar with a specific group of people, under Share with specific people:
Click Add People.
Add the email address of the group you want to share the calendar with. You can also add individual email addresses.
In the Permissions box, click the Down arrow and choose an option. For details, see the permission
settings.
Click Send.
Important: The settings under Access permissions override the Share with specific people settings.
Users you shared the calendar with get an email message letting them know about the calendar. The calendar is automatically added to their Other calendars list.
I'm working on a Proof of Concept. I would like to have be the homepage be g.co/hangouts in a conference room where it shows all the meeting in that room.
I think to do this I would either have to sign into google with the resource's account info OR have a user account named "UserRoom1" and whenever someone, using their own account schedules the resource "Room1," "UserRoom1" is invited to that meeting.
any way this can be accomplished? I want to make this as invisible/user-proof as possible so asking users to remember to simply invite "UserRoom1" to all of the meetings in "Room1" is significantly less ideal.
I wanted to do the exact same thing, and I think it is only possible if you buy one of Google's Chromebox for Meetings products, which costs a minimum $1K, and then requires a $250/yr subscription after the first year. This page shows how to associate a Chromebox for Meetings with a calendar, which seems to be the functionality we are missing. Ultimately I think you have to do the "User as Resource" setup, so "UserRoom1" shows up in the list as a user (rather than a resource). Slightly janky but it mostly gets the job done.
We also have a few common hangouts that I have bookmarks set up for on the conference room computer's Chrome bookmarks bar, so we're not totally bound to the meeting invite hangouts.
I am developing an mobile app where I present products (items) from different stores just like ebay.com. User can select product, can add to cart and then finally can make payment via paypal.
I have created an Paypal business account on sandbox. Currently all payment made by users are coming to this business account I mentioned in my code. But my requirement is different. I want that payment should go to store's (product owner's) account.
So I made changes so that whenever i make call to paypal I chnaged business account email to store owner email address and payment done successfully. :) Payment posted to store owner business.
I made changes only in paypal.recipient email address but still paypal object is created by my paypal application ID. This is what I am worried about. Does it will work on production mode? I really doubt that.
Please help me guys!!!
What API or service are you using to do this? Are you just using Website Payments Standard, Exprses Checkout, or one of the other API? You mentiioned application id, are you using Adaptive Payments? You could use Adative Payments to do what you are wanting to, if you are not already doing this. This would allow you to process payments and split it between different accounts. In your business model, it would allow you to split the payments between different store owners if the buyers checkout contained items from different merchants/stores.
We currently develop a portal in asp.net mvc2 with fluent nhibernate on amazon cloud servers which have lots of user which buying or selling shares. Also they comment every where and make other activities.
Portal is actually behave like multiple portals which we called Community. Our basic statistics based on users activity (buy,sell, comment etc). We have a basic structure called TopUsers. Which we show top user home page for all topics for loggedin community. On topic page we show top users for current topic etc.
Because of a lot of calculation I want to make a top users table. I am waiting for recommentations for this?
Your approach (separate table that gets periodically repopulated) is correct, except for the interval: your users will not be fanatically clicking on your site every minute to see updated stats, so after a certain threshold of data there isn't much point in refreshing your top users this often. Doing it once per day will usually be good enough.