Home > Feature Discussion > Integration API: create user / create forum / create thread / auto-login user
login Login
  
  
Forum Software Features
Forum Software Download
Support
Top 10 List
Developers
License
Privacy






We are a small company specializing in Java applications. This forum software is the fruit of labor of many developers from Yasna Inc. and including those outside of Yasna Inc.
Although this software is maintained by developers from Yasna Inc., new feature development and enhancement requests are only done based on external requests. We maintain this project on volunteer basis and take no responsibility for its fitness of use. Please read our license agreement.
This forum software is 100% pure Java.



Links To Visit
Pick Your Own
Free Wedding Website
Farm
Classified Software
free home listing
CISSP
Wedding Flowers



 

 

Click to view all topics in this forum View Topics    Click to post a new message in this forum Post New Message    Click to reply to this message Reply    Click to search for messages in this forum Search This Forum     

There are 5 replies to this message. This thread was viewed 25148.

Author Topic: Integration API: create user / create forum / create thread / auto-login user
posted by: bogachkov (  bogachkov )
67.84.53.34
Last logged in:Thu, Mar 9 at 08:41:29 EST
Click to reply to this message
posted Friday, Feb 24 at 12:52 PM
Fri, Feb 24 at 12:52:30 EST
Integration API: create user / create forum / create thread / auto-login user
Hello,

I am currently working on the forum section of a site I'm helping to develop. Currently, we use phpBB - however the problem that I need to solve is that there doesn't seem to be an easy way to make it talk to our java-based application. Specifically, this is what we need to be able to do:

1. When a user creates a profile on our site - also programmatically create a matching profile in your forum

2. When a user logs into our site - also programmatically log the user into your forum

3. When we create certain articles in our site, we want to programmatically create threads to match those articles and also programmatically get 'handles' to these newly created threads so that we can easily link to them

4. If a user's status changes in our system (suspended, inactive, deleted, etc) - we want to also be able to programmatically change that user's status in your forum. Also, if we assign certain admin privileges to a user in our system - we'd like to also assign similar
admin privileges in your system programmatically.

5. We want to have a method for creating some forums in a 'general' discussion forums area, and some forums that can only be reached if a link is provided (this is not crucial though)

In my view - either a Java API (more preferable) or web-service API would work for this. After going through some of the threads, I got the feeling that these things are possible in your forum project - but I couldn't find a clear answer for what I was looking for.. Is there currently a way to do these things with your forum project?

Thank you for your time & help
- Gary Bogachkov
posted by: aaflatooni(Aflatoon)
Toronto,Canada
Male
70.48.64.211
http://www.yasna.com
Last logged in:Thu, Mar 9 at 04:09:51 EST
Click to reply to this message
posted Friday, Feb 24 at 3:02 PM
Fri, Feb 24 at 03:02:59 EST
Re: Integration API: create user / create forum / create thread / auto-login user
I will try to answer some of your questions and hopefully get you to use Yazd instead ;)

1- You can override the user table in Yazd and get it to point to a different table. This is done through the properties file and all you need to do is edit it and change the name of the table and columns that it uses.

2- This can be done in different ways. I am not sure of your site design, but you should look at the Authorization class or extend it.

3- For doing this you would need to use the library calls and simply create the Thread through Java calls.
Sidenote: I might be willing to work with you on this feature.

4- Considering that the login information can be shared with Yazd. This shouldn't be a problem. Also keep in mind that a problem that you would have if you had an independent table is that if the information changes (password change) it also would have to change in the secondary table. But since Yazd allows you to override the default table and get it to point to another table you wouldn't have this problem.
Yazd stores all the forum supporting data for a user in the yazdUserProp table which is a property table for the users.

5- I am not sure about your question, but you can restrict the view and provide the link manually.

Note that if you are using Java technologies, then you can benefit from the Yazd library and the library methods it provides.


All the best
Aflatoon
posted by: bogachkovbogachkov)
67.84.53.34
Last logged in:Thu, Mar 9 at 08:41:29 EST
Click to reply to this message
posted Friday, Feb 24 at 3:27 PM
Fri, Feb 24 at 03:27:14 EST
Re: Integration API: create user / create forum / create thread / auto-login user
>1.
I see. Is there any documentation for how one would go about doing this? Where can I find the properties file in question?

>2.
I see. Where can I find documentation for this class?

>3.
I assume these calls are not yet implemented in
a 'api friendly' way - correct? How much time would you expect is necessary to make outside facing interfaces for this?

>4
Does this mean that I can override the secondary
table as well? How 'system-specific' is the stuff in the secondary table? I see that there's a
yazdUserPerm & yazdUserProp table used for all the permissions & properties. Will I user the library calls mentioned in point 3 in order to work with these tables?

I am using java on my site. Specifically JSP & Servlets with a custom MVC framework. I don't mind installing Yazd as a seperate web-app, although it would be much better if it could be deployed as part of my web-app.

All the best to you too
- Gary
posted by: aaflatooni(Aflatoon)
Toronto,Canada
Male
70.48.64.211
http://www.yasna.com
Last logged in:Thu, Mar 9 at 04:09:51 EST
Click to reply to this message
posted Friday, Feb 24 at 5:16 PM
Fri, Feb 24 at 05:16:27 EST
Re: Integration API: create user / create forum / create thread / auto-login user
1- It is the system.properties file. You just have to edit it and change the table name and the necessary column names.

2- What I meant was, it really depends on the structure of your site. You can do this simply by creating an Authorization Token through a call to the AuthorizationFactory. You can look at login.jsp to see how it is done.

3- This can be done with Yazd as is, but you do need to make changes and you would need to also do some coding. I wanted to integerate a way to use Yazd as a means to post articles with and have people discuss it.

4- You don't need to override the secondary table. You just need to override the user table using system.properties file and point it to a different table. I just wanted to give you some background information on the structure of tables, but you can ignore it.
The secondary table is used to store the information like locale, display e-mail, watch flags etc. that is used for specifically just the forum.

Yazd has a proxy structure. If you are using MVC, you can easily implement the library calls.

Yazd has a library core that implements all the features. The skins (jsp's) simply make calls to the library.

You can use ant to get the javadoc for Yazd. There is a target for it.

Cheers
Aflatoon



posted by: bogachkovbogachkov)
67.84.53.34
Last logged in:Thu, Mar 9 at 08:41:29 EST
Click to reply to this message
posted Friday, Feb 24 at 3:30 PM
Fri, Feb 24 at 03:30:25 EST
Re: Integration API: create user / create forum / create thread / auto-login user
Also, cool looking site (yasna i mean)
posted by: wsx111youeee)
58.62.199.108
Verified by SexStanding.com
Last logged in:Thu, Jun 14 at 02:08:28 EDT
Click to reply to this message
posted Thursday, Jun 14 at 2:25 AM
Thu, Jun 14 at 02:25:24 EDT
Integration API: create user / create forum / create thread / auto-login user
Your life can be enhanced, and your happiness enriched, when you choose to change your perspective.I to [url=http://www.nyasiangirls.com]new york asian escort[/url] on the [url=http://www.nyasiangirls.com]new york asian escorts[/url] chaotic street in the wind to fondly remember happiness, I [url=http://www.nyasiangirls.com]new york escort[/url] was thinking of in the familiar environment yesterday, I was recollecting [url=http://www.nyasiangirls.com]new york escorts[/url] joyfully nearby the vast sea, I was tasting sadly under the sob sky, I smiled in front of the mirrorBegin to build your confidence, and work through problems rather than avoid them. Remember that power is not necessarily control over situations, but the ability to deal with whatever comes your way.




Post New Message

Name
Email
subject
Your Reply
Enter the code
   

Brought to you by:
Farm Visit For Sale By Owner