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="PortletLocalServiceUtil.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.PortletLocalService</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.PortletLocalServiceFactory</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.PortletLocalService
0047: * @see com.liferay.portal.service.PortletLocalServiceFactory
0048: *
0049: */
0050: public class PortletLocalServiceUtil {
0051: public static com.liferay.portal.model.Portlet addPortlet(
0052: com.liferay.portal.model.Portlet model)
0053: throws com.liferay.portal.SystemException {
0054: PortletLocalService portletLocalService = PortletLocalServiceFactory
0055: .getService();
0056:
0057: return portletLocalService.addPortlet(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: PortletLocalService portletLocalService = PortletLocalServiceFactory
0064: .getService();
0065:
0066: return portletLocalService.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: PortletLocalService portletLocalService = PortletLocalServiceFactory
0074: .getService();
0075:
0076: return portletLocalService.dynamicQuery(queryInitializer,
0077: begin, end);
0078: }
0079:
0080: public static com.liferay.portal.model.Portlet updatePortlet(
0081: com.liferay.portal.model.Portlet model)
0082: throws com.liferay.portal.SystemException {
0083: PortletLocalService portletLocalService = PortletLocalServiceFactory
0084: .getService();
0085:
0086: return portletLocalService.updatePortlet(model);
0087: }
0088:
0089: public static com.liferay.portal.service.persistence.AccountPersistence getAccountPersistence() {
0090: PortletLocalService portletLocalService = PortletLocalServiceFactory
0091: .getService();
0092:
0093: return portletLocalService.getAccountPersistence();
0094: }
0095:
0096: public static void setAccountPersistence(
0097: com.liferay.portal.service.persistence.AccountPersistence accountPersistence) {
0098: PortletLocalService portletLocalService = PortletLocalServiceFactory
0099: .getService();
0100:
0101: portletLocalService.setAccountPersistence(accountPersistence);
0102: }
0103:
0104: public static com.liferay.portal.service.persistence.ActivityTrackerPersistence getActivityTrackerPersistence() {
0105: PortletLocalService portletLocalService = PortletLocalServiceFactory
0106: .getService();
0107:
0108: return portletLocalService.getActivityTrackerPersistence();
0109: }
0110:
0111: public static void setActivityTrackerPersistence(
0112: com.liferay.portal.service.persistence.ActivityTrackerPersistence activityTrackerPersistence) {
0113: PortletLocalService portletLocalService = PortletLocalServiceFactory
0114: .getService();
0115:
0116: portletLocalService
0117: .setActivityTrackerPersistence(activityTrackerPersistence);
0118: }
0119:
0120: public static com.liferay.portal.service.persistence.ActivityTrackerFinder getActivityTrackerFinder() {
0121: PortletLocalService portletLocalService = PortletLocalServiceFactory
0122: .getService();
0123:
0124: return portletLocalService.getActivityTrackerFinder();
0125: }
0126:
0127: public static void setActivityTrackerFinder(
0128: com.liferay.portal.service.persistence.ActivityTrackerFinder activityTrackerFinder) {
0129: PortletLocalService portletLocalService = PortletLocalServiceFactory
0130: .getService();
0131:
0132: portletLocalService
0133: .setActivityTrackerFinder(activityTrackerFinder);
0134: }
0135:
0136: public static com.liferay.portal.service.persistence.AddressPersistence getAddressPersistence() {
0137: PortletLocalService portletLocalService = PortletLocalServiceFactory
0138: .getService();
0139:
0140: return portletLocalService.getAddressPersistence();
0141: }
0142:
0143: public static void setAddressPersistence(
0144: com.liferay.portal.service.persistence.AddressPersistence addressPersistence) {
0145: PortletLocalService portletLocalService = PortletLocalServiceFactory
0146: .getService();
0147:
0148: portletLocalService.setAddressPersistence(addressPersistence);
0149: }
0150:
0151: public static com.liferay.portal.service.persistence.ClassNamePersistence getClassNamePersistence() {
0152: PortletLocalService portletLocalService = PortletLocalServiceFactory
0153: .getService();
0154:
0155: return portletLocalService.getClassNamePersistence();
0156: }
0157:
0158: public static void setClassNamePersistence(
0159: com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence) {
0160: PortletLocalService portletLocalService = PortletLocalServiceFactory
0161: .getService();
0162:
0163: portletLocalService
0164: .setClassNamePersistence(classNamePersistence);
0165: }
0166:
0167: public static com.liferay.portal.service.persistence.CompanyPersistence getCompanyPersistence() {
0168: PortletLocalService portletLocalService = PortletLocalServiceFactory
0169: .getService();
0170:
0171: return portletLocalService.getCompanyPersistence();
0172: }
0173:
0174: public static void setCompanyPersistence(
0175: com.liferay.portal.service.persistence.CompanyPersistence companyPersistence) {
0176: PortletLocalService portletLocalService = PortletLocalServiceFactory
0177: .getService();
0178:
0179: portletLocalService.setCompanyPersistence(companyPersistence);
0180: }
0181:
0182: public static com.liferay.portal.service.persistence.ContactPersistence getContactPersistence() {
0183: PortletLocalService portletLocalService = PortletLocalServiceFactory
0184: .getService();
0185:
0186: return portletLocalService.getContactPersistence();
0187: }
0188:
0189: public static void setContactPersistence(
0190: com.liferay.portal.service.persistence.ContactPersistence contactPersistence) {
0191: PortletLocalService portletLocalService = PortletLocalServiceFactory
0192: .getService();
0193:
0194: portletLocalService.setContactPersistence(contactPersistence);
0195: }
0196:
0197: public static com.liferay.portal.service.persistence.CountryPersistence getCountryPersistence() {
0198: PortletLocalService portletLocalService = PortletLocalServiceFactory
0199: .getService();
0200:
0201: return portletLocalService.getCountryPersistence();
0202: }
0203:
0204: public static void setCountryPersistence(
0205: com.liferay.portal.service.persistence.CountryPersistence countryPersistence) {
0206: PortletLocalService portletLocalService = PortletLocalServiceFactory
0207: .getService();
0208:
0209: portletLocalService.setCountryPersistence(countryPersistence);
0210: }
0211:
0212: public static com.liferay.portal.service.persistence.EmailAddressPersistence getEmailAddressPersistence() {
0213: PortletLocalService portletLocalService = PortletLocalServiceFactory
0214: .getService();
0215:
0216: return portletLocalService.getEmailAddressPersistence();
0217: }
0218:
0219: public static void setEmailAddressPersistence(
0220: com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence) {
0221: PortletLocalService portletLocalService = PortletLocalServiceFactory
0222: .getService();
0223:
0224: portletLocalService
0225: .setEmailAddressPersistence(emailAddressPersistence);
0226: }
0227:
0228: public static com.liferay.portal.service.persistence.GroupPersistence getGroupPersistence() {
0229: PortletLocalService portletLocalService = PortletLocalServiceFactory
0230: .getService();
0231:
0232: return portletLocalService.getGroupPersistence();
0233: }
0234:
0235: public static void setGroupPersistence(
0236: com.liferay.portal.service.persistence.GroupPersistence groupPersistence) {
0237: PortletLocalService portletLocalService = PortletLocalServiceFactory
0238: .getService();
0239:
0240: portletLocalService.setGroupPersistence(groupPersistence);
0241: }
0242:
0243: public static com.liferay.portal.service.persistence.GroupFinder getGroupFinder() {
0244: PortletLocalService portletLocalService = PortletLocalServiceFactory
0245: .getService();
0246:
0247: return portletLocalService.getGroupFinder();
0248: }
0249:
0250: public static void setGroupFinder(
0251: com.liferay.portal.service.persistence.GroupFinder groupFinder) {
0252: PortletLocalService portletLocalService = PortletLocalServiceFactory
0253: .getService();
0254:
0255: portletLocalService.setGroupFinder(groupFinder);
0256: }
0257:
0258: public static com.liferay.portal.service.persistence.ImagePersistence getImagePersistence() {
0259: PortletLocalService portletLocalService = PortletLocalServiceFactory
0260: .getService();
0261:
0262: return portletLocalService.getImagePersistence();
0263: }
0264:
0265: public static void setImagePersistence(
0266: com.liferay.portal.service.persistence.ImagePersistence imagePersistence) {
0267: PortletLocalService portletLocalService = PortletLocalServiceFactory
0268: .getService();
0269:
0270: portletLocalService.setImagePersistence(imagePersistence);
0271: }
0272:
0273: public static com.liferay.portal.service.persistence.LayoutPersistence getLayoutPersistence() {
0274: PortletLocalService portletLocalService = PortletLocalServiceFactory
0275: .getService();
0276:
0277: return portletLocalService.getLayoutPersistence();
0278: }
0279:
0280: public static void setLayoutPersistence(
0281: com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence) {
0282: PortletLocalService portletLocalService = PortletLocalServiceFactory
0283: .getService();
0284:
0285: portletLocalService.setLayoutPersistence(layoutPersistence);
0286: }
0287:
0288: public static com.liferay.portal.service.persistence.LayoutFinder getLayoutFinder() {
0289: PortletLocalService portletLocalService = PortletLocalServiceFactory
0290: .getService();
0291:
0292: return portletLocalService.getLayoutFinder();
0293: }
0294:
0295: public static void setLayoutFinder(
0296: com.liferay.portal.service.persistence.LayoutFinder layoutFinder) {
0297: PortletLocalService portletLocalService = PortletLocalServiceFactory
0298: .getService();
0299:
0300: portletLocalService.setLayoutFinder(layoutFinder);
0301: }
0302:
0303: public static com.liferay.portal.service.persistence.LayoutSetPersistence getLayoutSetPersistence() {
0304: PortletLocalService portletLocalService = PortletLocalServiceFactory
0305: .getService();
0306:
0307: return portletLocalService.getLayoutSetPersistence();
0308: }
0309:
0310: public static void setLayoutSetPersistence(
0311: com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence) {
0312: PortletLocalService portletLocalService = PortletLocalServiceFactory
0313: .getService();
0314:
0315: portletLocalService
0316: .setLayoutSetPersistence(layoutSetPersistence);
0317: }
0318:
0319: public static com.liferay.portal.service.persistence.ListTypePersistence getListTypePersistence() {
0320: PortletLocalService portletLocalService = PortletLocalServiceFactory
0321: .getService();
0322:
0323: return portletLocalService.getListTypePersistence();
0324: }
0325:
0326: public static void setListTypePersistence(
0327: com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence) {
0328: PortletLocalService portletLocalService = PortletLocalServiceFactory
0329: .getService();
0330:
0331: portletLocalService.setListTypePersistence(listTypePersistence);
0332: }
0333:
0334: public static com.liferay.portal.service.persistence.MembershipRequestPersistence getMembershipRequestPersistence() {
0335: PortletLocalService portletLocalService = PortletLocalServiceFactory
0336: .getService();
0337:
0338: return portletLocalService.getMembershipRequestPersistence();
0339: }
0340:
0341: public static void setMembershipRequestPersistence(
0342: com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence) {
0343: PortletLocalService portletLocalService = PortletLocalServiceFactory
0344: .getService();
0345:
0346: portletLocalService
0347: .setMembershipRequestPersistence(membershipRequestPersistence);
0348: }
0349:
0350: public static com.liferay.portal.service.persistence.OrganizationPersistence getOrganizationPersistence() {
0351: PortletLocalService portletLocalService = PortletLocalServiceFactory
0352: .getService();
0353:
0354: return portletLocalService.getOrganizationPersistence();
0355: }
0356:
0357: public static void setOrganizationPersistence(
0358: com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence) {
0359: PortletLocalService portletLocalService = PortletLocalServiceFactory
0360: .getService();
0361:
0362: portletLocalService
0363: .setOrganizationPersistence(organizationPersistence);
0364: }
0365:
0366: public static com.liferay.portal.service.persistence.OrganizationFinder getOrganizationFinder() {
0367: PortletLocalService portletLocalService = PortletLocalServiceFactory
0368: .getService();
0369:
0370: return portletLocalService.getOrganizationFinder();
0371: }
0372:
0373: public static void setOrganizationFinder(
0374: com.liferay.portal.service.persistence.OrganizationFinder organizationFinder) {
0375: PortletLocalService portletLocalService = PortletLocalServiceFactory
0376: .getService();
0377:
0378: portletLocalService.setOrganizationFinder(organizationFinder);
0379: }
0380:
0381: public static com.liferay.portal.service.persistence.OrgGroupPermissionPersistence getOrgGroupPermissionPersistence() {
0382: PortletLocalService portletLocalService = PortletLocalServiceFactory
0383: .getService();
0384:
0385: return portletLocalService.getOrgGroupPermissionPersistence();
0386: }
0387:
0388: public static void setOrgGroupPermissionPersistence(
0389: com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence) {
0390: PortletLocalService portletLocalService = PortletLocalServiceFactory
0391: .getService();
0392:
0393: portletLocalService
0394: .setOrgGroupPermissionPersistence(orgGroupPermissionPersistence);
0395: }
0396:
0397: public static com.liferay.portal.service.persistence.OrgGroupPermissionFinder getOrgGroupPermissionFinder() {
0398: PortletLocalService portletLocalService = PortletLocalServiceFactory
0399: .getService();
0400:
0401: return portletLocalService.getOrgGroupPermissionFinder();
0402: }
0403:
0404: public static void setOrgGroupPermissionFinder(
0405: com.liferay.portal.service.persistence.OrgGroupPermissionFinder orgGroupPermissionFinder) {
0406: PortletLocalService portletLocalService = PortletLocalServiceFactory
0407: .getService();
0408:
0409: portletLocalService
0410: .setOrgGroupPermissionFinder(orgGroupPermissionFinder);
0411: }
0412:
0413: public static com.liferay.portal.service.persistence.OrgGroupRolePersistence getOrgGroupRolePersistence() {
0414: PortletLocalService portletLocalService = PortletLocalServiceFactory
0415: .getService();
0416:
0417: return portletLocalService.getOrgGroupRolePersistence();
0418: }
0419:
0420: public static void setOrgGroupRolePersistence(
0421: com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence) {
0422: PortletLocalService portletLocalService = PortletLocalServiceFactory
0423: .getService();
0424:
0425: portletLocalService
0426: .setOrgGroupRolePersistence(orgGroupRolePersistence);
0427: }
0428:
0429: public static com.liferay.portal.service.persistence.OrgLaborPersistence getOrgLaborPersistence() {
0430: PortletLocalService portletLocalService = PortletLocalServiceFactory
0431: .getService();
0432:
0433: return portletLocalService.getOrgLaborPersistence();
0434: }
0435:
0436: public static void setOrgLaborPersistence(
0437: com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence) {
0438: PortletLocalService portletLocalService = PortletLocalServiceFactory
0439: .getService();
0440:
0441: portletLocalService.setOrgLaborPersistence(orgLaborPersistence);
0442: }
0443:
0444: public static com.liferay.portal.service.persistence.PasswordPolicyPersistence getPasswordPolicyPersistence() {
0445: PortletLocalService portletLocalService = PortletLocalServiceFactory
0446: .getService();
0447:
0448: return portletLocalService.getPasswordPolicyPersistence();
0449: }
0450:
0451: public static void setPasswordPolicyPersistence(
0452: com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence) {
0453: PortletLocalService portletLocalService = PortletLocalServiceFactory
0454: .getService();
0455:
0456: portletLocalService
0457: .setPasswordPolicyPersistence(passwordPolicyPersistence);
0458: }
0459:
0460: public static com.liferay.portal.service.persistence.PasswordPolicyFinder getPasswordPolicyFinder() {
0461: PortletLocalService portletLocalService = PortletLocalServiceFactory
0462: .getService();
0463:
0464: return portletLocalService.getPasswordPolicyFinder();
0465: }
0466:
0467: public static void setPasswordPolicyFinder(
0468: com.liferay.portal.service.persistence.PasswordPolicyFinder passwordPolicyFinder) {
0469: PortletLocalService portletLocalService = PortletLocalServiceFactory
0470: .getService();
0471:
0472: portletLocalService
0473: .setPasswordPolicyFinder(passwordPolicyFinder);
0474: }
0475:
0476: public static com.liferay.portal.service.persistence.PasswordPolicyRelPersistence getPasswordPolicyRelPersistence() {
0477: PortletLocalService portletLocalService = PortletLocalServiceFactory
0478: .getService();
0479:
0480: return portletLocalService.getPasswordPolicyRelPersistence();
0481: }
0482:
0483: public static void setPasswordPolicyRelPersistence(
0484: com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence) {
0485: PortletLocalService portletLocalService = PortletLocalServiceFactory
0486: .getService();
0487:
0488: portletLocalService
0489: .setPasswordPolicyRelPersistence(passwordPolicyRelPersistence);
0490: }
0491:
0492: public static com.liferay.portal.service.persistence.PasswordTrackerPersistence getPasswordTrackerPersistence() {
0493: PortletLocalService portletLocalService = PortletLocalServiceFactory
0494: .getService();
0495:
0496: return portletLocalService.getPasswordTrackerPersistence();
0497: }
0498:
0499: public static void setPasswordTrackerPersistence(
0500: com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence) {
0501: PortletLocalService portletLocalService = PortletLocalServiceFactory
0502: .getService();
0503:
0504: portletLocalService
0505: .setPasswordTrackerPersistence(passwordTrackerPersistence);
0506: }
0507:
0508: public static com.liferay.portal.service.persistence.PermissionPersistence getPermissionPersistence() {
0509: PortletLocalService portletLocalService = PortletLocalServiceFactory
0510: .getService();
0511:
0512: return portletLocalService.getPermissionPersistence();
0513: }
0514:
0515: public static void setPermissionPersistence(
0516: com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence) {
0517: PortletLocalService portletLocalService = PortletLocalServiceFactory
0518: .getService();
0519:
0520: portletLocalService
0521: .setPermissionPersistence(permissionPersistence);
0522: }
0523:
0524: public static com.liferay.portal.service.persistence.PermissionFinder getPermissionFinder() {
0525: PortletLocalService portletLocalService = PortletLocalServiceFactory
0526: .getService();
0527:
0528: return portletLocalService.getPermissionFinder();
0529: }
0530:
0531: public static void setPermissionFinder(
0532: com.liferay.portal.service.persistence.PermissionFinder permissionFinder) {
0533: PortletLocalService portletLocalService = PortletLocalServiceFactory
0534: .getService();
0535:
0536: portletLocalService.setPermissionFinder(permissionFinder);
0537: }
0538:
0539: public static com.liferay.portal.service.persistence.PermissionUserFinder getPermissionUserFinder() {
0540: PortletLocalService portletLocalService = PortletLocalServiceFactory
0541: .getService();
0542:
0543: return portletLocalService.getPermissionUserFinder();
0544: }
0545:
0546: public static void setPermissionUserFinder(
0547: com.liferay.portal.service.persistence.PermissionUserFinder permissionUserFinder) {
0548: PortletLocalService portletLocalService = PortletLocalServiceFactory
0549: .getService();
0550:
0551: portletLocalService
0552: .setPermissionUserFinder(permissionUserFinder);
0553: }
0554:
0555: public static com.liferay.portal.service.persistence.PhonePersistence getPhonePersistence() {
0556: PortletLocalService portletLocalService = PortletLocalServiceFactory
0557: .getService();
0558:
0559: return portletLocalService.getPhonePersistence();
0560: }
0561:
0562: public static void setPhonePersistence(
0563: com.liferay.portal.service.persistence.PhonePersistence phonePersistence) {
0564: PortletLocalService portletLocalService = PortletLocalServiceFactory
0565: .getService();
0566:
0567: portletLocalService.setPhonePersistence(phonePersistence);
0568: }
0569:
0570: public static com.liferay.portal.service.persistence.PluginSettingPersistence getPluginSettingPersistence() {
0571: PortletLocalService portletLocalService = PortletLocalServiceFactory
0572: .getService();
0573:
0574: return portletLocalService.getPluginSettingPersistence();
0575: }
0576:
0577: public static void setPluginSettingPersistence(
0578: com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence) {
0579: PortletLocalService portletLocalService = PortletLocalServiceFactory
0580: .getService();
0581:
0582: portletLocalService
0583: .setPluginSettingPersistence(pluginSettingPersistence);
0584: }
0585:
0586: public static com.liferay.portal.service.persistence.PortletPersistence getPortletPersistence() {
0587: PortletLocalService portletLocalService = PortletLocalServiceFactory
0588: .getService();
0589:
0590: return portletLocalService.getPortletPersistence();
0591: }
0592:
0593: public static void setPortletPersistence(
0594: com.liferay.portal.service.persistence.PortletPersistence portletPersistence) {
0595: PortletLocalService portletLocalService = PortletLocalServiceFactory
0596: .getService();
0597:
0598: portletLocalService.setPortletPersistence(portletPersistence);
0599: }
0600:
0601: public static com.liferay.portal.service.persistence.PortletPreferencesPersistence getPortletPreferencesPersistence() {
0602: PortletLocalService portletLocalService = PortletLocalServiceFactory
0603: .getService();
0604:
0605: return portletLocalService.getPortletPreferencesPersistence();
0606: }
0607:
0608: public static void setPortletPreferencesPersistence(
0609: com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence) {
0610: PortletLocalService portletLocalService = PortletLocalServiceFactory
0611: .getService();
0612:
0613: portletLocalService
0614: .setPortletPreferencesPersistence(portletPreferencesPersistence);
0615: }
0616:
0617: public static com.liferay.portal.service.persistence.PortletPreferencesFinder getPortletPreferencesFinder() {
0618: PortletLocalService portletLocalService = PortletLocalServiceFactory
0619: .getService();
0620:
0621: return portletLocalService.getPortletPreferencesFinder();
0622: }
0623:
0624: public static void setPortletPreferencesFinder(
0625: com.liferay.portal.service.persistence.PortletPreferencesFinder portletPreferencesFinder) {
0626: PortletLocalService portletLocalService = PortletLocalServiceFactory
0627: .getService();
0628:
0629: portletLocalService
0630: .setPortletPreferencesFinder(portletPreferencesFinder);
0631: }
0632:
0633: public static com.liferay.portal.service.persistence.RegionPersistence getRegionPersistence() {
0634: PortletLocalService portletLocalService = PortletLocalServiceFactory
0635: .getService();
0636:
0637: return portletLocalService.getRegionPersistence();
0638: }
0639:
0640: public static void setRegionPersistence(
0641: com.liferay.portal.service.persistence.RegionPersistence regionPersistence) {
0642: PortletLocalService portletLocalService = PortletLocalServiceFactory
0643: .getService();
0644:
0645: portletLocalService.setRegionPersistence(regionPersistence);
0646: }
0647:
0648: public static com.liferay.portal.service.persistence.ReleasePersistence getReleasePersistence() {
0649: PortletLocalService portletLocalService = PortletLocalServiceFactory
0650: .getService();
0651:
0652: return portletLocalService.getReleasePersistence();
0653: }
0654:
0655: public static void setReleasePersistence(
0656: com.liferay.portal.service.persistence.ReleasePersistence releasePersistence) {
0657: PortletLocalService portletLocalService = PortletLocalServiceFactory
0658: .getService();
0659:
0660: portletLocalService.setReleasePersistence(releasePersistence);
0661: }
0662:
0663: public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
0664: PortletLocalService portletLocalService = PortletLocalServiceFactory
0665: .getService();
0666:
0667: return portletLocalService.getResourcePersistence();
0668: }
0669:
0670: public static void setResourcePersistence(
0671: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
0672: PortletLocalService portletLocalService = PortletLocalServiceFactory
0673: .getService();
0674:
0675: portletLocalService.setResourcePersistence(resourcePersistence);
0676: }
0677:
0678: public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
0679: PortletLocalService portletLocalService = PortletLocalServiceFactory
0680: .getService();
0681:
0682: return portletLocalService.getResourceFinder();
0683: }
0684:
0685: public static void setResourceFinder(
0686: com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
0687: PortletLocalService portletLocalService = PortletLocalServiceFactory
0688: .getService();
0689:
0690: portletLocalService.setResourceFinder(resourceFinder);
0691: }
0692:
0693: public static com.liferay.portal.service.persistence.ResourceCodePersistence getResourceCodePersistence() {
0694: PortletLocalService portletLocalService = PortletLocalServiceFactory
0695: .getService();
0696:
0697: return portletLocalService.getResourceCodePersistence();
0698: }
0699:
0700: public static void setResourceCodePersistence(
0701: com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence) {
0702: PortletLocalService portletLocalService = PortletLocalServiceFactory
0703: .getService();
0704:
0705: portletLocalService
0706: .setResourceCodePersistence(resourceCodePersistence);
0707: }
0708:
0709: public static com.liferay.portal.service.persistence.RolePersistence getRolePersistence() {
0710: PortletLocalService portletLocalService = PortletLocalServiceFactory
0711: .getService();
0712:
0713: return portletLocalService.getRolePersistence();
0714: }
0715:
0716: public static void setRolePersistence(
0717: com.liferay.portal.service.persistence.RolePersistence rolePersistence) {
0718: PortletLocalService portletLocalService = PortletLocalServiceFactory
0719: .getService();
0720:
0721: portletLocalService.setRolePersistence(rolePersistence);
0722: }
0723:
0724: public static com.liferay.portal.service.persistence.RoleFinder getRoleFinder() {
0725: PortletLocalService portletLocalService = PortletLocalServiceFactory
0726: .getService();
0727:
0728: return portletLocalService.getRoleFinder();
0729: }
0730:
0731: public static void setRoleFinder(
0732: com.liferay.portal.service.persistence.RoleFinder roleFinder) {
0733: PortletLocalService portletLocalService = PortletLocalServiceFactory
0734: .getService();
0735:
0736: portletLocalService.setRoleFinder(roleFinder);
0737: }
0738:
0739: public static com.liferay.portal.service.persistence.ServiceComponentPersistence getServiceComponentPersistence() {
0740: PortletLocalService portletLocalService = PortletLocalServiceFactory
0741: .getService();
0742:
0743: return portletLocalService.getServiceComponentPersistence();
0744: }
0745:
0746: public static void setServiceComponentPersistence(
0747: com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence) {
0748: PortletLocalService portletLocalService = PortletLocalServiceFactory
0749: .getService();
0750:
0751: portletLocalService
0752: .setServiceComponentPersistence(serviceComponentPersistence);
0753: }
0754:
0755: public static com.liferay.portal.service.persistence.SubscriptionPersistence getSubscriptionPersistence() {
0756: PortletLocalService portletLocalService = PortletLocalServiceFactory
0757: .getService();
0758:
0759: return portletLocalService.getSubscriptionPersistence();
0760: }
0761:
0762: public static void setSubscriptionPersistence(
0763: com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence) {
0764: PortletLocalService portletLocalService = PortletLocalServiceFactory
0765: .getService();
0766:
0767: portletLocalService
0768: .setSubscriptionPersistence(subscriptionPersistence);
0769: }
0770:
0771: public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
0772: PortletLocalService portletLocalService = PortletLocalServiceFactory
0773: .getService();
0774:
0775: return portletLocalService.getUserPersistence();
0776: }
0777:
0778: public static void setUserPersistence(
0779: com.liferay.portal.service.persistence.UserPersistence userPersistence) {
0780: PortletLocalService portletLocalService = PortletLocalServiceFactory
0781: .getService();
0782:
0783: portletLocalService.setUserPersistence(userPersistence);
0784: }
0785:
0786: public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
0787: PortletLocalService portletLocalService = PortletLocalServiceFactory
0788: .getService();
0789:
0790: return portletLocalService.getUserFinder();
0791: }
0792:
0793: public static void setUserFinder(
0794: com.liferay.portal.service.persistence.UserFinder userFinder) {
0795: PortletLocalService portletLocalService = PortletLocalServiceFactory
0796: .getService();
0797:
0798: portletLocalService.setUserFinder(userFinder);
0799: }
0800:
0801: public static com.liferay.portal.service.persistence.UserGroupPersistence getUserGroupPersistence() {
0802: PortletLocalService portletLocalService = PortletLocalServiceFactory
0803: .getService();
0804:
0805: return portletLocalService.getUserGroupPersistence();
0806: }
0807:
0808: public static void setUserGroupPersistence(
0809: com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence) {
0810: PortletLocalService portletLocalService = PortletLocalServiceFactory
0811: .getService();
0812:
0813: portletLocalService
0814: .setUserGroupPersistence(userGroupPersistence);
0815: }
0816:
0817: public static com.liferay.portal.service.persistence.UserGroupFinder getUserGroupFinder() {
0818: PortletLocalService portletLocalService = PortletLocalServiceFactory
0819: .getService();
0820:
0821: return portletLocalService.getUserGroupFinder();
0822: }
0823:
0824: public static void setUserGroupFinder(
0825: com.liferay.portal.service.persistence.UserGroupFinder userGroupFinder) {
0826: PortletLocalService portletLocalService = PortletLocalServiceFactory
0827: .getService();
0828:
0829: portletLocalService.setUserGroupFinder(userGroupFinder);
0830: }
0831:
0832: public static com.liferay.portal.service.persistence.UserGroupRolePersistence getUserGroupRolePersistence() {
0833: PortletLocalService portletLocalService = PortletLocalServiceFactory
0834: .getService();
0835:
0836: return portletLocalService.getUserGroupRolePersistence();
0837: }
0838:
0839: public static void setUserGroupRolePersistence(
0840: com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence) {
0841: PortletLocalService portletLocalService = PortletLocalServiceFactory
0842: .getService();
0843:
0844: portletLocalService
0845: .setUserGroupRolePersistence(userGroupRolePersistence);
0846: }
0847:
0848: public static com.liferay.portal.service.persistence.UserIdMapperPersistence getUserIdMapperPersistence() {
0849: PortletLocalService portletLocalService = PortletLocalServiceFactory
0850: .getService();
0851:
0852: return portletLocalService.getUserIdMapperPersistence();
0853: }
0854:
0855: public static void setUserIdMapperPersistence(
0856: com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence) {
0857: PortletLocalService portletLocalService = PortletLocalServiceFactory
0858: .getService();
0859:
0860: portletLocalService
0861: .setUserIdMapperPersistence(userIdMapperPersistence);
0862: }
0863:
0864: public static com.liferay.portal.service.persistence.UserTrackerPersistence getUserTrackerPersistence() {
0865: PortletLocalService portletLocalService = PortletLocalServiceFactory
0866: .getService();
0867:
0868: return portletLocalService.getUserTrackerPersistence();
0869: }
0870:
0871: public static void setUserTrackerPersistence(
0872: com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence) {
0873: PortletLocalService portletLocalService = PortletLocalServiceFactory
0874: .getService();
0875:
0876: portletLocalService
0877: .setUserTrackerPersistence(userTrackerPersistence);
0878: }
0879:
0880: public static com.liferay.portal.service.persistence.UserTrackerPathPersistence getUserTrackerPathPersistence() {
0881: PortletLocalService portletLocalService = PortletLocalServiceFactory
0882: .getService();
0883:
0884: return portletLocalService.getUserTrackerPathPersistence();
0885: }
0886:
0887: public static void setUserTrackerPathPersistence(
0888: com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence) {
0889: PortletLocalService portletLocalService = PortletLocalServiceFactory
0890: .getService();
0891:
0892: portletLocalService
0893: .setUserTrackerPathPersistence(userTrackerPathPersistence);
0894: }
0895:
0896: public static com.liferay.portal.service.persistence.WebDAVPropsPersistence getWebDAVPropsPersistence() {
0897: PortletLocalService portletLocalService = PortletLocalServiceFactory
0898: .getService();
0899:
0900: return portletLocalService.getWebDAVPropsPersistence();
0901: }
0902:
0903: public static void setWebDAVPropsPersistence(
0904: com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence) {
0905: PortletLocalService portletLocalService = PortletLocalServiceFactory
0906: .getService();
0907:
0908: portletLocalService
0909: .setWebDAVPropsPersistence(webDAVPropsPersistence);
0910: }
0911:
0912: public static com.liferay.portal.service.persistence.WebsitePersistence getWebsitePersistence() {
0913: PortletLocalService portletLocalService = PortletLocalServiceFactory
0914: .getService();
0915:
0916: return portletLocalService.getWebsitePersistence();
0917: }
0918:
0919: public static void setWebsitePersistence(
0920: com.liferay.portal.service.persistence.WebsitePersistence websitePersistence) {
0921: PortletLocalService portletLocalService = PortletLocalServiceFactory
0922: .getService();
0923:
0924: portletLocalService.setWebsitePersistence(websitePersistence);
0925: }
0926:
0927: public static void afterPropertiesSet() {
0928: PortletLocalService portletLocalService = PortletLocalServiceFactory
0929: .getService();
0930:
0931: portletLocalService.afterPropertiesSet();
0932: }
0933:
0934: public static void destroyPortlet(
0935: com.liferay.portal.model.Portlet portlet) {
0936: PortletLocalService portletLocalService = PortletLocalServiceFactory
0937: .getService();
0938:
0939: portletLocalService.destroyPortlet(portlet);
0940: }
0941:
0942: public static com.liferay.portal.model.PortletCategory getEARDisplay(
0943: java.lang.String xml)
0944: throws com.liferay.portal.SystemException {
0945: PortletLocalService portletLocalService = PortletLocalServiceFactory
0946: .getService();
0947:
0948: return portletLocalService.getEARDisplay(xml);
0949: }
0950:
0951: public static com.liferay.portal.model.PortletCategory getWARDisplay(
0952: java.lang.String servletContextName, java.lang.String xml)
0953: throws com.liferay.portal.SystemException {
0954: PortletLocalService portletLocalService = PortletLocalServiceFactory
0955: .getService();
0956:
0957: return portletLocalService.getWARDisplay(servletContextName,
0958: xml);
0959: }
0960:
0961: public static java.util.List getFriendlyURLMappers() {
0962: PortletLocalService portletLocalService = PortletLocalServiceFactory
0963: .getService();
0964:
0965: return portletLocalService.getFriendlyURLMappers();
0966: }
0967:
0968: public static com.liferay.portal.model.Portlet getPortletById(
0969: long companyId, java.lang.String portletId)
0970: throws com.liferay.portal.SystemException {
0971: PortletLocalService portletLocalService = PortletLocalServiceFactory
0972: .getService();
0973:
0974: return portletLocalService.getPortletById(companyId, portletId);
0975: }
0976:
0977: public static com.liferay.portal.model.Portlet getPortletByStrutsPath(
0978: long companyId, java.lang.String strutsPath)
0979: throws com.liferay.portal.SystemException {
0980: PortletLocalService portletLocalService = PortletLocalServiceFactory
0981: .getService();
0982:
0983: return portletLocalService.getPortletByStrutsPath(companyId,
0984: strutsPath);
0985: }
0986:
0987: public static java.util.List getPortlets() {
0988: PortletLocalService portletLocalService = PortletLocalServiceFactory
0989: .getService();
0990:
0991: return portletLocalService.getPortlets();
0992: }
0993:
0994: public static java.util.List getPortlets(long companyId)
0995: throws com.liferay.portal.SystemException {
0996: PortletLocalService portletLocalService = PortletLocalServiceFactory
0997: .getService();
0998:
0999: return portletLocalService.getPortlets(companyId);
1000: }
1001:
1002: public static java.util.List getPortlets(long companyId,
1003: boolean showSystem, boolean showPortal)
1004: throws com.liferay.portal.SystemException {
1005: PortletLocalService portletLocalService = PortletLocalServiceFactory
1006: .getService();
1007:
1008: return portletLocalService.getPortlets(companyId, showSystem,
1009: showPortal);
1010: }
1011:
1012: public static boolean hasPortlet(long companyId,
1013: java.lang.String portletId)
1014: throws com.liferay.portal.SystemException {
1015: PortletLocalService portletLocalService = PortletLocalServiceFactory
1016: .getService();
1017:
1018: return portletLocalService.hasPortlet(companyId, portletId);
1019: }
1020:
1021: public static void initEAR(java.lang.String[] xmls,
1022: com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
1023: PortletLocalService portletLocalService = PortletLocalServiceFactory
1024: .getService();
1025:
1026: portletLocalService.initEAR(xmls, pluginPackage);
1027: }
1028:
1029: public static java.util.List initWAR(
1030: java.lang.String servletContextName,
1031: java.lang.String[] xmls,
1032: com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
1033: PortletLocalService portletLocalService = PortletLocalServiceFactory
1034: .getService();
1035:
1036: return portletLocalService.initWAR(servletContextName, xmls,
1037: pluginPackage);
1038: }
1039:
1040: public static com.liferay.portal.model.Portlet updatePortlet(
1041: long companyId, java.lang.String portletId,
1042: java.lang.String roles, boolean active)
1043: throws com.liferay.portal.PortalException,
1044: com.liferay.portal.SystemException {
1045: PortletLocalService portletLocalService = PortletLocalServiceFactory
1046: .getService();
1047:
1048: return portletLocalService.updatePortlet(companyId, portletId,
1049: roles, active);
1050: }
1051: }
|