Source Code Cross Referenced for OrganizationLocalServiceUtil.java in  » Portal » liferay-portal-4.4.2 » com » liferay » portal » service » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » liferay portal 4.4.2 » com.liferay.portal.service 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


0001:        /**
0002:         * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
0003:         *
0004:         * Permission is hereby granted, free of charge, to any person obtaining a copy
0005:         * of this software and associated documentation files (the "Software"), to deal
0006:         * in the Software without restriction, including without limitation the rights
0007:         * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
0008:         * copies of the Software, and to permit persons to whom the Software is
0009:         * furnished to do so, subject to the following conditions:
0010:         *
0011:         * The above copyright notice and this permission notice shall be included in
0012:         * all copies or substantial portions of the Software.
0013:         *
0014:         * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015:         * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016:         * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
0017:         * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0018:         * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
0019:         * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
0020:         * SOFTWARE.
0021:         */package com.liferay.portal.service;
0022:
0023:        /**
0024:         * <a href="OrganizationLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
0025:         *
0026:         * <p>
0027:         * ServiceBuilder generated this class. Modifications in this class will be
0028:         * overwritten the next time is generated.
0029:         * </p>
0030:         *
0031:         * <p>
0032:         * This class provides static methods for the
0033:         * <code>com.liferay.portal.service.OrganizationLocalService</code>
0034:         * bean. The static methods of this class calls the same methods of the bean
0035:         * instance. It's convenient to be able to just write one line to call a method
0036:         * on a bean instead of writing a lookup call and a method call.
0037:         * </p>
0038:         *
0039:         * <p>
0040:         * <code>com.liferay.portal.service.OrganizationLocalServiceFactory</code>
0041:         * is responsible for the lookup of the bean.
0042:         * </p>
0043:         *
0044:         * @author Brian Wing Shun Chan
0045:         *
0046:         * @see com.liferay.portal.service.OrganizationLocalService
0047:         * @see com.liferay.portal.service.OrganizationLocalServiceFactory
0048:         *
0049:         */
0050:        public class OrganizationLocalServiceUtil {
0051:            public static com.liferay.portal.model.Organization addOrganization(
0052:                    com.liferay.portal.model.Organization model)
0053:                    throws com.liferay.portal.SystemException {
0054:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0055:                        .getService();
0056:
0057:                return organizationLocalService.addOrganization(model);
0058:            }
0059:
0060:            public static java.util.List dynamicQuery(
0061:                    com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
0062:                    throws com.liferay.portal.SystemException {
0063:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0064:                        .getService();
0065:
0066:                return organizationLocalService.dynamicQuery(queryInitializer);
0067:            }
0068:
0069:            public static java.util.List dynamicQuery(
0070:                    com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
0071:                    int begin, int end)
0072:                    throws com.liferay.portal.SystemException {
0073:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0074:                        .getService();
0075:
0076:                return organizationLocalService.dynamicQuery(queryInitializer,
0077:                        begin, end);
0078:            }
0079:
0080:            public static com.liferay.portal.model.Organization updateOrganization(
0081:                    com.liferay.portal.model.Organization model)
0082:                    throws com.liferay.portal.SystemException {
0083:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0084:                        .getService();
0085:
0086:                return organizationLocalService.updateOrganization(model);
0087:            }
0088:
0089:            public static com.liferay.portal.service.persistence.AccountPersistence getAccountPersistence() {
0090:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0091:                        .getService();
0092:
0093:                return organizationLocalService.getAccountPersistence();
0094:            }
0095:
0096:            public static void setAccountPersistence(
0097:                    com.liferay.portal.service.persistence.AccountPersistence accountPersistence) {
0098:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0099:                        .getService();
0100:
0101:                organizationLocalService
0102:                        .setAccountPersistence(accountPersistence);
0103:            }
0104:
0105:            public static com.liferay.portal.service.persistence.ActivityTrackerPersistence getActivityTrackerPersistence() {
0106:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0107:                        .getService();
0108:
0109:                return organizationLocalService.getActivityTrackerPersistence();
0110:            }
0111:
0112:            public static void setActivityTrackerPersistence(
0113:                    com.liferay.portal.service.persistence.ActivityTrackerPersistence activityTrackerPersistence) {
0114:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0115:                        .getService();
0116:
0117:                organizationLocalService
0118:                        .setActivityTrackerPersistence(activityTrackerPersistence);
0119:            }
0120:
0121:            public static com.liferay.portal.service.persistence.ActivityTrackerFinder getActivityTrackerFinder() {
0122:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0123:                        .getService();
0124:
0125:                return organizationLocalService.getActivityTrackerFinder();
0126:            }
0127:
0128:            public static void setActivityTrackerFinder(
0129:                    com.liferay.portal.service.persistence.ActivityTrackerFinder activityTrackerFinder) {
0130:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0131:                        .getService();
0132:
0133:                organizationLocalService
0134:                        .setActivityTrackerFinder(activityTrackerFinder);
0135:            }
0136:
0137:            public static com.liferay.portal.service.persistence.AddressPersistence getAddressPersistence() {
0138:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0139:                        .getService();
0140:
0141:                return organizationLocalService.getAddressPersistence();
0142:            }
0143:
0144:            public static void setAddressPersistence(
0145:                    com.liferay.portal.service.persistence.AddressPersistence addressPersistence) {
0146:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0147:                        .getService();
0148:
0149:                organizationLocalService
0150:                        .setAddressPersistence(addressPersistence);
0151:            }
0152:
0153:            public static com.liferay.portal.service.persistence.ClassNamePersistence getClassNamePersistence() {
0154:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0155:                        .getService();
0156:
0157:                return organizationLocalService.getClassNamePersistence();
0158:            }
0159:
0160:            public static void setClassNamePersistence(
0161:                    com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence) {
0162:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0163:                        .getService();
0164:
0165:                organizationLocalService
0166:                        .setClassNamePersistence(classNamePersistence);
0167:            }
0168:
0169:            public static com.liferay.portal.service.persistence.CompanyPersistence getCompanyPersistence() {
0170:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0171:                        .getService();
0172:
0173:                return organizationLocalService.getCompanyPersistence();
0174:            }
0175:
0176:            public static void setCompanyPersistence(
0177:                    com.liferay.portal.service.persistence.CompanyPersistence companyPersistence) {
0178:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0179:                        .getService();
0180:
0181:                organizationLocalService
0182:                        .setCompanyPersistence(companyPersistence);
0183:            }
0184:
0185:            public static com.liferay.portal.service.persistence.ContactPersistence getContactPersistence() {
0186:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0187:                        .getService();
0188:
0189:                return organizationLocalService.getContactPersistence();
0190:            }
0191:
0192:            public static void setContactPersistence(
0193:                    com.liferay.portal.service.persistence.ContactPersistence contactPersistence) {
0194:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0195:                        .getService();
0196:
0197:                organizationLocalService
0198:                        .setContactPersistence(contactPersistence);
0199:            }
0200:
0201:            public static com.liferay.portal.service.persistence.CountryPersistence getCountryPersistence() {
0202:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0203:                        .getService();
0204:
0205:                return organizationLocalService.getCountryPersistence();
0206:            }
0207:
0208:            public static void setCountryPersistence(
0209:                    com.liferay.portal.service.persistence.CountryPersistence countryPersistence) {
0210:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0211:                        .getService();
0212:
0213:                organizationLocalService
0214:                        .setCountryPersistence(countryPersistence);
0215:            }
0216:
0217:            public static com.liferay.portal.service.persistence.EmailAddressPersistence getEmailAddressPersistence() {
0218:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0219:                        .getService();
0220:
0221:                return organizationLocalService.getEmailAddressPersistence();
0222:            }
0223:
0224:            public static void setEmailAddressPersistence(
0225:                    com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence) {
0226:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0227:                        .getService();
0228:
0229:                organizationLocalService
0230:                        .setEmailAddressPersistence(emailAddressPersistence);
0231:            }
0232:
0233:            public static com.liferay.portal.service.persistence.GroupPersistence getGroupPersistence() {
0234:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0235:                        .getService();
0236:
0237:                return organizationLocalService.getGroupPersistence();
0238:            }
0239:
0240:            public static void setGroupPersistence(
0241:                    com.liferay.portal.service.persistence.GroupPersistence groupPersistence) {
0242:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0243:                        .getService();
0244:
0245:                organizationLocalService.setGroupPersistence(groupPersistence);
0246:            }
0247:
0248:            public static com.liferay.portal.service.persistence.GroupFinder getGroupFinder() {
0249:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0250:                        .getService();
0251:
0252:                return organizationLocalService.getGroupFinder();
0253:            }
0254:
0255:            public static void setGroupFinder(
0256:                    com.liferay.portal.service.persistence.GroupFinder groupFinder) {
0257:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0258:                        .getService();
0259:
0260:                organizationLocalService.setGroupFinder(groupFinder);
0261:            }
0262:
0263:            public static com.liferay.portal.service.persistence.ImagePersistence getImagePersistence() {
0264:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0265:                        .getService();
0266:
0267:                return organizationLocalService.getImagePersistence();
0268:            }
0269:
0270:            public static void setImagePersistence(
0271:                    com.liferay.portal.service.persistence.ImagePersistence imagePersistence) {
0272:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0273:                        .getService();
0274:
0275:                organizationLocalService.setImagePersistence(imagePersistence);
0276:            }
0277:
0278:            public static com.liferay.portal.service.persistence.LayoutPersistence getLayoutPersistence() {
0279:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0280:                        .getService();
0281:
0282:                return organizationLocalService.getLayoutPersistence();
0283:            }
0284:
0285:            public static void setLayoutPersistence(
0286:                    com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence) {
0287:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0288:                        .getService();
0289:
0290:                organizationLocalService
0291:                        .setLayoutPersistence(layoutPersistence);
0292:            }
0293:
0294:            public static com.liferay.portal.service.persistence.LayoutFinder getLayoutFinder() {
0295:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0296:                        .getService();
0297:
0298:                return organizationLocalService.getLayoutFinder();
0299:            }
0300:
0301:            public static void setLayoutFinder(
0302:                    com.liferay.portal.service.persistence.LayoutFinder layoutFinder) {
0303:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0304:                        .getService();
0305:
0306:                organizationLocalService.setLayoutFinder(layoutFinder);
0307:            }
0308:
0309:            public static com.liferay.portal.service.persistence.LayoutSetPersistence getLayoutSetPersistence() {
0310:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0311:                        .getService();
0312:
0313:                return organizationLocalService.getLayoutSetPersistence();
0314:            }
0315:
0316:            public static void setLayoutSetPersistence(
0317:                    com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence) {
0318:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0319:                        .getService();
0320:
0321:                organizationLocalService
0322:                        .setLayoutSetPersistence(layoutSetPersistence);
0323:            }
0324:
0325:            public static com.liferay.portal.service.persistence.ListTypePersistence getListTypePersistence() {
0326:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0327:                        .getService();
0328:
0329:                return organizationLocalService.getListTypePersistence();
0330:            }
0331:
0332:            public static void setListTypePersistence(
0333:                    com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence) {
0334:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0335:                        .getService();
0336:
0337:                organizationLocalService
0338:                        .setListTypePersistence(listTypePersistence);
0339:            }
0340:
0341:            public static com.liferay.portal.service.persistence.MembershipRequestPersistence getMembershipRequestPersistence() {
0342:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0343:                        .getService();
0344:
0345:                return organizationLocalService
0346:                        .getMembershipRequestPersistence();
0347:            }
0348:
0349:            public static void setMembershipRequestPersistence(
0350:                    com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence) {
0351:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0352:                        .getService();
0353:
0354:                organizationLocalService
0355:                        .setMembershipRequestPersistence(membershipRequestPersistence);
0356:            }
0357:
0358:            public static com.liferay.portal.service.persistence.OrganizationPersistence getOrganizationPersistence() {
0359:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0360:                        .getService();
0361:
0362:                return organizationLocalService.getOrganizationPersistence();
0363:            }
0364:
0365:            public static void setOrganizationPersistence(
0366:                    com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence) {
0367:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0368:                        .getService();
0369:
0370:                organizationLocalService
0371:                        .setOrganizationPersistence(organizationPersistence);
0372:            }
0373:
0374:            public static com.liferay.portal.service.persistence.OrganizationFinder getOrganizationFinder() {
0375:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0376:                        .getService();
0377:
0378:                return organizationLocalService.getOrganizationFinder();
0379:            }
0380:
0381:            public static void setOrganizationFinder(
0382:                    com.liferay.portal.service.persistence.OrganizationFinder organizationFinder) {
0383:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0384:                        .getService();
0385:
0386:                organizationLocalService
0387:                        .setOrganizationFinder(organizationFinder);
0388:            }
0389:
0390:            public static com.liferay.portal.service.persistence.OrgGroupPermissionPersistence getOrgGroupPermissionPersistence() {
0391:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0392:                        .getService();
0393:
0394:                return organizationLocalService
0395:                        .getOrgGroupPermissionPersistence();
0396:            }
0397:
0398:            public static void setOrgGroupPermissionPersistence(
0399:                    com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence) {
0400:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0401:                        .getService();
0402:
0403:                organizationLocalService
0404:                        .setOrgGroupPermissionPersistence(orgGroupPermissionPersistence);
0405:            }
0406:
0407:            public static com.liferay.portal.service.persistence.OrgGroupPermissionFinder getOrgGroupPermissionFinder() {
0408:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0409:                        .getService();
0410:
0411:                return organizationLocalService.getOrgGroupPermissionFinder();
0412:            }
0413:
0414:            public static void setOrgGroupPermissionFinder(
0415:                    com.liferay.portal.service.persistence.OrgGroupPermissionFinder orgGroupPermissionFinder) {
0416:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0417:                        .getService();
0418:
0419:                organizationLocalService
0420:                        .setOrgGroupPermissionFinder(orgGroupPermissionFinder);
0421:            }
0422:
0423:            public static com.liferay.portal.service.persistence.OrgGroupRolePersistence getOrgGroupRolePersistence() {
0424:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0425:                        .getService();
0426:
0427:                return organizationLocalService.getOrgGroupRolePersistence();
0428:            }
0429:
0430:            public static void setOrgGroupRolePersistence(
0431:                    com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence) {
0432:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0433:                        .getService();
0434:
0435:                organizationLocalService
0436:                        .setOrgGroupRolePersistence(orgGroupRolePersistence);
0437:            }
0438:
0439:            public static com.liferay.portal.service.persistence.OrgLaborPersistence getOrgLaborPersistence() {
0440:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0441:                        .getService();
0442:
0443:                return organizationLocalService.getOrgLaborPersistence();
0444:            }
0445:
0446:            public static void setOrgLaborPersistence(
0447:                    com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence) {
0448:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0449:                        .getService();
0450:
0451:                organizationLocalService
0452:                        .setOrgLaborPersistence(orgLaborPersistence);
0453:            }
0454:
0455:            public static com.liferay.portal.service.persistence.PasswordPolicyPersistence getPasswordPolicyPersistence() {
0456:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0457:                        .getService();
0458:
0459:                return organizationLocalService.getPasswordPolicyPersistence();
0460:            }
0461:
0462:            public static void setPasswordPolicyPersistence(
0463:                    com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence) {
0464:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0465:                        .getService();
0466:
0467:                organizationLocalService
0468:                        .setPasswordPolicyPersistence(passwordPolicyPersistence);
0469:            }
0470:
0471:            public static com.liferay.portal.service.persistence.PasswordPolicyFinder getPasswordPolicyFinder() {
0472:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0473:                        .getService();
0474:
0475:                return organizationLocalService.getPasswordPolicyFinder();
0476:            }
0477:
0478:            public static void setPasswordPolicyFinder(
0479:                    com.liferay.portal.service.persistence.PasswordPolicyFinder passwordPolicyFinder) {
0480:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0481:                        .getService();
0482:
0483:                organizationLocalService
0484:                        .setPasswordPolicyFinder(passwordPolicyFinder);
0485:            }
0486:
0487:            public static com.liferay.portal.service.persistence.PasswordPolicyRelPersistence getPasswordPolicyRelPersistence() {
0488:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0489:                        .getService();
0490:
0491:                return organizationLocalService
0492:                        .getPasswordPolicyRelPersistence();
0493:            }
0494:
0495:            public static void setPasswordPolicyRelPersistence(
0496:                    com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence) {
0497:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0498:                        .getService();
0499:
0500:                organizationLocalService
0501:                        .setPasswordPolicyRelPersistence(passwordPolicyRelPersistence);
0502:            }
0503:
0504:            public static com.liferay.portal.service.persistence.PasswordTrackerPersistence getPasswordTrackerPersistence() {
0505:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0506:                        .getService();
0507:
0508:                return organizationLocalService.getPasswordTrackerPersistence();
0509:            }
0510:
0511:            public static void setPasswordTrackerPersistence(
0512:                    com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence) {
0513:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0514:                        .getService();
0515:
0516:                organizationLocalService
0517:                        .setPasswordTrackerPersistence(passwordTrackerPersistence);
0518:            }
0519:
0520:            public static com.liferay.portal.service.persistence.PermissionPersistence getPermissionPersistence() {
0521:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0522:                        .getService();
0523:
0524:                return organizationLocalService.getPermissionPersistence();
0525:            }
0526:
0527:            public static void setPermissionPersistence(
0528:                    com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence) {
0529:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0530:                        .getService();
0531:
0532:                organizationLocalService
0533:                        .setPermissionPersistence(permissionPersistence);
0534:            }
0535:
0536:            public static com.liferay.portal.service.persistence.PermissionFinder getPermissionFinder() {
0537:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0538:                        .getService();
0539:
0540:                return organizationLocalService.getPermissionFinder();
0541:            }
0542:
0543:            public static void setPermissionFinder(
0544:                    com.liferay.portal.service.persistence.PermissionFinder permissionFinder) {
0545:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0546:                        .getService();
0547:
0548:                organizationLocalService.setPermissionFinder(permissionFinder);
0549:            }
0550:
0551:            public static com.liferay.portal.service.persistence.PermissionUserFinder getPermissionUserFinder() {
0552:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0553:                        .getService();
0554:
0555:                return organizationLocalService.getPermissionUserFinder();
0556:            }
0557:
0558:            public static void setPermissionUserFinder(
0559:                    com.liferay.portal.service.persistence.PermissionUserFinder permissionUserFinder) {
0560:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0561:                        .getService();
0562:
0563:                organizationLocalService
0564:                        .setPermissionUserFinder(permissionUserFinder);
0565:            }
0566:
0567:            public static com.liferay.portal.service.persistence.PhonePersistence getPhonePersistence() {
0568:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0569:                        .getService();
0570:
0571:                return organizationLocalService.getPhonePersistence();
0572:            }
0573:
0574:            public static void setPhonePersistence(
0575:                    com.liferay.portal.service.persistence.PhonePersistence phonePersistence) {
0576:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0577:                        .getService();
0578:
0579:                organizationLocalService.setPhonePersistence(phonePersistence);
0580:            }
0581:
0582:            public static com.liferay.portal.service.persistence.PluginSettingPersistence getPluginSettingPersistence() {
0583:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0584:                        .getService();
0585:
0586:                return organizationLocalService.getPluginSettingPersistence();
0587:            }
0588:
0589:            public static void setPluginSettingPersistence(
0590:                    com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence) {
0591:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0592:                        .getService();
0593:
0594:                organizationLocalService
0595:                        .setPluginSettingPersistence(pluginSettingPersistence);
0596:            }
0597:
0598:            public static com.liferay.portal.service.persistence.PortletPersistence getPortletPersistence() {
0599:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0600:                        .getService();
0601:
0602:                return organizationLocalService.getPortletPersistence();
0603:            }
0604:
0605:            public static void setPortletPersistence(
0606:                    com.liferay.portal.service.persistence.PortletPersistence portletPersistence) {
0607:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0608:                        .getService();
0609:
0610:                organizationLocalService
0611:                        .setPortletPersistence(portletPersistence);
0612:            }
0613:
0614:            public static com.liferay.portal.service.persistence.PortletPreferencesPersistence getPortletPreferencesPersistence() {
0615:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0616:                        .getService();
0617:
0618:                return organizationLocalService
0619:                        .getPortletPreferencesPersistence();
0620:            }
0621:
0622:            public static void setPortletPreferencesPersistence(
0623:                    com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence) {
0624:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0625:                        .getService();
0626:
0627:                organizationLocalService
0628:                        .setPortletPreferencesPersistence(portletPreferencesPersistence);
0629:            }
0630:
0631:            public static com.liferay.portal.service.persistence.PortletPreferencesFinder getPortletPreferencesFinder() {
0632:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0633:                        .getService();
0634:
0635:                return organizationLocalService.getPortletPreferencesFinder();
0636:            }
0637:
0638:            public static void setPortletPreferencesFinder(
0639:                    com.liferay.portal.service.persistence.PortletPreferencesFinder portletPreferencesFinder) {
0640:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0641:                        .getService();
0642:
0643:                organizationLocalService
0644:                        .setPortletPreferencesFinder(portletPreferencesFinder);
0645:            }
0646:
0647:            public static com.liferay.portal.service.persistence.RegionPersistence getRegionPersistence() {
0648:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0649:                        .getService();
0650:
0651:                return organizationLocalService.getRegionPersistence();
0652:            }
0653:
0654:            public static void setRegionPersistence(
0655:                    com.liferay.portal.service.persistence.RegionPersistence regionPersistence) {
0656:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0657:                        .getService();
0658:
0659:                organizationLocalService
0660:                        .setRegionPersistence(regionPersistence);
0661:            }
0662:
0663:            public static com.liferay.portal.service.persistence.ReleasePersistence getReleasePersistence() {
0664:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0665:                        .getService();
0666:
0667:                return organizationLocalService.getReleasePersistence();
0668:            }
0669:
0670:            public static void setReleasePersistence(
0671:                    com.liferay.portal.service.persistence.ReleasePersistence releasePersistence) {
0672:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0673:                        .getService();
0674:
0675:                organizationLocalService
0676:                        .setReleasePersistence(releasePersistence);
0677:            }
0678:
0679:            public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
0680:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0681:                        .getService();
0682:
0683:                return organizationLocalService.getResourcePersistence();
0684:            }
0685:
0686:            public static void setResourcePersistence(
0687:                    com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
0688:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0689:                        .getService();
0690:
0691:                organizationLocalService
0692:                        .setResourcePersistence(resourcePersistence);
0693:            }
0694:
0695:            public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
0696:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0697:                        .getService();
0698:
0699:                return organizationLocalService.getResourceFinder();
0700:            }
0701:
0702:            public static void setResourceFinder(
0703:                    com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
0704:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0705:                        .getService();
0706:
0707:                organizationLocalService.setResourceFinder(resourceFinder);
0708:            }
0709:
0710:            public static com.liferay.portal.service.persistence.ResourceCodePersistence getResourceCodePersistence() {
0711:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0712:                        .getService();
0713:
0714:                return organizationLocalService.getResourceCodePersistence();
0715:            }
0716:
0717:            public static void setResourceCodePersistence(
0718:                    com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence) {
0719:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0720:                        .getService();
0721:
0722:                organizationLocalService
0723:                        .setResourceCodePersistence(resourceCodePersistence);
0724:            }
0725:
0726:            public static com.liferay.portal.service.persistence.RolePersistence getRolePersistence() {
0727:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0728:                        .getService();
0729:
0730:                return organizationLocalService.getRolePersistence();
0731:            }
0732:
0733:            public static void setRolePersistence(
0734:                    com.liferay.portal.service.persistence.RolePersistence rolePersistence) {
0735:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0736:                        .getService();
0737:
0738:                organizationLocalService.setRolePersistence(rolePersistence);
0739:            }
0740:
0741:            public static com.liferay.portal.service.persistence.RoleFinder getRoleFinder() {
0742:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0743:                        .getService();
0744:
0745:                return organizationLocalService.getRoleFinder();
0746:            }
0747:
0748:            public static void setRoleFinder(
0749:                    com.liferay.portal.service.persistence.RoleFinder roleFinder) {
0750:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0751:                        .getService();
0752:
0753:                organizationLocalService.setRoleFinder(roleFinder);
0754:            }
0755:
0756:            public static com.liferay.portal.service.persistence.ServiceComponentPersistence getServiceComponentPersistence() {
0757:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0758:                        .getService();
0759:
0760:                return organizationLocalService
0761:                        .getServiceComponentPersistence();
0762:            }
0763:
0764:            public static void setServiceComponentPersistence(
0765:                    com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence) {
0766:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0767:                        .getService();
0768:
0769:                organizationLocalService
0770:                        .setServiceComponentPersistence(serviceComponentPersistence);
0771:            }
0772:
0773:            public static com.liferay.portal.service.persistence.SubscriptionPersistence getSubscriptionPersistence() {
0774:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0775:                        .getService();
0776:
0777:                return organizationLocalService.getSubscriptionPersistence();
0778:            }
0779:
0780:            public static void setSubscriptionPersistence(
0781:                    com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence) {
0782:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0783:                        .getService();
0784:
0785:                organizationLocalService
0786:                        .setSubscriptionPersistence(subscriptionPersistence);
0787:            }
0788:
0789:            public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
0790:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0791:                        .getService();
0792:
0793:                return organizationLocalService.getUserPersistence();
0794:            }
0795:
0796:            public static void setUserPersistence(
0797:                    com.liferay.portal.service.persistence.UserPersistence userPersistence) {
0798:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0799:                        .getService();
0800:
0801:                organizationLocalService.setUserPersistence(userPersistence);
0802:            }
0803:
0804:            public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
0805:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0806:                        .getService();
0807:
0808:                return organizationLocalService.getUserFinder();
0809:            }
0810:
0811:            public static void setUserFinder(
0812:                    com.liferay.portal.service.persistence.UserFinder userFinder) {
0813:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0814:                        .getService();
0815:
0816:                organizationLocalService.setUserFinder(userFinder);
0817:            }
0818:
0819:            public static com.liferay.portal.service.persistence.UserGroupPersistence getUserGroupPersistence() {
0820:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0821:                        .getService();
0822:
0823:                return organizationLocalService.getUserGroupPersistence();
0824:            }
0825:
0826:            public static void setUserGroupPersistence(
0827:                    com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence) {
0828:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0829:                        .getService();
0830:
0831:                organizationLocalService
0832:                        .setUserGroupPersistence(userGroupPersistence);
0833:            }
0834:
0835:            public static com.liferay.portal.service.persistence.UserGroupFinder getUserGroupFinder() {
0836:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0837:                        .getService();
0838:
0839:                return organizationLocalService.getUserGroupFinder();
0840:            }
0841:
0842:            public static void setUserGroupFinder(
0843:                    com.liferay.portal.service.persistence.UserGroupFinder userGroupFinder) {
0844:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0845:                        .getService();
0846:
0847:                organizationLocalService.setUserGroupFinder(userGroupFinder);
0848:            }
0849:
0850:            public static com.liferay.portal.service.persistence.UserGroupRolePersistence getUserGroupRolePersistence() {
0851:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0852:                        .getService();
0853:
0854:                return organizationLocalService.getUserGroupRolePersistence();
0855:            }
0856:
0857:            public static void setUserGroupRolePersistence(
0858:                    com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence) {
0859:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0860:                        .getService();
0861:
0862:                organizationLocalService
0863:                        .setUserGroupRolePersistence(userGroupRolePersistence);
0864:            }
0865:
0866:            public static com.liferay.portal.service.persistence.UserIdMapperPersistence getUserIdMapperPersistence() {
0867:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0868:                        .getService();
0869:
0870:                return organizationLocalService.getUserIdMapperPersistence();
0871:            }
0872:
0873:            public static void setUserIdMapperPersistence(
0874:                    com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence) {
0875:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0876:                        .getService();
0877:
0878:                organizationLocalService
0879:                        .setUserIdMapperPersistence(userIdMapperPersistence);
0880:            }
0881:
0882:            public static com.liferay.portal.service.persistence.UserTrackerPersistence getUserTrackerPersistence() {
0883:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0884:                        .getService();
0885:
0886:                return organizationLocalService.getUserTrackerPersistence();
0887:            }
0888:
0889:            public static void setUserTrackerPersistence(
0890:                    com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence) {
0891:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0892:                        .getService();
0893:
0894:                organizationLocalService
0895:                        .setUserTrackerPersistence(userTrackerPersistence);
0896:            }
0897:
0898:            public static com.liferay.portal.service.persistence.UserTrackerPathPersistence getUserTrackerPathPersistence() {
0899:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0900:                        .getService();
0901:
0902:                return organizationLocalService.getUserTrackerPathPersistence();
0903:            }
0904:
0905:            public static void setUserTrackerPathPersistence(
0906:                    com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence) {
0907:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0908:                        .getService();
0909:
0910:                organizationLocalService
0911:                        .setUserTrackerPathPersistence(userTrackerPathPersistence);
0912:            }
0913:
0914:            public static com.liferay.portal.service.persistence.WebDAVPropsPersistence getWebDAVPropsPersistence() {
0915:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0916:                        .getService();
0917:
0918:                return organizationLocalService.getWebDAVPropsPersistence();
0919:            }
0920:
0921:            public static void setWebDAVPropsPersistence(
0922:                    com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence) {
0923:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0924:                        .getService();
0925:
0926:                organizationLocalService
0927:                        .setWebDAVPropsPersistence(webDAVPropsPersistence);
0928:            }
0929:
0930:            public static com.liferay.portal.service.persistence.WebsitePersistence getWebsitePersistence() {
0931:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0932:                        .getService();
0933:
0934:                return organizationLocalService.getWebsitePersistence();
0935:            }
0936:
0937:            public static void setWebsitePersistence(
0938:                    com.liferay.portal.service.persistence.WebsitePersistence websitePersistence) {
0939:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0940:                        .getService();
0941:
0942:                organizationLocalService
0943:                        .setWebsitePersistence(websitePersistence);
0944:            }
0945:
0946:            public static void afterPropertiesSet() {
0947:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0948:                        .getService();
0949:
0950:                organizationLocalService.afterPropertiesSet();
0951:            }
0952:
0953:            public static void addGroupOrganizations(long groupId,
0954:                    long[] organizationIds)
0955:                    throws com.liferay.portal.PortalException,
0956:                    com.liferay.portal.SystemException {
0957:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0958:                        .getService();
0959:
0960:                organizationLocalService.addGroupOrganizations(groupId,
0961:                        organizationIds);
0962:            }
0963:
0964:            public static com.liferay.portal.model.Organization addOrganization(
0965:                    long userId, long parentOrganizationId,
0966:                    java.lang.String name, int type, boolean recursable,
0967:                    long regionId, long countryId, int statusId,
0968:                    java.lang.String comments)
0969:                    throws com.liferay.portal.PortalException,
0970:                    com.liferay.portal.SystemException {
0971:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0972:                        .getService();
0973:
0974:                return organizationLocalService.addOrganization(userId,
0975:                        parentOrganizationId, name, type, recursable, regionId,
0976:                        countryId, statusId, comments);
0977:            }
0978:
0979:            public static void addOrganizationResources(long userId,
0980:                    com.liferay.portal.model.Organization organization)
0981:                    throws com.liferay.portal.PortalException,
0982:                    com.liferay.portal.SystemException {
0983:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0984:                        .getService();
0985:
0986:                organizationLocalService.addOrganizationResources(userId,
0987:                        organization);
0988:            }
0989:
0990:            public static void addPasswordPolicyOrganizations(
0991:                    long passwordPolicyId, long[] organizationIds)
0992:                    throws com.liferay.portal.PortalException,
0993:                    com.liferay.portal.SystemException {
0994:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
0995:                        .getService();
0996:
0997:                organizationLocalService.addPasswordPolicyOrganizations(
0998:                        passwordPolicyId, organizationIds);
0999:            }
1000:
1001:            public static void deleteOrganization(long organizationId)
1002:                    throws com.liferay.portal.PortalException,
1003:                    com.liferay.portal.SystemException {
1004:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1005:                        .getService();
1006:
1007:                organizationLocalService.deleteOrganization(organizationId);
1008:            }
1009:
1010:            public static void deleteOrganization(
1011:                    com.liferay.portal.model.Organization organization)
1012:                    throws com.liferay.portal.PortalException,
1013:                    com.liferay.portal.SystemException {
1014:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1015:                        .getService();
1016:
1017:                organizationLocalService.deleteOrganization(organization);
1018:            }
1019:
1020:            public static java.util.List getGroupOrganizations(long groupId)
1021:                    throws com.liferay.portal.PortalException,
1022:                    com.liferay.portal.SystemException {
1023:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1024:                        .getService();
1025:
1026:                return organizationLocalService.getGroupOrganizations(groupId);
1027:            }
1028:
1029:            public static java.util.List getManageableOrganizations(long userId)
1030:                    throws com.liferay.portal.PortalException,
1031:                    com.liferay.portal.SystemException {
1032:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1033:                        .getService();
1034:
1035:                return organizationLocalService
1036:                        .getManageableOrganizations(userId);
1037:            }
1038:
1039:            public static com.liferay.portal.model.Organization getOrganization(
1040:                    long organizationId)
1041:                    throws com.liferay.portal.PortalException,
1042:                    com.liferay.portal.SystemException {
1043:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1044:                        .getService();
1045:
1046:                return organizationLocalService.getOrganization(organizationId);
1047:            }
1048:
1049:            public static com.liferay.portal.model.Organization getOrganization(
1050:                    long companyId, java.lang.String name)
1051:                    throws com.liferay.portal.PortalException,
1052:                    com.liferay.portal.SystemException {
1053:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1054:                        .getService();
1055:
1056:                return organizationLocalService
1057:                        .getOrganization(companyId, name);
1058:            }
1059:
1060:            public static long getOrganizationId(long companyId,
1061:                    java.lang.String name)
1062:                    throws com.liferay.portal.PortalException,
1063:                    com.liferay.portal.SystemException {
1064:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1065:                        .getService();
1066:
1067:                return organizationLocalService.getOrganizationId(companyId,
1068:                        name);
1069:            }
1070:
1071:            public static java.util.List getOrganizations(long[] organizationIds)
1072:                    throws com.liferay.portal.PortalException,
1073:                    com.liferay.portal.SystemException {
1074:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1075:                        .getService();
1076:
1077:                return organizationLocalService
1078:                        .getOrganizations(organizationIds);
1079:            }
1080:
1081:            public static java.util.List getParentOrganizations(
1082:                    long organizationId)
1083:                    throws com.liferay.portal.PortalException,
1084:                    com.liferay.portal.SystemException {
1085:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1086:                        .getService();
1087:
1088:                return organizationLocalService
1089:                        .getParentOrganizations(organizationId);
1090:            }
1091:
1092:            public static java.util.List getSuborganizations(
1093:                    java.util.List organizations)
1094:                    throws com.liferay.portal.SystemException {
1095:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1096:                        .getService();
1097:
1098:                return organizationLocalService
1099:                        .getSuborganizations(organizations);
1100:            }
1101:
1102:            public static java.util.List getSubsetOrganizations(
1103:                    java.util.List allOrganizations,
1104:                    java.util.List availableOrganizations)
1105:                    throws com.liferay.portal.PortalException,
1106:                    com.liferay.portal.SystemException {
1107:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1108:                        .getService();
1109:
1110:                return organizationLocalService.getSubsetOrganizations(
1111:                        allOrganizations, availableOrganizations);
1112:            }
1113:
1114:            public static java.util.List getUserOrganizations(long userId)
1115:                    throws com.liferay.portal.PortalException,
1116:                    com.liferay.portal.SystemException {
1117:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1118:                        .getService();
1119:
1120:                return organizationLocalService.getUserOrganizations(userId);
1121:            }
1122:
1123:            public static int getUserOrganizationsCount(long userId)
1124:                    throws com.liferay.portal.PortalException,
1125:                    com.liferay.portal.SystemException {
1126:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1127:                        .getService();
1128:
1129:                return organizationLocalService
1130:                        .getUserOrganizationsCount(userId);
1131:            }
1132:
1133:            public static boolean hasGroupOrganization(long groupId,
1134:                    long organizationId)
1135:                    throws com.liferay.portal.PortalException,
1136:                    com.liferay.portal.SystemException {
1137:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1138:                        .getService();
1139:
1140:                return organizationLocalService.hasGroupOrganization(groupId,
1141:                        organizationId);
1142:            }
1143:
1144:            public static boolean hasUserOrganization(long userId,
1145:                    long organizationId)
1146:                    throws com.liferay.portal.PortalException,
1147:                    com.liferay.portal.SystemException {
1148:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1149:                        .getService();
1150:
1151:                return organizationLocalService.hasUserOrganization(userId,
1152:                        organizationId);
1153:            }
1154:
1155:            public static boolean hasPasswordPolicyOrganization(
1156:                    long passwordPolicyId, long organizationId)
1157:                    throws com.liferay.portal.PortalException,
1158:                    com.liferay.portal.SystemException {
1159:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1160:                        .getService();
1161:
1162:                return organizationLocalService.hasPasswordPolicyOrganization(
1163:                        passwordPolicyId, organizationId);
1164:            }
1165:
1166:            public static java.util.List search(long companyId,
1167:                    long parentOrganizationId, java.lang.String keywords,
1168:                    int type, java.lang.Long regionId,
1169:                    java.lang.Long countryId, java.util.LinkedHashMap params,
1170:                    int begin, int end)
1171:                    throws com.liferay.portal.PortalException,
1172:                    com.liferay.portal.SystemException {
1173:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1174:                        .getService();
1175:
1176:                return organizationLocalService.search(companyId,
1177:                        parentOrganizationId, keywords, type, regionId,
1178:                        countryId, params, begin, end);
1179:            }
1180:
1181:            public static java.util.List search(long companyId,
1182:                    long parentOrganizationId, java.lang.String keywords,
1183:                    int type, java.lang.Long regionId,
1184:                    java.lang.Long countryId, java.util.LinkedHashMap params,
1185:                    int begin, int end,
1186:                    com.liferay.portal.kernel.util.OrderByComparator obc)
1187:                    throws com.liferay.portal.PortalException,
1188:                    com.liferay.portal.SystemException {
1189:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1190:                        .getService();
1191:
1192:                return organizationLocalService.search(companyId,
1193:                        parentOrganizationId, keywords, type, regionId,
1194:                        countryId, params, begin, end, obc);
1195:            }
1196:
1197:            public static java.util.List search(long companyId,
1198:                    long parentOrganizationId, java.lang.String name, int type,
1199:                    java.lang.String street, java.lang.String city,
1200:                    java.lang.String zip, java.lang.Long regionId,
1201:                    java.lang.Long countryId, java.util.LinkedHashMap params,
1202:                    boolean andOperator, int begin, int end)
1203:                    throws com.liferay.portal.PortalException,
1204:                    com.liferay.portal.SystemException {
1205:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1206:                        .getService();
1207:
1208:                return organizationLocalService.search(companyId,
1209:                        parentOrganizationId, name, type, street, city, zip,
1210:                        regionId, countryId, params, andOperator, begin, end);
1211:            }
1212:
1213:            public static java.util.List search(long companyId,
1214:                    long parentOrganizationId, java.lang.String name, int type,
1215:                    java.lang.String street, java.lang.String city,
1216:                    java.lang.String zip, java.lang.Long regionId,
1217:                    java.lang.Long countryId, java.util.LinkedHashMap params,
1218:                    boolean andOperator, int begin, int end,
1219:                    com.liferay.portal.kernel.util.OrderByComparator obc)
1220:                    throws com.liferay.portal.PortalException,
1221:                    com.liferay.portal.SystemException {
1222:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1223:                        .getService();
1224:
1225:                return organizationLocalService.search(companyId,
1226:                        parentOrganizationId, name, type, street, city, zip,
1227:                        regionId, countryId, params, andOperator, begin, end,
1228:                        obc);
1229:            }
1230:
1231:            public static int searchCount(long companyId,
1232:                    long parentOrganizationId, java.lang.String keywords,
1233:                    int type, java.lang.Long regionId,
1234:                    java.lang.Long countryId, java.util.LinkedHashMap params)
1235:                    throws com.liferay.portal.PortalException,
1236:                    com.liferay.portal.SystemException {
1237:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1238:                        .getService();
1239:
1240:                return organizationLocalService.searchCount(companyId,
1241:                        parentOrganizationId, keywords, type, regionId,
1242:                        countryId, params);
1243:            }
1244:
1245:            public static int searchCount(long companyId,
1246:                    long parentOrganizationId, java.lang.String name, int type,
1247:                    java.lang.String street, java.lang.String city,
1248:                    java.lang.String zip, java.lang.Long regionId,
1249:                    java.lang.Long countryId, java.util.LinkedHashMap params,
1250:                    boolean andOperator)
1251:                    throws com.liferay.portal.PortalException,
1252:                    com.liferay.portal.SystemException {
1253:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1254:                        .getService();
1255:
1256:                return organizationLocalService.searchCount(companyId,
1257:                        parentOrganizationId, name, type, street, city, zip,
1258:                        regionId, countryId, params, andOperator);
1259:            }
1260:
1261:            public static void setGroupOrganizations(long groupId,
1262:                    long[] organizationIds)
1263:                    throws com.liferay.portal.PortalException,
1264:                    com.liferay.portal.SystemException {
1265:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1266:                        .getService();
1267:
1268:                organizationLocalService.setGroupOrganizations(groupId,
1269:                        organizationIds);
1270:            }
1271:
1272:            public static void unsetGroupOrganizations(long groupId,
1273:                    long[] organizationIds)
1274:                    throws com.liferay.portal.PortalException,
1275:                    com.liferay.portal.SystemException {
1276:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1277:                        .getService();
1278:
1279:                organizationLocalService.unsetGroupOrganizations(groupId,
1280:                        organizationIds);
1281:            }
1282:
1283:            public static void unsetPasswordPolicyOrganizations(
1284:                    long passwordPolicyId, long[] organizationIds)
1285:                    throws com.liferay.portal.PortalException,
1286:                    com.liferay.portal.SystemException {
1287:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1288:                        .getService();
1289:
1290:                organizationLocalService.unsetPasswordPolicyOrganizations(
1291:                        passwordPolicyId, organizationIds);
1292:            }
1293:
1294:            public static com.liferay.portal.model.Organization updateOrganization(
1295:                    long companyId, long organizationId,
1296:                    long parentOrganizationId, java.lang.String name, int type,
1297:                    boolean recursable, long regionId, long countryId,
1298:                    int statusId, java.lang.String comments)
1299:                    throws com.liferay.portal.PortalException,
1300:                    com.liferay.portal.SystemException {
1301:                OrganizationLocalService organizationLocalService = OrganizationLocalServiceFactory
1302:                        .getService();
1303:
1304:                return organizationLocalService.updateOrganization(companyId,
1305:                        organizationId, parentOrganizationId, name, type,
1306:                        recursable, regionId, countryId, statusId, comments);
1307:            }
1308:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.