viewbarcode.com

Building My Social Office in .NET Print Code 39 Full ASCII in .NET Building My Social Office




How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
Building My Social Office generate, create barcode code39 none on .net projects VS.NET Cool! You could deploy the .net framework 39 barcode se portlets as well. Simply drop the file build.

xml in the folder $PLUGINS_SDK_HOME/portlets/so-portlet into the Ant view. Then just double-click on the deploy target under portlet of the Ant view. The social portlets activities, invite-member, members, and profiles will be compiled and deployed.

Further, you could manage activities, members, and profiles, and invite members to join web sites. By the way, you can also check out the sample so-portlet portlet at svn://svn.liferay.

com/repos/public/plugins/trunk/ portlets/so-portlet.. W a "s appening We have developed the soci visual .net 3 of 9 al portlets: activities, invite-member, members, and profiles. Using these portlets, we could manage activities, members, and profiles, and invite members to join web sites.

Let"s see what"s happening on these Social Office portlets.. Expe iencing s cial m dels As shown in the following Code 39 Full ASCII for .NET screenshot, three models are provided for My Social Office. They are socialrequest, socialactivity, and socialrelation.

The socialrequest model represents users" request whether they want to join a web site or leave it. It is made up of uuid_, request Id, groupId, companyId, userId, classNameId, classPK, type_, and so on. The socialactivity model represents the users" activities.

It consists of activityId, groupId, companyId, userId, classNameId, classPK, type_, and so on. Moreover, the socialrelation model represents relationship among users. It is made up of uuid_, relationId, companyId, userId1, userId2, type_, and so on.

. [ 402 ]. This material is copyright bar code 39 for .NET and is licensed for the sole use by Richard Ostheimer on 20th June 2009 2205 hilda ave., , missoula, , 59801.

10 . Expe iencing s cial se vices Based on the above social models, the portal provides a set of social services, for example SocialActivityLocalServiceUtil, SocialActivityInterpreterLocalServiceUtil, SocialRelationLocalServiceUtil, and SocialRequestLocalServiceUtil. All these services are packaged as portal-service.jar.

You can find detailed information at the com.liferay.portlet.

social.service package in the / portal/portal-service/src folder. The SocialActivityLocalServiceUtil service specifies a list of methods, for example addActivity, deleteActivity, updatesocialactivity, getsocialactivities, getUserGroupsActivities, getRelationActivities, getUserActivities, and so on.

For example, to add a social activity, you have the following interface:. public static com.liferay. USS Code 39 for .

NET portlet.social.model.

SocialActivity addActivity( long userId, long groupId, java.lang.String className, long classPK, int type, java.

lang.String extraData, long receiverUserId). The code above shows the p arameters for the addActivity method. The type parameter identifies the type of activity; the extraData parameter is a string that can contain any additional info; receiverUserId is the user who has the activity. To delete social activities, you have the following interface:.

public static void deleteA Code 3 of 9 for .NET ctivities(long classNameId, long classPK). The code above shows the p arameters for the deleteActivities method. The classNameId parameter identifies class name ID, for example Wiki, blogs, message boards, calendar, and so on. The classPK parameter identifies the class primary key.

Further, in $PLUGINS_SDK_HOME/portlets/so-portlet/docroot/jsp/ activities/view.jsp, we have used these methods as follows:. have used these methods as .net framework barcode 3 of 9 follows: /* ignore details */ List<SocialActivity> activities = null; if (tabs1.equals("my-sites")) { activities = SocialActivityLocalServiceUtil.

getUserGroupsActivities(user.getUserId(), 0, SearchContainer.DEFAULT_DELTA); } else if (tabs1.

equals("my-friends")) { activities = SocialActivityLocalServiceUtil. getRelationActivities(user.getUserId(), SocialRelationConstants.

TYPE_BI_FRIEND, 0, SearchContainer.DEFAULT_DELTA); } [ 403 ]. This material is copyright and is licensed for the sole use by Richard Ostheimer on 20th June 2009 2205 hilda ave., , missoula, , 59801. Building My Social Office barcode code39 for .NET else { activities = SocialActivityLocalServiceUtil. getUserActivities(user.

getUserId(), 0, SearchContainer.DEFAULT_DELTA); } <liferay-ui:social-activities activities="<%= activities %>" feedEnabled="<%= true %>" feedTitle="<%= LanguageUtil.format(pageContext, "subscribe-to-theseactivities", user.

getFirstName()) %>" feedLink="<%= rssURL.toString() %>" feedLinkMessage="<%= LanguageUtil.format(pageContext, "subscribe-tothese-activities", user.

getFirstName()) %>" /> /* ignore details */ feedEnabled="<%= true %>" feedTitle="<%= LanguageUtil. format(pageContext, "subscribe-to-these-activities", user. getFirstName()) %>" feedLink="<%= rssURL.

toString() %>" feedLinkMessage="<%= LanguageUtil.format(pageContext, "subscribe-tothese-activities", user.getFirstName()) %>" /> /* ignore details */.

The code above shows the u sage of the SocialActivityLocalServiceUtil service. Three methods of this service are in use: getUserGroupsActivities, getRelationActivities, and getUserActivities. Meanwhile, it shows activities via UI tag lib liferay-ui:social-activities.

Of course, you can find this UI tag lib definition in /portal/portal-web/docroot/WEB-INF/tld/liferay-ui.tld and the page specification in /portal/portal-web/docroot/html/taglib/ui/ social_activities/page.jsp.

The following is a sample code to get and display activities in the Activities portlet from /portal/portal-web/docroot/html/taglib/ui/social_activities/ page.jsp:. /* ignore details */ List& VS .NET Code 3 of 9 lt;SocialActivity> activities = (List<SocialActivity>) request.getAttribute("liferayui:social-activities:activities"); /* ignore details */ if (activities == null) { activities = SocialActivityLocalServiceUtil.

getActivities( 0, className, classPK, QueryUtil.ALL_POS, QueryUtil.ALL_POS); } /* ignore details */ for (SocialActivity activity : activities) { SocialActivityFeedEntry activityFeedEntry = SocialActivity InterpreterLocalServiceUtil.

interpret( activity, themeDisplay); /* ignore details */ [ 404 ]. This material is copyright and is licensed for the sole use by Richard Ostheimer on 20th June 2009 2205 hilda ave., , missoula, , 59801.
Copyright © viewbarcode.com . All rights reserved.