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