diff --git a/build.properties b/build.properties index 8918750c9143dc..192f16b2ea12d6 100644 --- a/build.properties +++ b/build.properties @@ -211,6 +211,7 @@ # apps/on-demand-admin,\ # apps/organizations,\ # apps/password-policies-admin,\ + # apps/permission-template,\ # apps/plugins-admin,\ # apps/portal,\ # apps/portal-background-task,\ diff --git a/modules/apps/change-tracking/change-tracking-service/build.gradle b/modules/apps/change-tracking/change-tracking-service/build.gradle index 3577ba50e84079..c964623a9ea787 100644 --- a/modules/apps/change-tracking/change-tracking-service/build.gradle +++ b/modules/apps/change-tracking/change-tracking-service/build.gradle @@ -18,6 +18,7 @@ dependencies { compileOnly project(":apps:change-tracking:change-tracking-store-api") compileOnly project(":apps:journal:journal-api") compileOnly project(":apps:json-storage:json-storage-api") + compileOnly project(":apps:permission-template:permission-template-api") compileOnly project(":apps:portal-background-task:portal-background-task-api") compileOnly project(":apps:portal-search:portal-search-api") compileOnly project(":apps:portal-search:portal-search-spi") diff --git a/modules/apps/change-tracking/change-tracking-service/src/main/java/com/liferay/change/tracking/internal/spi/reference/PermissionTemplateTableReferenceDefinition.java b/modules/apps/change-tracking/change-tracking-service/src/main/java/com/liferay/change/tracking/internal/spi/reference/PermissionTemplateTableReferenceDefinition.java new file mode 100644 index 00000000000000..6f5cc4ddfa34bb --- /dev/null +++ b/modules/apps/change-tracking/change-tracking-service/src/main/java/com/liferay/change/tracking/internal/spi/reference/PermissionTemplateTableReferenceDefinition.java @@ -0,0 +1,55 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.change.tracking.internal.spi.reference; + +import com.liferay.change.tracking.spi.reference.TableReferenceDefinition; +import com.liferay.change.tracking.spi.reference.builder.ChildTableReferenceInfoBuilder; +import com.liferay.change.tracking.spi.reference.builder.ParentTableReferenceInfoBuilder; +import com.liferay.permission.template.model.PermissionTemplate; +import com.liferay.permission.template.model.PermissionTemplateTable; +import com.liferay.permission.template.service.persistence.PermissionTemplatePersistence; +import com.liferay.portal.kernel.service.persistence.BasePersistence; + +import org.osgi.service.component.annotations.Component; +import org.osgi.service.component.annotations.Reference; + +/** + * @author Quan Huynh + */ +@Component(service = TableReferenceDefinition.class) +public class PermissionTemplateTableReferenceDefinition + implements TableReferenceDefinition { + + @Override + public void defineChildTableReferences( + ChildTableReferenceInfoBuilder + childTableReferenceInfoBuilder) { + + childTableReferenceInfoBuilder.resourcePermissionReference( + PermissionTemplateTable.INSTANCE.permissionTemplateId, + PermissionTemplate.class); + } + + @Override + public void defineParentTableReferences( + ParentTableReferenceInfoBuilder + parentTableReferenceInfoBuilder) { + } + + @Override + public BasePersistence getBasePersistence() { + return _permissionTemplatePersistence; + } + + @Override + public PermissionTemplateTable getTable() { + return PermissionTemplateTable.INSTANCE; + } + + @Reference + private PermissionTemplatePersistence _permissionTemplatePersistence; + +} \ No newline at end of file diff --git a/modules/apps/change-tracking/change-tracking-web/build.gradle b/modules/apps/change-tracking/change-tracking-web/build.gradle index 6457bed04425a6..95b51a8f4db032 100644 --- a/modules/apps/change-tracking/change-tracking-web/build.gradle +++ b/modules/apps/change-tracking/change-tracking-web/build.gradle @@ -27,6 +27,7 @@ dependencies { compileOnly project(":apps:layout:layout-page-template-api") compileOnly project(":apps:learn:learn-api") compileOnly project(":apps:oauth2-provider:oauth2-provider-api") + compileOnly project(":apps:permission-template:permission-template-api") compileOnly project(":apps:portal-background-task:portal-background-task-api") compileOnly project(":apps:portal-configuration:portal-configuration-module-configuration-api") compileOnly project(":apps:portal-search:portal-search-api") diff --git a/modules/apps/change-tracking/change-tracking-web/src/main/java/com/liferay/change/tracking/web/internal/spi/display/PermissionTemplateCTDisplayRenderer.java b/modules/apps/change-tracking/change-tracking-web/src/main/java/com/liferay/change/tracking/web/internal/spi/display/PermissionTemplateCTDisplayRenderer.java new file mode 100644 index 00000000000000..9d76dcd0bef8e5 --- /dev/null +++ b/modules/apps/change-tracking/change-tracking-web/src/main/java/com/liferay/change/tracking/web/internal/spi/display/PermissionTemplateCTDisplayRenderer.java @@ -0,0 +1,79 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.change.tracking.web.internal.spi.display; + +import com.liferay.change.tracking.spi.display.BaseCTDisplayRenderer; +import com.liferay.change.tracking.spi.display.CTDisplayRenderer; +import com.liferay.permission.template.model.PermissionTemplate; +import com.liferay.portal.kernel.language.Language; +import com.liferay.portal.kernel.model.ClassName; +import com.liferay.portal.kernel.security.permission.ResourceActions; +import com.liferay.portal.kernel.service.ClassNameLocalService; + +import java.util.Locale; + +import org.osgi.service.component.annotations.Component; +import org.osgi.service.component.annotations.Reference; + +/** + * @author Quan Huynh + */ +@Component(service = CTDisplayRenderer.class) +public class PermissionTemplateCTDisplayRenderer + extends BaseCTDisplayRenderer { + + @Override + public Class getModelClass() { + return PermissionTemplate.class; + } + + @Override + public String getTitle( + Locale locale, PermissionTemplate permissionTemplate) { + + ClassName className = _classNameLocalService.fetchClassName( + permissionTemplate.getClassNameId()); + + if (className == null) { + return null; + } + + return _language.format( + locale, "x-for-x", + new String[] { + _resourceActions.getModelResourceNamePrefix() + + PermissionTemplate.class.getName(), + _resourceActions.getModelResource( + locale, className.getClassName()) + }); + } + + @Override + public boolean isHideable(PermissionTemplate permissionTemplate) { + return true; + } + + @Override + protected void buildDisplay( + DisplayBuilder displayBuilder) { + + PermissionTemplate permissionTemplate = displayBuilder.getModel(); + + displayBuilder.display( + "permission-template-enabled", + permissionTemplate.isPermissionTemplateEnabled()); + } + + @Reference + private ClassNameLocalService _classNameLocalService; + + @Reference + private Language _language; + + @Reference + private ResourceActions _resourceActions; + +} \ No newline at end of file diff --git a/modules/apps/document-library/document-library-service/build.gradle b/modules/apps/document-library/document-library-service/build.gradle index 7b8b3c61567b69..c100ae053ff054 100644 --- a/modules/apps/document-library/document-library-service/build.gradle +++ b/modules/apps/document-library/document-library-service/build.gradle @@ -33,6 +33,7 @@ dependencies { compileOnly project(":apps:export-import:export-import-api") compileOnly project(":apps:friendly-url:friendly-url-api") compileOnly project(":apps:info:info-api") + compileOnly project(":apps:permission-template:permission-template-api") compileOnly project(":apps:portal-configuration:portal-configuration-module-configuration-api") compileOnly project(":apps:portal-configuration:portal-configuration-upgrade-api") compileOnly project(":apps:portal-search:portal-search-api") diff --git a/modules/apps/document-library/document-library-service/src/main/java/com/liferay/document/library/internal/change/tracking/spi/reference/DLFolderTableReferenceDefinition.java b/modules/apps/document-library/document-library-service/src/main/java/com/liferay/document/library/internal/change/tracking/spi/reference/DLFolderTableReferenceDefinition.java index 089f004feddab7..da1da9c3bbf9fd 100644 --- a/modules/apps/document-library/document-library-service/src/main/java/com/liferay/document/library/internal/change/tracking/spi/reference/DLFolderTableReferenceDefinition.java +++ b/modules/apps/document-library/document-library-service/src/main/java/com/liferay/document/library/internal/change/tracking/spi/reference/DLFolderTableReferenceDefinition.java @@ -12,6 +12,7 @@ import com.liferay.document.library.kernel.model.DLFolder; import com.liferay.document.library.kernel.model.DLFolderTable; import com.liferay.document.library.kernel.service.persistence.DLFolderPersistence; +import com.liferay.permission.template.model.PermissionTemplateTable; import com.liferay.portal.kernel.service.persistence.BasePersistence; import org.osgi.service.component.annotations.Component; @@ -33,6 +34,9 @@ public void defineChildTableReferences( DLFolderTable.INSTANCE.folderId, DLFolder.class ).resourcePermissionReference( DLFolderTable.INSTANCE.folderId, DLFolder.class + ).singleColumnReference( + DLFolderTable.INSTANCE.folderId, + PermissionTemplateTable.INSTANCE.classPK ); } diff --git a/modules/apps/document-library/document-library-service/src/main/java/com/liferay/document/library/internal/service/PermissionTemplateDLFolderLocalServiceWrapper.java b/modules/apps/document-library/document-library-service/src/main/java/com/liferay/document/library/internal/service/PermissionTemplateDLFolderLocalServiceWrapper.java new file mode 100644 index 00000000000000..e4137ac9602562 --- /dev/null +++ b/modules/apps/document-library/document-library-service/src/main/java/com/liferay/document/library/internal/service/PermissionTemplateDLFolderLocalServiceWrapper.java @@ -0,0 +1,53 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.document.library.internal.service; + +import com.liferay.document.library.kernel.model.DLFolder; +import com.liferay.document.library.kernel.service.DLFolderLocalServiceWrapper; +import com.liferay.permission.template.service.PermissionTemplateLocalService; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.feature.flag.FeatureFlagManagerUtil; +import com.liferay.portal.kernel.service.ServiceContext; +import com.liferay.portal.kernel.service.ServiceWrapper; +import com.liferay.portal.kernel.util.ParamUtil; + +import org.osgi.service.component.annotations.Component; +import org.osgi.service.component.annotations.Reference; + +/** + * @author Loc Pham + */ +@Component(service = ServiceWrapper.class) +public class PermissionTemplateDLFolderLocalServiceWrapper + extends DLFolderLocalServiceWrapper { + + @Override + public DLFolder addFolder( + String externalReferenceCode, long userId, long groupId, + long repositoryId, boolean mountPoint, long parentFolderId, + String name, String description, boolean hidden, + ServiceContext serviceContext) + throws PortalException { + + DLFolder folder = super.addFolder( + externalReferenceCode, userId, groupId, repositoryId, mountPoint, + parentFolderId, name, description, hidden, serviceContext); + + if (FeatureFlagManagerUtil.isEnabled("LPS-87806")) { + _permissionTemplateLocalService.addPermissionTemplate( + folder.getCompanyId(), groupId, DLFolder.class.getName(), + folder.getFolderId(), + ParamUtil.getBoolean( + serviceContext, "permissionTemplateEnabled")); + } + + return folder; + } + + @Reference + private PermissionTemplateLocalService _permissionTemplateLocalService; + +} \ No newline at end of file diff --git a/modules/apps/document-library/document-library-web/build.gradle b/modules/apps/document-library/document-library-web/build.gradle index 82b5d96a893e7f..985f4238087101 100644 --- a/modules/apps/document-library/document-library-web/build.gradle +++ b/modules/apps/document-library/document-library-web/build.gradle @@ -58,6 +58,7 @@ dependencies { compileOnly project(":apps:layout:layout-page-template-api") compileOnly project(":apps:learn:learn-api") compileOnly project(":apps:learn:learn-taglib") + compileOnly project(":apps:permission-template:permission-template-api") compileOnly project(":apps:portal-configuration:portal-configuration-module-configuration-api") compileOnly project(":apps:portal-workflow:portal-workflow-api") compileOnly project(":apps:portal-workflow:portal-workflow-taglib") diff --git a/modules/apps/permission-template/.gitignore b/modules/apps/permission-template/.gitignore new file mode 100644 index 00000000000000..c19c1724156065 --- /dev/null +++ b/modules/apps/permission-template/.gitignore @@ -0,0 +1,3 @@ +.gradle/ +build/ +target/ \ No newline at end of file diff --git a/modules/apps/permission-template/app.bnd b/modules/apps/permission-template/app.bnd new file mode 100644 index 00000000000000..13a631710254ce --- /dev/null +++ b/modules/apps/permission-template/app.bnd @@ -0,0 +1,15 @@ +Liferay-Releng-App-Description: +Liferay-Releng-App-Title: ${liferay.releng.app.title.prefix} Permission Template +Liferay-Releng-Bundle: true +Liferay-Releng-Category: Communication +Liferay-Releng-Demo-Url: +Liferay-Releng-Deprecated: false +Liferay-Releng-Fix-Delivery-Method: core +Liferay-Releng-Labs: false +Liferay-Releng-Marketplace: true +Liferay-Releng-Portal-Required: true +Liferay-Releng-Public: ${liferay.releng.public} +Liferay-Releng-Restart-Required: true +Liferay-Releng-Suite: collaboration +Liferay-Releng-Support-Url: http://www.liferay.com +Liferay-Releng-Supported: ${liferay.releng.supported} \ No newline at end of file diff --git a/modules/apps/permission-template/build.gradle b/modules/apps/permission-template/build.gradle new file mode 100644 index 00000000000000..e69de29bb2d1d6 diff --git a/modules/apps/permission-template/permission-template-api/.lfrbuild-portal b/modules/apps/permission-template/permission-template-api/.lfrbuild-portal new file mode 100644 index 00000000000000..e69de29bb2d1d6 diff --git a/modules/apps/permission-template/permission-template-api/bnd.bnd b/modules/apps/permission-template/permission-template-api/bnd.bnd new file mode 100644 index 00000000000000..4219d3514bf86c --- /dev/null +++ b/modules/apps/permission-template/permission-template-api/bnd.bnd @@ -0,0 +1,8 @@ +Bundle-Name: Liferay Permission Template API +Bundle-SymbolicName: com.liferay.permission.template.api +Bundle-Version: 1.0.0 +Export-Package:\ + com.liferay.permission.template.exception,\ + com.liferay.permission.template.model,\ + com.liferay.permission.template.service,\ + com.liferay.permission.template.service.persistence \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-api/build.gradle b/modules/apps/permission-template/permission-template-api/build.gradle new file mode 100644 index 00000000000000..69a09c51517ce9 --- /dev/null +++ b/modules/apps/permission-template/permission-template-api/build.gradle @@ -0,0 +1,7 @@ +dependencies { + compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "default" + compileOnly group: "org.osgi", name: "org.osgi.annotation.versioning", version: "1.1.0" + compileOnly group: "org.osgi", name: "osgi.core", version: "6.0.0" + compileOnly project(":core:petra:petra-function") + compileOnly project(":core:petra:petra-sql-dsl-api") +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/exception/NoSuchPermissionTemplateException.java b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/exception/NoSuchPermissionTemplateException.java new file mode 100644 index 00000000000000..12e16d47f07457 --- /dev/null +++ b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/exception/NoSuchPermissionTemplateException.java @@ -0,0 +1,30 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.exception; + +import com.liferay.portal.kernel.exception.NoSuchModelException; + +/** + * @author Brian Wing Shun Chan + */ +public class NoSuchPermissionTemplateException extends NoSuchModelException { + + public NoSuchPermissionTemplateException() { + } + + public NoSuchPermissionTemplateException(String msg) { + super(msg); + } + + public NoSuchPermissionTemplateException(String msg, Throwable throwable) { + super(msg, throwable); + } + + public NoSuchPermissionTemplateException(Throwable throwable) { + super(throwable); + } + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/model/PermissionTemplate.java b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/model/PermissionTemplate.java new file mode 100644 index 00000000000000..d3ac502cc502a2 --- /dev/null +++ b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/model/PermissionTemplate.java @@ -0,0 +1,54 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.model; + +import com.liferay.portal.kernel.annotation.ImplementationClassName; +import com.liferay.portal.kernel.model.PersistedModel; +import com.liferay.portal.kernel.util.Accessor; + +import org.osgi.annotation.versioning.ProviderType; + +/** + * The extended model interface for the PermissionTemplate service. Represents a row in the "PermissionTemplate" database table, with each column mapped to a property of this class. + * + * @author Brian Wing Shun Chan + * @see PermissionTemplateModel + * @generated + */ +@ImplementationClassName( + "com.liferay.permission.template.model.impl.PermissionTemplateImpl" +) +@ProviderType +public interface PermissionTemplate + extends PermissionTemplateModel, PersistedModel { + + /* + * NOTE FOR DEVELOPERS: + * + * Never modify this interface directly. Add methods to com.liferay.permission.template.model.impl.PermissionTemplateImpl and rerun ServiceBuilder to automatically copy the method declarations to this interface. + */ + public static final Accessor + PERMISSION_TEMPLATE_ID_ACCESSOR = + new Accessor() { + + @Override + public Long get(PermissionTemplate permissionTemplate) { + return permissionTemplate.getPermissionTemplateId(); + } + + @Override + public Class getAttributeClass() { + return Long.class; + } + + @Override + public Class getTypeClass() { + return PermissionTemplate.class; + } + + }; + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/model/PermissionTemplateModel.java b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/model/PermissionTemplateModel.java new file mode 100644 index 00000000000000..cd930b388fe54b --- /dev/null +++ b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/model/PermissionTemplateModel.java @@ -0,0 +1,200 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.model; + +import com.liferay.portal.kernel.model.AttachedModel; +import com.liferay.portal.kernel.model.BaseModel; +import com.liferay.portal.kernel.model.MVCCModel; +import com.liferay.portal.kernel.model.ShardedModel; +import com.liferay.portal.kernel.model.change.tracking.CTModel; + +import org.osgi.annotation.versioning.ProviderType; + +/** + * The base model interface for the PermissionTemplate service. Represents a row in the "PermissionTemplate" database table, with each column mapped to a property of this class. + * + *

+ * This interface and its corresponding implementation com.liferay.permission.template.model.impl.PermissionTemplateModelImpl exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in com.liferay.permission.template.model.impl.PermissionTemplateImpl. + *

+ * + * @author Brian Wing Shun Chan + * @see PermissionTemplate + * @generated + */ +@ProviderType +public interface PermissionTemplateModel + extends AttachedModel, BaseModel, + CTModel, MVCCModel, ShardedModel { + + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this interface directly. All methods that expect a permission template model instance should use the {@link PermissionTemplate} interface instead. + */ + + /** + * Returns the primary key of this permission template. + * + * @return the primary key of this permission template + */ + @Override + public long getPrimaryKey(); + + /** + * Sets the primary key of this permission template. + * + * @param primaryKey the primary key of this permission template + */ + @Override + public void setPrimaryKey(long primaryKey); + + /** + * Returns the mvcc version of this permission template. + * + * @return the mvcc version of this permission template + */ + @Override + public long getMvccVersion(); + + /** + * Sets the mvcc version of this permission template. + * + * @param mvccVersion the mvcc version of this permission template + */ + @Override + public void setMvccVersion(long mvccVersion); + + /** + * Returns the ct collection ID of this permission template. + * + * @return the ct collection ID of this permission template + */ + @Override + public long getCtCollectionId(); + + /** + * Sets the ct collection ID of this permission template. + * + * @param ctCollectionId the ct collection ID of this permission template + */ + @Override + public void setCtCollectionId(long ctCollectionId); + + /** + * Returns the permission template ID of this permission template. + * + * @return the permission template ID of this permission template + */ + public long getPermissionTemplateId(); + + /** + * Sets the permission template ID of this permission template. + * + * @param permissionTemplateId the permission template ID of this permission template + */ + public void setPermissionTemplateId(long permissionTemplateId); + + /** + * Returns the group ID of this permission template. + * + * @return the group ID of this permission template + */ + public long getGroupId(); + + /** + * Sets the group ID of this permission template. + * + * @param groupId the group ID of this permission template + */ + public void setGroupId(long groupId); + + /** + * Returns the company ID of this permission template. + * + * @return the company ID of this permission template + */ + @Override + public long getCompanyId(); + + /** + * Sets the company ID of this permission template. + * + * @param companyId the company ID of this permission template + */ + @Override + public void setCompanyId(long companyId); + + /** + * Returns the fully qualified class name of this permission template. + * + * @return the fully qualified class name of this permission template + */ + @Override + public String getClassName(); + + public void setClassName(String className); + + /** + * Returns the class name ID of this permission template. + * + * @return the class name ID of this permission template + */ + @Override + public long getClassNameId(); + + /** + * Sets the class name ID of this permission template. + * + * @param classNameId the class name ID of this permission template + */ + @Override + public void setClassNameId(long classNameId); + + /** + * Returns the class pk of this permission template. + * + * @return the class pk of this permission template + */ + @Override + public long getClassPK(); + + /** + * Sets the class pk of this permission template. + * + * @param classPK the class pk of this permission template + */ + @Override + public void setClassPK(long classPK); + + /** + * Returns the permission template enabled of this permission template. + * + * @return the permission template enabled of this permission template + */ + public boolean getPermissionTemplateEnabled(); + + /** + * Returns true if this permission template is permission template enabled. + * + * @return true if this permission template is permission template enabled; false otherwise + */ + public boolean isPermissionTemplateEnabled(); + + /** + * Sets whether this permission template is permission template enabled. + * + * @param permissionTemplateEnabled the permission template enabled of this permission template + */ + public void setPermissionTemplateEnabled(boolean permissionTemplateEnabled); + + @Override + public PermissionTemplate cloneWithOriginalValues(); + + public default String toXmlString() { + return null; + } + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/model/PermissionTemplateTable.java b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/model/PermissionTemplateTable.java new file mode 100644 index 00000000000000..da036ff5446ae5 --- /dev/null +++ b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/model/PermissionTemplateTable.java @@ -0,0 +1,54 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.model; + +import com.liferay.petra.sql.dsl.Column; +import com.liferay.petra.sql.dsl.base.BaseTable; + +import java.sql.Types; + +/** + * The table class for the "PermissionTemplate" database table. + * + * @author Brian Wing Shun Chan + * @see PermissionTemplate + * @generated + */ +public class PermissionTemplateTable + extends BaseTable { + + public static final PermissionTemplateTable INSTANCE = + new PermissionTemplateTable(); + + public final Column mvccVersion = + createColumn( + "mvccVersion", Long.class, Types.BIGINT, Column.FLAG_NULLITY); + public final Column ctCollectionId = + createColumn( + "ctCollectionId", Long.class, Types.BIGINT, Column.FLAG_PRIMARY); + public final Column permissionTemplateId = + createColumn( + "permissionTemplateId", Long.class, Types.BIGINT, + Column.FLAG_PRIMARY); + public final Column groupId = createColumn( + "groupId", Long.class, Types.BIGINT, Column.FLAG_DEFAULT); + public final Column companyId = createColumn( + "companyId", Long.class, Types.BIGINT, Column.FLAG_DEFAULT); + public final Column classNameId = + createColumn( + "classNameId", Long.class, Types.BIGINT, Column.FLAG_DEFAULT); + public final Column classPK = createColumn( + "classPK", Long.class, Types.BIGINT, Column.FLAG_DEFAULT); + public final Column + permissionTemplateEnabled = createColumn( + "permissionTemplateEnabled", Boolean.class, Types.BOOLEAN, + Column.FLAG_DEFAULT); + + private PermissionTemplateTable() { + super("PermissionTemplate", PermissionTemplateTable::new); + } + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/model/PermissionTemplateWrapper.java b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/model/PermissionTemplateWrapper.java new file mode 100644 index 00000000000000..0958008567fb11 --- /dev/null +++ b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/model/PermissionTemplateWrapper.java @@ -0,0 +1,346 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.model; + +import com.liferay.portal.kernel.model.ModelWrapper; +import com.liferay.portal.kernel.model.wrapper.BaseModelWrapper; + +import java.util.HashMap; +import java.util.Map; +import java.util.function.BiConsumer; +import java.util.function.Function; + +/** + *

+ * This class is a wrapper for {@link PermissionTemplate}. + *

+ * + * @author Brian Wing Shun Chan + * @see PermissionTemplate + * @generated + */ +public class PermissionTemplateWrapper + extends BaseModelWrapper + implements ModelWrapper, PermissionTemplate { + + public PermissionTemplateWrapper(PermissionTemplate permissionTemplate) { + super(permissionTemplate); + } + + @Override + public Map getModelAttributes() { + Map attributes = new HashMap(); + + attributes.put("mvccVersion", getMvccVersion()); + attributes.put("ctCollectionId", getCtCollectionId()); + attributes.put("permissionTemplateId", getPermissionTemplateId()); + attributes.put("groupId", getGroupId()); + attributes.put("companyId", getCompanyId()); + attributes.put("classNameId", getClassNameId()); + attributes.put("classPK", getClassPK()); + attributes.put( + "permissionTemplateEnabled", isPermissionTemplateEnabled()); + + return attributes; + } + + @Override + public void setModelAttributes(Map attributes) { + Long mvccVersion = (Long)attributes.get("mvccVersion"); + + if (mvccVersion != null) { + setMvccVersion(mvccVersion); + } + + Long ctCollectionId = (Long)attributes.get("ctCollectionId"); + + if (ctCollectionId != null) { + setCtCollectionId(ctCollectionId); + } + + Long permissionTemplateId = (Long)attributes.get( + "permissionTemplateId"); + + if (permissionTemplateId != null) { + setPermissionTemplateId(permissionTemplateId); + } + + Long groupId = (Long)attributes.get("groupId"); + + if (groupId != null) { + setGroupId(groupId); + } + + Long companyId = (Long)attributes.get("companyId"); + + if (companyId != null) { + setCompanyId(companyId); + } + + Long classNameId = (Long)attributes.get("classNameId"); + + if (classNameId != null) { + setClassNameId(classNameId); + } + + Long classPK = (Long)attributes.get("classPK"); + + if (classPK != null) { + setClassPK(classPK); + } + + Boolean permissionTemplateEnabled = (Boolean)attributes.get( + "permissionTemplateEnabled"); + + if (permissionTemplateEnabled != null) { + setPermissionTemplateEnabled(permissionTemplateEnabled); + } + } + + @Override + public PermissionTemplate cloneWithOriginalValues() { + return wrap(model.cloneWithOriginalValues()); + } + + /** + * Returns the fully qualified class name of this permission template. + * + * @return the fully qualified class name of this permission template + */ + @Override + public String getClassName() { + return model.getClassName(); + } + + /** + * Returns the class name ID of this permission template. + * + * @return the class name ID of this permission template + */ + @Override + public long getClassNameId() { + return model.getClassNameId(); + } + + /** + * Returns the class pk of this permission template. + * + * @return the class pk of this permission template + */ + @Override + public long getClassPK() { + return model.getClassPK(); + } + + /** + * Returns the company ID of this permission template. + * + * @return the company ID of this permission template + */ + @Override + public long getCompanyId() { + return model.getCompanyId(); + } + + /** + * Returns the ct collection ID of this permission template. + * + * @return the ct collection ID of this permission template + */ + @Override + public long getCtCollectionId() { + return model.getCtCollectionId(); + } + + /** + * Returns the group ID of this permission template. + * + * @return the group ID of this permission template + */ + @Override + public long getGroupId() { + return model.getGroupId(); + } + + /** + * Returns the mvcc version of this permission template. + * + * @return the mvcc version of this permission template + */ + @Override + public long getMvccVersion() { + return model.getMvccVersion(); + } + + /** + * Returns the permission template enabled of this permission template. + * + * @return the permission template enabled of this permission template + */ + @Override + public boolean getPermissionTemplateEnabled() { + return model.getPermissionTemplateEnabled(); + } + + /** + * Returns the permission template ID of this permission template. + * + * @return the permission template ID of this permission template + */ + @Override + public long getPermissionTemplateId() { + return model.getPermissionTemplateId(); + } + + /** + * Returns the primary key of this permission template. + * + * @return the primary key of this permission template + */ + @Override + public long getPrimaryKey() { + return model.getPrimaryKey(); + } + + /** + * Returns true if this permission template is permission template enabled. + * + * @return true if this permission template is permission template enabled; false otherwise + */ + @Override + public boolean isPermissionTemplateEnabled() { + return model.isPermissionTemplateEnabled(); + } + + @Override + public void persist() { + model.persist(); + } + + @Override + public void setClassName(String className) { + model.setClassName(className); + } + + /** + * Sets the class name ID of this permission template. + * + * @param classNameId the class name ID of this permission template + */ + @Override + public void setClassNameId(long classNameId) { + model.setClassNameId(classNameId); + } + + /** + * Sets the class pk of this permission template. + * + * @param classPK the class pk of this permission template + */ + @Override + public void setClassPK(long classPK) { + model.setClassPK(classPK); + } + + /** + * Sets the company ID of this permission template. + * + * @param companyId the company ID of this permission template + */ + @Override + public void setCompanyId(long companyId) { + model.setCompanyId(companyId); + } + + /** + * Sets the ct collection ID of this permission template. + * + * @param ctCollectionId the ct collection ID of this permission template + */ + @Override + public void setCtCollectionId(long ctCollectionId) { + model.setCtCollectionId(ctCollectionId); + } + + /** + * Sets the group ID of this permission template. + * + * @param groupId the group ID of this permission template + */ + @Override + public void setGroupId(long groupId) { + model.setGroupId(groupId); + } + + /** + * Sets the mvcc version of this permission template. + * + * @param mvccVersion the mvcc version of this permission template + */ + @Override + public void setMvccVersion(long mvccVersion) { + model.setMvccVersion(mvccVersion); + } + + /** + * Sets whether this permission template is permission template enabled. + * + * @param permissionTemplateEnabled the permission template enabled of this permission template + */ + @Override + public void setPermissionTemplateEnabled( + boolean permissionTemplateEnabled) { + + model.setPermissionTemplateEnabled(permissionTemplateEnabled); + } + + /** + * Sets the permission template ID of this permission template. + * + * @param permissionTemplateId the permission template ID of this permission template + */ + @Override + public void setPermissionTemplateId(long permissionTemplateId) { + model.setPermissionTemplateId(permissionTemplateId); + } + + /** + * Sets the primary key of this permission template. + * + * @param primaryKey the primary key of this permission template + */ + @Override + public void setPrimaryKey(long primaryKey) { + model.setPrimaryKey(primaryKey); + } + + @Override + public String toXmlString() { + return model.toXmlString(); + } + + @Override + public Map> + getAttributeGetterFunctions() { + + return model.getAttributeGetterFunctions(); + } + + @Override + public Map> + getAttributeSetterBiConsumers() { + + return model.getAttributeSetterBiConsumers(); + } + + @Override + protected PermissionTemplateWrapper wrap( + PermissionTemplate permissionTemplate) { + + return new PermissionTemplateWrapper(permissionTemplate); + } + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/service/PermissionTemplateLocalService.java b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/service/PermissionTemplateLocalService.java new file mode 100644 index 00000000000000..451120efef974e --- /dev/null +++ b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/service/PermissionTemplateLocalService.java @@ -0,0 +1,299 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.service; + +import com.liferay.permission.template.model.PermissionTemplate; +import com.liferay.petra.function.UnsafeFunction; +import com.liferay.petra.sql.dsl.query.DSLQuery; +import com.liferay.portal.kernel.change.tracking.CTAware; +import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery; +import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery; +import com.liferay.portal.kernel.dao.orm.Projection; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.model.PersistedModel; +import com.liferay.portal.kernel.search.Indexable; +import com.liferay.portal.kernel.search.IndexableType; +import com.liferay.portal.kernel.service.BaseLocalService; +import com.liferay.portal.kernel.service.PersistedModelLocalService; +import com.liferay.portal.kernel.service.change.tracking.CTService; +import com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence; +import com.liferay.portal.kernel.transaction.Isolation; +import com.liferay.portal.kernel.transaction.Propagation; +import com.liferay.portal.kernel.transaction.Transactional; +import com.liferay.portal.kernel.util.OrderByComparator; + +import java.io.Serializable; + +import java.util.List; + +import org.osgi.annotation.versioning.ProviderType; + +/** + * Provides the local service interface for PermissionTemplate. Methods of this + * service will not have security checks based on the propagated JAAS + * credentials because this service can only be accessed from within the same + * VM. + * + * @author Brian Wing Shun Chan + * @see PermissionTemplateLocalServiceUtil + * @generated + */ +@CTAware +@ProviderType +@Transactional( + isolation = Isolation.PORTAL, + rollbackFor = {PortalException.class, SystemException.class} +) +public interface PermissionTemplateLocalService + extends BaseLocalService, CTService, + PersistedModelLocalService { + + /* + * NOTE FOR DEVELOPERS: + * + * Never modify this interface directly. Add custom service methods to com.liferay.permission.template.service.impl.PermissionTemplateLocalServiceImpl and rerun ServiceBuilder to automatically copy the method declarations to this interface. Consume the permission template local service via injection or a org.osgi.util.tracker.ServiceTracker. Use {@link PermissionTemplateLocalServiceUtil} if injection and service tracking are not available. + */ + public PermissionTemplate addPermissionTemplate( + long companyId, long groupId, String className, long classPK, + boolean permissionTemplateEnabled); + + /** + * Adds the permission template to the database. Also notifies the appropriate model listeners. + * + *

+ * Important: Inspect PermissionTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. + *

+ * + * @param permissionTemplate the permission template + * @return the permission template that was added + */ + @Indexable(type = IndexableType.REINDEX) + public PermissionTemplate addPermissionTemplate( + PermissionTemplate permissionTemplate); + + /** + * Creates a new permission template with the primary key. Does not add the permission template to the database. + * + * @param permissionTemplateId the primary key for the new permission template + * @return the new permission template + */ + @Transactional(enabled = false) + public PermissionTemplate createPermissionTemplate( + long permissionTemplateId); + + /** + * @throws PortalException + */ + public PersistedModel createPersistedModel(Serializable primaryKeyObj) + throws PortalException; + + /** + * Deletes the permission template with the primary key from the database. Also notifies the appropriate model listeners. + * + *

+ * Important: Inspect PermissionTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. + *

+ * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template that was removed + * @throws PortalException if a permission template with the primary key could not be found + */ + @Indexable(type = IndexableType.DELETE) + public PermissionTemplate deletePermissionTemplate( + long permissionTemplateId) + throws PortalException; + + /** + * Deletes the permission template from the database. Also notifies the appropriate model listeners. + * + *

+ * Important: Inspect PermissionTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. + *

+ * + * @param permissionTemplate the permission template + * @return the permission template that was removed + */ + @Indexable(type = IndexableType.DELETE) + public PermissionTemplate deletePermissionTemplate( + PermissionTemplate permissionTemplate); + + /** + * @throws PortalException + */ + @Override + public PersistedModel deletePersistedModel(PersistedModel persistedModel) + throws PortalException; + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public T dslQuery(DSLQuery dslQuery); + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public int dslQueryCount(DSLQuery dslQuery); + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public DynamicQuery dynamicQuery(); + + /** + * Performs a dynamic query on the database and returns the matching rows. + * + * @param dynamicQuery the dynamic query + * @return the matching rows + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public List dynamicQuery(DynamicQuery dynamicQuery); + + /** + * Performs a dynamic query on the database and returns a range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.permission.template.model.impl.PermissionTemplateModelImpl. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @return the range of matching rows + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public List dynamicQuery( + DynamicQuery dynamicQuery, int start, int end); + + /** + * Performs a dynamic query on the database and returns an ordered range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.permission.template.model.impl.PermissionTemplateModelImpl. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching rows + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public List dynamicQuery( + DynamicQuery dynamicQuery, int start, int end, + OrderByComparator orderByComparator); + + /** + * Returns the number of rows matching the dynamic query. + * + * @param dynamicQuery the dynamic query + * @return the number of rows matching the dynamic query + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public long dynamicQueryCount(DynamicQuery dynamicQuery); + + /** + * Returns the number of rows matching the dynamic query. + * + * @param dynamicQuery the dynamic query + * @param projection the projection to apply to the query + * @return the number of rows matching the dynamic query + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public long dynamicQueryCount( + DynamicQuery dynamicQuery, Projection projection); + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public PermissionTemplate fetchPermissionTemplate( + long permissionTemplateId); + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public PermissionTemplate fetchPermissionTemplate( + long companyId, long groupId, String className, long classPK); + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public ActionableDynamicQuery getActionableDynamicQuery(); + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery(); + + /** + * Returns the OSGi service identifier. + * + * @return the OSGi service identifier + */ + public String getOSGiServiceIdentifier(); + + /** + * Returns the permission template with the primary key. + * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template + * @throws PortalException if a permission template with the primary key could not be found + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public PermissionTemplate getPermissionTemplate(long permissionTemplateId) + throws PortalException; + + /** + * Returns a range of all the permission templates. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.permission.template.model.impl.PermissionTemplateModelImpl. + *

+ * + * @param start the lower bound of the range of permission templates + * @param end the upper bound of the range of permission templates (not inclusive) + * @return the range of permission templates + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public List getPermissionTemplates(int start, int end); + + /** + * Returns the number of permission templates. + * + * @return the number of permission templates + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public int getPermissionTemplatesCount(); + + /** + * @throws PortalException + */ + @Override + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public PersistedModel getPersistedModel(Serializable primaryKeyObj) + throws PortalException; + + public PermissionTemplate updatePermissionTemplate( + long companyId, long groupId, String className, long classPK, + boolean permissionTemplateEnabled); + + /** + * Updates the permission template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. + * + *

+ * Important: Inspect PermissionTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. + *

+ * + * @param permissionTemplate the permission template + * @return the permission template that was updated + */ + @Indexable(type = IndexableType.REINDEX) + public PermissionTemplate updatePermissionTemplate( + PermissionTemplate permissionTemplate); + + @Override + @Transactional(enabled = false) + public CTPersistence getCTPersistence(); + + @Override + @Transactional(enabled = false) + public Class getModelClass(); + + @Override + @Transactional(rollbackFor = Throwable.class) + public R updateWithUnsafeFunction( + UnsafeFunction, R, E> + updateUnsafeFunction) + throws E; + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/service/PermissionTemplateLocalServiceUtil.java b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/service/PermissionTemplateLocalServiceUtil.java new file mode 100644 index 00000000000000..9af33df486a512 --- /dev/null +++ b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/service/PermissionTemplateLocalServiceUtil.java @@ -0,0 +1,331 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.service; + +import com.liferay.permission.template.model.PermissionTemplate; +import com.liferay.petra.sql.dsl.query.DSLQuery; +import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.model.PersistedModel; +import com.liferay.portal.kernel.util.OrderByComparator; + +import java.io.Serializable; + +import java.util.List; + +/** + * Provides the local service utility for PermissionTemplate. This utility wraps + * com.liferay.permission.template.service.impl.PermissionTemplateLocalServiceImpl and + * is an access point for service operations in application layer code running + * on the local server. Methods of this service will not have security checks + * based on the propagated JAAS credentials because this service can only be + * accessed from within the same VM. + * + * @author Brian Wing Shun Chan + * @see PermissionTemplateLocalService + * @generated + */ +public class PermissionTemplateLocalServiceUtil { + + /* + * NOTE FOR DEVELOPERS: + * + * Never modify this class directly. Add custom service methods to com.liferay.permission.template.service.impl.PermissionTemplateLocalServiceImpl and rerun ServiceBuilder to regenerate this class. + */ + public static PermissionTemplate addPermissionTemplate( + long companyId, long groupId, String className, long classPK, + boolean permissionTemplateEnabled) { + + return getService().addPermissionTemplate( + companyId, groupId, className, classPK, permissionTemplateEnabled); + } + + /** + * Adds the permission template to the database. Also notifies the appropriate model listeners. + * + *

+ * Important: Inspect PermissionTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. + *

+ * + * @param permissionTemplate the permission template + * @return the permission template that was added + */ + public static PermissionTemplate addPermissionTemplate( + PermissionTemplate permissionTemplate) { + + return getService().addPermissionTemplate(permissionTemplate); + } + + /** + * Creates a new permission template with the primary key. Does not add the permission template to the database. + * + * @param permissionTemplateId the primary key for the new permission template + * @return the new permission template + */ + public static PermissionTemplate createPermissionTemplate( + long permissionTemplateId) { + + return getService().createPermissionTemplate(permissionTemplateId); + } + + /** + * @throws PortalException + */ + public static PersistedModel createPersistedModel( + Serializable primaryKeyObj) + throws PortalException { + + return getService().createPersistedModel(primaryKeyObj); + } + + /** + * Deletes the permission template with the primary key from the database. Also notifies the appropriate model listeners. + * + *

+ * Important: Inspect PermissionTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. + *

+ * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template that was removed + * @throws PortalException if a permission template with the primary key could not be found + */ + public static PermissionTemplate deletePermissionTemplate( + long permissionTemplateId) + throws PortalException { + + return getService().deletePermissionTemplate(permissionTemplateId); + } + + /** + * Deletes the permission template from the database. Also notifies the appropriate model listeners. + * + *

+ * Important: Inspect PermissionTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. + *

+ * + * @param permissionTemplate the permission template + * @return the permission template that was removed + */ + public static PermissionTemplate deletePermissionTemplate( + PermissionTemplate permissionTemplate) { + + return getService().deletePermissionTemplate(permissionTemplate); + } + + /** + * @throws PortalException + */ + public static PersistedModel deletePersistedModel( + PersistedModel persistedModel) + throws PortalException { + + return getService().deletePersistedModel(persistedModel); + } + + public static T dslQuery(DSLQuery dslQuery) { + return getService().dslQuery(dslQuery); + } + + public static int dslQueryCount(DSLQuery dslQuery) { + return getService().dslQueryCount(dslQuery); + } + + public static DynamicQuery dynamicQuery() { + return getService().dynamicQuery(); + } + + /** + * Performs a dynamic query on the database and returns the matching rows. + * + * @param dynamicQuery the dynamic query + * @return the matching rows + */ + public static List dynamicQuery(DynamicQuery dynamicQuery) { + return getService().dynamicQuery(dynamicQuery); + } + + /** + * Performs a dynamic query on the database and returns a range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.permission.template.model.impl.PermissionTemplateModelImpl. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @return the range of matching rows + */ + public static List dynamicQuery( + DynamicQuery dynamicQuery, int start, int end) { + + return getService().dynamicQuery(dynamicQuery, start, end); + } + + /** + * Performs a dynamic query on the database and returns an ordered range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.permission.template.model.impl.PermissionTemplateModelImpl. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching rows + */ + public static List dynamicQuery( + DynamicQuery dynamicQuery, int start, int end, + OrderByComparator orderByComparator) { + + return getService().dynamicQuery( + dynamicQuery, start, end, orderByComparator); + } + + /** + * Returns the number of rows matching the dynamic query. + * + * @param dynamicQuery the dynamic query + * @return the number of rows matching the dynamic query + */ + public static long dynamicQueryCount(DynamicQuery dynamicQuery) { + return getService().dynamicQueryCount(dynamicQuery); + } + + /** + * Returns the number of rows matching the dynamic query. + * + * @param dynamicQuery the dynamic query + * @param projection the projection to apply to the query + * @return the number of rows matching the dynamic query + */ + public static long dynamicQueryCount( + DynamicQuery dynamicQuery, + com.liferay.portal.kernel.dao.orm.Projection projection) { + + return getService().dynamicQueryCount(dynamicQuery, projection); + } + + public static PermissionTemplate fetchPermissionTemplate( + long permissionTemplateId) { + + return getService().fetchPermissionTemplate(permissionTemplateId); + } + + public static PermissionTemplate fetchPermissionTemplate( + long companyId, long groupId, String className, long classPK) { + + return getService().fetchPermissionTemplate( + companyId, groupId, className, classPK); + } + + public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery + getActionableDynamicQuery() { + + return getService().getActionableDynamicQuery(); + } + + public static + com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery + getIndexableActionableDynamicQuery() { + + return getService().getIndexableActionableDynamicQuery(); + } + + /** + * Returns the OSGi service identifier. + * + * @return the OSGi service identifier + */ + public static String getOSGiServiceIdentifier() { + return getService().getOSGiServiceIdentifier(); + } + + /** + * Returns the permission template with the primary key. + * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template + * @throws PortalException if a permission template with the primary key could not be found + */ + public static PermissionTemplate getPermissionTemplate( + long permissionTemplateId) + throws PortalException { + + return getService().getPermissionTemplate(permissionTemplateId); + } + + /** + * Returns a range of all the permission templates. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.permission.template.model.impl.PermissionTemplateModelImpl. + *

+ * + * @param start the lower bound of the range of permission templates + * @param end the upper bound of the range of permission templates (not inclusive) + * @return the range of permission templates + */ + public static List getPermissionTemplates( + int start, int end) { + + return getService().getPermissionTemplates(start, end); + } + + /** + * Returns the number of permission templates. + * + * @return the number of permission templates + */ + public static int getPermissionTemplatesCount() { + return getService().getPermissionTemplatesCount(); + } + + /** + * @throws PortalException + */ + public static PersistedModel getPersistedModel(Serializable primaryKeyObj) + throws PortalException { + + return getService().getPersistedModel(primaryKeyObj); + } + + public static PermissionTemplate updatePermissionTemplate( + long companyId, long groupId, String className, long classPK, + boolean permissionTemplateEnabled) { + + return getService().updatePermissionTemplate( + companyId, groupId, className, classPK, permissionTemplateEnabled); + } + + /** + * Updates the permission template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. + * + *

+ * Important: Inspect PermissionTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. + *

+ * + * @param permissionTemplate the permission template + * @return the permission template that was updated + */ + public static PermissionTemplate updatePermissionTemplate( + PermissionTemplate permissionTemplate) { + + return getService().updatePermissionTemplate(permissionTemplate); + } + + public static PermissionTemplateLocalService getService() { + return _service; + } + + public static void setService(PermissionTemplateLocalService service) { + _service = service; + } + + private static volatile PermissionTemplateLocalService _service; + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/service/PermissionTemplateLocalServiceWrapper.java b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/service/PermissionTemplateLocalServiceWrapper.java new file mode 100644 index 00000000000000..db3f1fc00c4907 --- /dev/null +++ b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/service/PermissionTemplateLocalServiceWrapper.java @@ -0,0 +1,403 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.service; + +import com.liferay.permission.template.model.PermissionTemplate; +import com.liferay.petra.function.UnsafeFunction; +import com.liferay.portal.kernel.service.ServiceWrapper; +import com.liferay.portal.kernel.service.persistence.BasePersistence; +import com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence; + +/** + * Provides a wrapper for {@link PermissionTemplateLocalService}. + * + * @author Brian Wing Shun Chan + * @see PermissionTemplateLocalService + * @generated + */ +public class PermissionTemplateLocalServiceWrapper + implements PermissionTemplateLocalService, + ServiceWrapper { + + public PermissionTemplateLocalServiceWrapper() { + this(null); + } + + public PermissionTemplateLocalServiceWrapper( + PermissionTemplateLocalService permissionTemplateLocalService) { + + _permissionTemplateLocalService = permissionTemplateLocalService; + } + + @Override + public PermissionTemplate addPermissionTemplate( + long companyId, long groupId, String className, long classPK, + boolean permissionTemplateEnabled) { + + return _permissionTemplateLocalService.addPermissionTemplate( + companyId, groupId, className, classPK, permissionTemplateEnabled); + } + + /** + * Adds the permission template to the database. Also notifies the appropriate model listeners. + * + *

+ * Important: Inspect PermissionTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. + *

+ * + * @param permissionTemplate the permission template + * @return the permission template that was added + */ + @Override + public PermissionTemplate addPermissionTemplate( + PermissionTemplate permissionTemplate) { + + return _permissionTemplateLocalService.addPermissionTemplate( + permissionTemplate); + } + + /** + * Creates a new permission template with the primary key. Does not add the permission template to the database. + * + * @param permissionTemplateId the primary key for the new permission template + * @return the new permission template + */ + @Override + public PermissionTemplate createPermissionTemplate( + long permissionTemplateId) { + + return _permissionTemplateLocalService.createPermissionTemplate( + permissionTemplateId); + } + + /** + * @throws PortalException + */ + @Override + public com.liferay.portal.kernel.model.PersistedModel createPersistedModel( + java.io.Serializable primaryKeyObj) + throws com.liferay.portal.kernel.exception.PortalException { + + return _permissionTemplateLocalService.createPersistedModel( + primaryKeyObj); + } + + /** + * Deletes the permission template with the primary key from the database. Also notifies the appropriate model listeners. + * + *

+ * Important: Inspect PermissionTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. + *

+ * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template that was removed + * @throws PortalException if a permission template with the primary key could not be found + */ + @Override + public PermissionTemplate deletePermissionTemplate( + long permissionTemplateId) + throws com.liferay.portal.kernel.exception.PortalException { + + return _permissionTemplateLocalService.deletePermissionTemplate( + permissionTemplateId); + } + + /** + * Deletes the permission template from the database. Also notifies the appropriate model listeners. + * + *

+ * Important: Inspect PermissionTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. + *

+ * + * @param permissionTemplate the permission template + * @return the permission template that was removed + */ + @Override + public PermissionTemplate deletePermissionTemplate( + PermissionTemplate permissionTemplate) { + + return _permissionTemplateLocalService.deletePermissionTemplate( + permissionTemplate); + } + + /** + * @throws PortalException + */ + @Override + public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel( + com.liferay.portal.kernel.model.PersistedModel persistedModel) + throws com.liferay.portal.kernel.exception.PortalException { + + return _permissionTemplateLocalService.deletePersistedModel( + persistedModel); + } + + @Override + public T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) { + return _permissionTemplateLocalService.dslQuery(dslQuery); + } + + @Override + public int dslQueryCount( + com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) { + + return _permissionTemplateLocalService.dslQueryCount(dslQuery); + } + + @Override + public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { + return _permissionTemplateLocalService.dynamicQuery(); + } + + /** + * Performs a dynamic query on the database and returns the matching rows. + * + * @param dynamicQuery the dynamic query + * @return the matching rows + */ + @Override + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { + + return _permissionTemplateLocalService.dynamicQuery(dynamicQuery); + } + + /** + * Performs a dynamic query on the database and returns a range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.permission.template.model.impl.PermissionTemplateModelImpl. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @return the range of matching rows + */ + @Override + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end) { + + return _permissionTemplateLocalService.dynamicQuery( + dynamicQuery, start, end); + } + + /** + * Performs a dynamic query on the database and returns an ordered range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.permission.template.model.impl.PermissionTemplateModelImpl. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching rows + */ + @Override + public java.util.List dynamicQuery( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, + int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) { + + return _permissionTemplateLocalService.dynamicQuery( + dynamicQuery, start, end, orderByComparator); + } + + /** + * Returns the number of rows matching the dynamic query. + * + * @param dynamicQuery the dynamic query + * @return the number of rows matching the dynamic query + */ + @Override + public long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { + + return _permissionTemplateLocalService.dynamicQueryCount(dynamicQuery); + } + + /** + * Returns the number of rows matching the dynamic query. + * + * @param dynamicQuery the dynamic query + * @param projection the projection to apply to the query + * @return the number of rows matching the dynamic query + */ + @Override + public long dynamicQueryCount( + com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, + com.liferay.portal.kernel.dao.orm.Projection projection) { + + return _permissionTemplateLocalService.dynamicQueryCount( + dynamicQuery, projection); + } + + @Override + public PermissionTemplate fetchPermissionTemplate( + long permissionTemplateId) { + + return _permissionTemplateLocalService.fetchPermissionTemplate( + permissionTemplateId); + } + + @Override + public PermissionTemplate fetchPermissionTemplate( + long companyId, long groupId, String className, long classPK) { + + return _permissionTemplateLocalService.fetchPermissionTemplate( + companyId, groupId, className, classPK); + } + + @Override + public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery + getActionableDynamicQuery() { + + return _permissionTemplateLocalService.getActionableDynamicQuery(); + } + + @Override + public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery + getIndexableActionableDynamicQuery() { + + return _permissionTemplateLocalService. + getIndexableActionableDynamicQuery(); + } + + /** + * Returns the OSGi service identifier. + * + * @return the OSGi service identifier + */ + @Override + public String getOSGiServiceIdentifier() { + return _permissionTemplateLocalService.getOSGiServiceIdentifier(); + } + + /** + * Returns the permission template with the primary key. + * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template + * @throws PortalException if a permission template with the primary key could not be found + */ + @Override + public PermissionTemplate getPermissionTemplate(long permissionTemplateId) + throws com.liferay.portal.kernel.exception.PortalException { + + return _permissionTemplateLocalService.getPermissionTemplate( + permissionTemplateId); + } + + /** + * Returns a range of all the permission templates. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.permission.template.model.impl.PermissionTemplateModelImpl. + *

+ * + * @param start the lower bound of the range of permission templates + * @param end the upper bound of the range of permission templates (not inclusive) + * @return the range of permission templates + */ + @Override + public java.util.List getPermissionTemplates( + int start, int end) { + + return _permissionTemplateLocalService.getPermissionTemplates( + start, end); + } + + /** + * Returns the number of permission templates. + * + * @return the number of permission templates + */ + @Override + public int getPermissionTemplatesCount() { + return _permissionTemplateLocalService.getPermissionTemplatesCount(); + } + + /** + * @throws PortalException + */ + @Override + public com.liferay.portal.kernel.model.PersistedModel getPersistedModel( + java.io.Serializable primaryKeyObj) + throws com.liferay.portal.kernel.exception.PortalException { + + return _permissionTemplateLocalService.getPersistedModel(primaryKeyObj); + } + + @Override + public PermissionTemplate updatePermissionTemplate( + long companyId, long groupId, String className, long classPK, + boolean permissionTemplateEnabled) { + + return _permissionTemplateLocalService.updatePermissionTemplate( + companyId, groupId, className, classPK, permissionTemplateEnabled); + } + + /** + * Updates the permission template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. + * + *

+ * Important: Inspect PermissionTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. + *

+ * + * @param permissionTemplate the permission template + * @return the permission template that was updated + */ + @Override + public PermissionTemplate updatePermissionTemplate( + PermissionTemplate permissionTemplate) { + + return _permissionTemplateLocalService.updatePermissionTemplate( + permissionTemplate); + } + + @Override + public BasePersistence getBasePersistence() { + return _permissionTemplateLocalService.getBasePersistence(); + } + + @Override + public CTPersistence getCTPersistence() { + return _permissionTemplateLocalService.getCTPersistence(); + } + + @Override + public Class getModelClass() { + return _permissionTemplateLocalService.getModelClass(); + } + + @Override + public R updateWithUnsafeFunction( + UnsafeFunction, R, E> + updateUnsafeFunction) + throws E { + + return _permissionTemplateLocalService.updateWithUnsafeFunction( + updateUnsafeFunction); + } + + @Override + public PermissionTemplateLocalService getWrappedService() { + return _permissionTemplateLocalService; + } + + @Override + public void setWrappedService( + PermissionTemplateLocalService permissionTemplateLocalService) { + + _permissionTemplateLocalService = permissionTemplateLocalService; + } + + private PermissionTemplateLocalService _permissionTemplateLocalService; + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/service/persistence/PermissionTemplatePersistence.java b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/service/persistence/PermissionTemplatePersistence.java new file mode 100644 index 00000000000000..8bbf3a3562f482 --- /dev/null +++ b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/service/persistence/PermissionTemplatePersistence.java @@ -0,0 +1,223 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.service.persistence; + +import com.liferay.permission.template.exception.NoSuchPermissionTemplateException; +import com.liferay.permission.template.model.PermissionTemplate; +import com.liferay.portal.kernel.service.persistence.BasePersistence; +import com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence; + +import org.osgi.annotation.versioning.ProviderType; + +/** + * The persistence interface for the permission template service. + * + *

+ * Caching information and settings can be found in portal.properties + *

+ * + * @author Brian Wing Shun Chan + * @see PermissionTemplateUtil + * @generated + */ +@ProviderType +public interface PermissionTemplatePersistence + extends BasePersistence, + CTPersistence { + + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this interface directly. Always use {@link PermissionTemplateUtil} to access the permission template persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. + */ + + /** + * Returns the permission template where groupId = ? and companyId = ? and classNameId = ? and classPK = ? or throws a NoSuchPermissionTemplateException if it could not be found. + * + * @param groupId the group ID + * @param companyId the company ID + * @param classNameId the class name ID + * @param classPK the class pk + * @return the matching permission template + * @throws NoSuchPermissionTemplateException if a matching permission template could not be found + */ + public PermissionTemplate findByG_C_C_C( + long groupId, long companyId, long classNameId, long classPK) + throws NoSuchPermissionTemplateException; + + /** + * Returns the permission template where groupId = ? and companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache. + * + * @param groupId the group ID + * @param companyId the company ID + * @param classNameId the class name ID + * @param classPK the class pk + * @return the matching permission template, or null if a matching permission template could not be found + */ + public PermissionTemplate fetchByG_C_C_C( + long groupId, long companyId, long classNameId, long classPK); + + /** + * Returns the permission template where groupId = ? and companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache. + * + * @param groupId the group ID + * @param companyId the company ID + * @param classNameId the class name ID + * @param classPK the class pk + * @param useFinderCache whether to use the finder cache + * @return the matching permission template, or null if a matching permission template could not be found + */ + public PermissionTemplate fetchByG_C_C_C( + long groupId, long companyId, long classNameId, long classPK, + boolean useFinderCache); + + /** + * Removes the permission template where groupId = ? and companyId = ? and classNameId = ? and classPK = ? from the database. + * + * @param groupId the group ID + * @param companyId the company ID + * @param classNameId the class name ID + * @param classPK the class pk + * @return the permission template that was removed + */ + public PermissionTemplate removeByG_C_C_C( + long groupId, long companyId, long classNameId, long classPK) + throws NoSuchPermissionTemplateException; + + /** + * Returns the number of permission templates where groupId = ? and companyId = ? and classNameId = ? and classPK = ?. + * + * @param groupId the group ID + * @param companyId the company ID + * @param classNameId the class name ID + * @param classPK the class pk + * @return the number of matching permission templates + */ + public int countByG_C_C_C( + long groupId, long companyId, long classNameId, long classPK); + + /** + * Caches the permission template in the entity cache if it is enabled. + * + * @param permissionTemplate the permission template + */ + public void cacheResult(PermissionTemplate permissionTemplate); + + /** + * Caches the permission templates in the entity cache if it is enabled. + * + * @param permissionTemplates the permission templates + */ + public void cacheResult( + java.util.List permissionTemplates); + + /** + * Creates a new permission template with the primary key. Does not add the permission template to the database. + * + * @param permissionTemplateId the primary key for the new permission template + * @return the new permission template + */ + public PermissionTemplate create(long permissionTemplateId); + + /** + * Removes the permission template with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template that was removed + * @throws NoSuchPermissionTemplateException if a permission template with the primary key could not be found + */ + public PermissionTemplate remove(long permissionTemplateId) + throws NoSuchPermissionTemplateException; + + public PermissionTemplate updateImpl(PermissionTemplate permissionTemplate); + + /** + * Returns the permission template with the primary key or throws a NoSuchPermissionTemplateException if it could not be found. + * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template + * @throws NoSuchPermissionTemplateException if a permission template with the primary key could not be found + */ + public PermissionTemplate findByPrimaryKey(long permissionTemplateId) + throws NoSuchPermissionTemplateException; + + /** + * Returns the permission template with the primary key or returns null if it could not be found. + * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template, or null if a permission template with the primary key could not be found + */ + public PermissionTemplate fetchByPrimaryKey(long permissionTemplateId); + + /** + * Returns all the permission templates. + * + * @return the permission templates + */ + public java.util.List findAll(); + + /** + * Returns a range of all the permission templates. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PermissionTemplateModelImpl. + *

+ * + * @param start the lower bound of the range of permission templates + * @param end the upper bound of the range of permission templates (not inclusive) + * @return the range of permission templates + */ + public java.util.List findAll(int start, int end); + + /** + * Returns an ordered range of all the permission templates. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PermissionTemplateModelImpl. + *

+ * + * @param start the lower bound of the range of permission templates + * @param end the upper bound of the range of permission templates (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of permission templates + */ + public java.util.List findAll( + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator + orderByComparator); + + /** + * Returns an ordered range of all the permission templates. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PermissionTemplateModelImpl. + *

+ * + * @param start the lower bound of the range of permission templates + * @param end the upper bound of the range of permission templates (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @param useFinderCache whether to use the finder cache + * @return the ordered range of permission templates + */ + public java.util.List findAll( + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator + orderByComparator, + boolean useFinderCache); + + /** + * Removes all the permission templates from the database. + */ + public void removeAll(); + + /** + * Returns the number of permission templates. + * + * @return the number of permission templates + */ + public int countAll(); + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/service/persistence/PermissionTemplateUtil.java b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/service/persistence/PermissionTemplateUtil.java new file mode 100644 index 00000000000000..9e4b457161ac63 --- /dev/null +++ b/modules/apps/permission-template/permission-template-api/src/main/java/com/liferay/permission/template/service/persistence/PermissionTemplateUtil.java @@ -0,0 +1,371 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.service.persistence; + +import com.liferay.permission.template.model.PermissionTemplate; +import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.service.ServiceContext; +import com.liferay.portal.kernel.util.OrderByComparator; + +import java.io.Serializable; + +import java.util.List; +import java.util.Map; +import java.util.Set; + +/** + * The persistence utility for the permission template service. This utility wraps com.liferay.permission.template.service.persistence.impl.PermissionTemplatePersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. + * + *

+ * Caching information and settings can be found in portal.properties + *

+ * + * @author Brian Wing Shun Chan + * @see PermissionTemplatePersistence + * @generated + */ +public class PermissionTemplateUtil { + + /* + * NOTE FOR DEVELOPERS: + * + * Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class. + */ + + /** + * @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache() + */ + public static void clearCache() { + getPersistence().clearCache(); + } + + /** + * @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache(com.liferay.portal.kernel.model.BaseModel) + */ + public static void clearCache(PermissionTemplate permissionTemplate) { + getPersistence().clearCache(permissionTemplate); + } + + /** + * @see com.liferay.portal.kernel.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) + */ + public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { + return getPersistence().countWithDynamicQuery(dynamicQuery); + } + + /** + * @see com.liferay.portal.kernel.service.persistence.BasePersistence#fetchByPrimaryKeys(Set) + */ + public static Map fetchByPrimaryKeys( + Set primaryKeys) { + + return getPersistence().fetchByPrimaryKeys(primaryKeys); + } + + /** + * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) + */ + public static List findWithDynamicQuery( + DynamicQuery dynamicQuery) { + + return getPersistence().findWithDynamicQuery(dynamicQuery); + } + + /** + * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) + */ + public static List findWithDynamicQuery( + DynamicQuery dynamicQuery, int start, int end) { + + return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); + } + + /** + * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) + */ + public static List findWithDynamicQuery( + DynamicQuery dynamicQuery, int start, int end, + OrderByComparator orderByComparator) { + + return getPersistence().findWithDynamicQuery( + dynamicQuery, start, end, orderByComparator); + } + + /** + * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel) + */ + public static PermissionTemplate update( + PermissionTemplate permissionTemplate) { + + return getPersistence().update(permissionTemplate); + } + + /** + * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext) + */ + public static PermissionTemplate update( + PermissionTemplate permissionTemplate, ServiceContext serviceContext) { + + return getPersistence().update(permissionTemplate, serviceContext); + } + + /** + * Returns the permission template where groupId = ? and companyId = ? and classNameId = ? and classPK = ? or throws a NoSuchPermissionTemplateException if it could not be found. + * + * @param groupId the group ID + * @param companyId the company ID + * @param classNameId the class name ID + * @param classPK the class pk + * @return the matching permission template + * @throws NoSuchPermissionTemplateException if a matching permission template could not be found + */ + public static PermissionTemplate findByG_C_C_C( + long groupId, long companyId, long classNameId, long classPK) + throws com.liferay.permission.template.exception. + NoSuchPermissionTemplateException { + + return getPersistence().findByG_C_C_C( + groupId, companyId, classNameId, classPK); + } + + /** + * Returns the permission template where groupId = ? and companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache. + * + * @param groupId the group ID + * @param companyId the company ID + * @param classNameId the class name ID + * @param classPK the class pk + * @return the matching permission template, or null if a matching permission template could not be found + */ + public static PermissionTemplate fetchByG_C_C_C( + long groupId, long companyId, long classNameId, long classPK) { + + return getPersistence().fetchByG_C_C_C( + groupId, companyId, classNameId, classPK); + } + + /** + * Returns the permission template where groupId = ? and companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache. + * + * @param groupId the group ID + * @param companyId the company ID + * @param classNameId the class name ID + * @param classPK the class pk + * @param useFinderCache whether to use the finder cache + * @return the matching permission template, or null if a matching permission template could not be found + */ + public static PermissionTemplate fetchByG_C_C_C( + long groupId, long companyId, long classNameId, long classPK, + boolean useFinderCache) { + + return getPersistence().fetchByG_C_C_C( + groupId, companyId, classNameId, classPK, useFinderCache); + } + + /** + * Removes the permission template where groupId = ? and companyId = ? and classNameId = ? and classPK = ? from the database. + * + * @param groupId the group ID + * @param companyId the company ID + * @param classNameId the class name ID + * @param classPK the class pk + * @return the permission template that was removed + */ + public static PermissionTemplate removeByG_C_C_C( + long groupId, long companyId, long classNameId, long classPK) + throws com.liferay.permission.template.exception. + NoSuchPermissionTemplateException { + + return getPersistence().removeByG_C_C_C( + groupId, companyId, classNameId, classPK); + } + + /** + * Returns the number of permission templates where groupId = ? and companyId = ? and classNameId = ? and classPK = ?. + * + * @param groupId the group ID + * @param companyId the company ID + * @param classNameId the class name ID + * @param classPK the class pk + * @return the number of matching permission templates + */ + public static int countByG_C_C_C( + long groupId, long companyId, long classNameId, long classPK) { + + return getPersistence().countByG_C_C_C( + groupId, companyId, classNameId, classPK); + } + + /** + * Caches the permission template in the entity cache if it is enabled. + * + * @param permissionTemplate the permission template + */ + public static void cacheResult(PermissionTemplate permissionTemplate) { + getPersistence().cacheResult(permissionTemplate); + } + + /** + * Caches the permission templates in the entity cache if it is enabled. + * + * @param permissionTemplates the permission templates + */ + public static void cacheResult( + List permissionTemplates) { + + getPersistence().cacheResult(permissionTemplates); + } + + /** + * Creates a new permission template with the primary key. Does not add the permission template to the database. + * + * @param permissionTemplateId the primary key for the new permission template + * @return the new permission template + */ + public static PermissionTemplate create(long permissionTemplateId) { + return getPersistence().create(permissionTemplateId); + } + + /** + * Removes the permission template with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template that was removed + * @throws NoSuchPermissionTemplateException if a permission template with the primary key could not be found + */ + public static PermissionTemplate remove(long permissionTemplateId) + throws com.liferay.permission.template.exception. + NoSuchPermissionTemplateException { + + return getPersistence().remove(permissionTemplateId); + } + + public static PermissionTemplate updateImpl( + PermissionTemplate permissionTemplate) { + + return getPersistence().updateImpl(permissionTemplate); + } + + /** + * Returns the permission template with the primary key or throws a NoSuchPermissionTemplateException if it could not be found. + * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template + * @throws NoSuchPermissionTemplateException if a permission template with the primary key could not be found + */ + public static PermissionTemplate findByPrimaryKey(long permissionTemplateId) + throws com.liferay.permission.template.exception. + NoSuchPermissionTemplateException { + + return getPersistence().findByPrimaryKey(permissionTemplateId); + } + + /** + * Returns the permission template with the primary key or returns null if it could not be found. + * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template, or null if a permission template with the primary key could not be found + */ + public static PermissionTemplate fetchByPrimaryKey( + long permissionTemplateId) { + + return getPersistence().fetchByPrimaryKey(permissionTemplateId); + } + + /** + * Returns all the permission templates. + * + * @return the permission templates + */ + public static List findAll() { + return getPersistence().findAll(); + } + + /** + * Returns a range of all the permission templates. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PermissionTemplateModelImpl. + *

+ * + * @param start the lower bound of the range of permission templates + * @param end the upper bound of the range of permission templates (not inclusive) + * @return the range of permission templates + */ + public static List findAll(int start, int end) { + return getPersistence().findAll(start, end); + } + + /** + * Returns an ordered range of all the permission templates. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PermissionTemplateModelImpl. + *

+ * + * @param start the lower bound of the range of permission templates + * @param end the upper bound of the range of permission templates (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of permission templates + */ + public static List findAll( + int start, int end, + OrderByComparator orderByComparator) { + + return getPersistence().findAll(start, end, orderByComparator); + } + + /** + * Returns an ordered range of all the permission templates. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PermissionTemplateModelImpl. + *

+ * + * @param start the lower bound of the range of permission templates + * @param end the upper bound of the range of permission templates (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @param useFinderCache whether to use the finder cache + * @return the ordered range of permission templates + */ + public static List findAll( + int start, int end, + OrderByComparator orderByComparator, + boolean useFinderCache) { + + return getPersistence().findAll( + start, end, orderByComparator, useFinderCache); + } + + /** + * Removes all the permission templates from the database. + */ + public static void removeAll() { + getPersistence().removeAll(); + } + + /** + * Returns the number of permission templates. + * + * @return the number of permission templates + */ + public static int countAll() { + return getPersistence().countAll(); + } + + public static PermissionTemplatePersistence getPersistence() { + return _persistence; + } + + public static void setPersistence( + PermissionTemplatePersistence persistence) { + + _persistence = persistence; + } + + private static volatile PermissionTemplatePersistence _persistence; + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-api/src/main/resources/com/liferay/permission/template/exception/packageinfo b/modules/apps/permission-template/permission-template-api/src/main/resources/com/liferay/permission/template/exception/packageinfo new file mode 100644 index 00000000000000..e2525561ab2e7b --- /dev/null +++ b/modules/apps/permission-template/permission-template-api/src/main/resources/com/liferay/permission/template/exception/packageinfo @@ -0,0 +1 @@ +version 1.0.0 \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-api/src/main/resources/com/liferay/permission/template/model/packageinfo b/modules/apps/permission-template/permission-template-api/src/main/resources/com/liferay/permission/template/model/packageinfo new file mode 100644 index 00000000000000..e2525561ab2e7b --- /dev/null +++ b/modules/apps/permission-template/permission-template-api/src/main/resources/com/liferay/permission/template/model/packageinfo @@ -0,0 +1 @@ +version 1.0.0 \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-api/src/main/resources/com/liferay/permission/template/service/packageinfo b/modules/apps/permission-template/permission-template-api/src/main/resources/com/liferay/permission/template/service/packageinfo new file mode 100644 index 00000000000000..e2525561ab2e7b --- /dev/null +++ b/modules/apps/permission-template/permission-template-api/src/main/resources/com/liferay/permission/template/service/packageinfo @@ -0,0 +1 @@ +version 1.0.0 \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-api/src/main/resources/com/liferay/permission/template/service/persistence/packageinfo b/modules/apps/permission-template/permission-template-api/src/main/resources/com/liferay/permission/template/service/persistence/packageinfo new file mode 100644 index 00000000000000..e2525561ab2e7b --- /dev/null +++ b/modules/apps/permission-template/permission-template-api/src/main/resources/com/liferay/permission/template/service/persistence/packageinfo @@ -0,0 +1 @@ +version 1.0.0 \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/.lfrbuild-portal b/modules/apps/permission-template/permission-template-service/.lfrbuild-portal new file mode 100644 index 00000000000000..e69de29bb2d1d6 diff --git a/modules/apps/permission-template/permission-template-service/bnd.bnd b/modules/apps/permission-template/permission-template-service/bnd.bnd new file mode 100644 index 00000000000000..9bb9937933589a --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/bnd.bnd @@ -0,0 +1,6 @@ +Bundle-Name: Liferay Permission Template Service +Bundle-SymbolicName: com.liferay.permission.template.service +Bundle-Version: 1.0.0 +Liferay-Require-SchemaVersion: 1.0.0 +Liferay-Service: true +-dsannotations-options: inherit \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/build.gradle b/modules/apps/permission-template/permission-template-service/build.gradle new file mode 100644 index 00000000000000..9a9c09e8286bdd --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/build.gradle @@ -0,0 +1,20 @@ +buildService { + apiDir = "../permission-template-api/src/main/java" +} + +dependencies { + compileOnly group: "com.liferay.portal", name: "com.liferay.portal.impl", version: "default" + compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "default" + compileOnly group: "com.liferay.portal", name: "com.liferay.util.java", version: "default" + compileOnly group: "javax.portlet", name: "portlet-api", version: "3.0.1" + compileOnly group: "org.apache.felix", name: "org.apache.felix.http.servlet-api", version: "1.1.2" + compileOnly group: "org.osgi", name: "org.osgi.annotation.versioning", version: "1.1.0" + compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations", version: "1.4.0" + compileOnly group: "org.osgi", name: "osgi.core", version: "6.0.0" + compileOnly project(":apps:permission-template:permission-template-api") + compileOnly project(":apps:portal:portal-aop-api") + compileOnly project(":core:petra:petra-function") + compileOnly project(":core:petra:petra-lang") + compileOnly project(":core:petra:petra-sql-dsl-api") + compileOnly project(":core:petra:petra-string") +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/service.xml b/modules/apps/permission-template/permission-template-service/service.xml new file mode 100644 index 00000000000000..33cf3d409fdef3 --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/service.xml @@ -0,0 +1,35 @@ + + + + + PermissionTemplate + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/model/impl/PermissionTemplateBaseImpl.java b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/model/impl/PermissionTemplateBaseImpl.java new file mode 100644 index 00000000000000..44a34cce50d226 --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/model/impl/PermissionTemplateBaseImpl.java @@ -0,0 +1,41 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.model.impl; + +import com.liferay.permission.template.model.PermissionTemplate; +import com.liferay.permission.template.service.PermissionTemplateLocalServiceUtil; + +/** + * The extended model base implementation for the PermissionTemplate service. Represents a row in the "PermissionTemplate" database table, with each column mapped to a property of this class. + * + *

+ * This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link PermissionTemplateImpl}. + *

+ * + * @author Brian Wing Shun Chan + * @see PermissionTemplateImpl + * @see PermissionTemplate + * @generated + */ +public abstract class PermissionTemplateBaseImpl + extends PermissionTemplateModelImpl implements PermissionTemplate { + + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this class directly. All methods that expect a permission template model instance should use the PermissionTemplate interface instead. + */ + @Override + public void persist() { + if (this.isNew()) { + PermissionTemplateLocalServiceUtil.addPermissionTemplate(this); + } + else { + PermissionTemplateLocalServiceUtil.updatePermissionTemplate(this); + } + } + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/model/impl/PermissionTemplateCacheModel.java b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/model/impl/PermissionTemplateCacheModel.java new file mode 100644 index 00000000000000..741485aef28d87 --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/model/impl/PermissionTemplateCacheModel.java @@ -0,0 +1,160 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.model.impl; + +import com.liferay.permission.template.model.PermissionTemplate; +import com.liferay.petra.lang.HashUtil; +import com.liferay.petra.string.StringBundler; +import com.liferay.portal.kernel.model.CacheModel; +import com.liferay.portal.kernel.model.MVCCModel; + +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; + +/** + * The cache model class for representing PermissionTemplate in entity cache. + * + * @author Brian Wing Shun Chan + * @generated + */ +public class PermissionTemplateCacheModel + implements CacheModel, Externalizable, MVCCModel { + + @Override + public boolean equals(Object object) { + if (this == object) { + return true; + } + + if (!(object instanceof PermissionTemplateCacheModel)) { + return false; + } + + PermissionTemplateCacheModel permissionTemplateCacheModel = + (PermissionTemplateCacheModel)object; + + if ((permissionTemplateId == + permissionTemplateCacheModel.permissionTemplateId) && + (mvccVersion == permissionTemplateCacheModel.mvccVersion)) { + + return true; + } + + return false; + } + + @Override + public int hashCode() { + int hashCode = HashUtil.hash(0, permissionTemplateId); + + return HashUtil.hash(hashCode, mvccVersion); + } + + @Override + public long getMvccVersion() { + return mvccVersion; + } + + @Override + public void setMvccVersion(long mvccVersion) { + this.mvccVersion = mvccVersion; + } + + @Override + public String toString() { + StringBundler sb = new StringBundler(17); + + sb.append("{mvccVersion="); + sb.append(mvccVersion); + sb.append(", ctCollectionId="); + sb.append(ctCollectionId); + sb.append(", permissionTemplateId="); + sb.append(permissionTemplateId); + sb.append(", groupId="); + sb.append(groupId); + sb.append(", companyId="); + sb.append(companyId); + sb.append(", classNameId="); + sb.append(classNameId); + sb.append(", classPK="); + sb.append(classPK); + sb.append(", permissionTemplateEnabled="); + sb.append(permissionTemplateEnabled); + sb.append("}"); + + return sb.toString(); + } + + @Override + public PermissionTemplate toEntityModel() { + PermissionTemplateImpl permissionTemplateImpl = + new PermissionTemplateImpl(); + + permissionTemplateImpl.setMvccVersion(mvccVersion); + permissionTemplateImpl.setCtCollectionId(ctCollectionId); + permissionTemplateImpl.setPermissionTemplateId(permissionTemplateId); + permissionTemplateImpl.setGroupId(groupId); + permissionTemplateImpl.setCompanyId(companyId); + permissionTemplateImpl.setClassNameId(classNameId); + permissionTemplateImpl.setClassPK(classPK); + permissionTemplateImpl.setPermissionTemplateEnabled( + permissionTemplateEnabled); + + permissionTemplateImpl.resetOriginalValues(); + + return permissionTemplateImpl; + } + + @Override + public void readExternal(ObjectInput objectInput) throws IOException { + mvccVersion = objectInput.readLong(); + + ctCollectionId = objectInput.readLong(); + + permissionTemplateId = objectInput.readLong(); + + groupId = objectInput.readLong(); + + companyId = objectInput.readLong(); + + classNameId = objectInput.readLong(); + + classPK = objectInput.readLong(); + + permissionTemplateEnabled = objectInput.readBoolean(); + } + + @Override + public void writeExternal(ObjectOutput objectOutput) throws IOException { + objectOutput.writeLong(mvccVersion); + + objectOutput.writeLong(ctCollectionId); + + objectOutput.writeLong(permissionTemplateId); + + objectOutput.writeLong(groupId); + + objectOutput.writeLong(companyId); + + objectOutput.writeLong(classNameId); + + objectOutput.writeLong(classPK); + + objectOutput.writeBoolean(permissionTemplateEnabled); + } + + public long mvccVersion; + public long ctCollectionId; + public long permissionTemplateId; + public long groupId; + public long companyId; + public long classNameId; + public long classPK; + public boolean permissionTemplateEnabled; + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/model/impl/PermissionTemplateImpl.java b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/model/impl/PermissionTemplateImpl.java new file mode 100644 index 00000000000000..7bd9baeee8750a --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/model/impl/PermissionTemplateImpl.java @@ -0,0 +1,12 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.model.impl; + +/** + * @author Brian Wing Shun Chan + */ +public class PermissionTemplateImpl extends PermissionTemplateBaseImpl { +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/model/impl/PermissionTemplateModelImpl.java b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/model/impl/PermissionTemplateModelImpl.java new file mode 100644 index 00000000000000..015aa4c3a70a9a --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/model/impl/PermissionTemplateModelImpl.java @@ -0,0 +1,826 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.model.impl; + +import com.liferay.expando.kernel.model.ExpandoBridge; +import com.liferay.expando.kernel.util.ExpandoBridgeFactoryUtil; +import com.liferay.permission.template.model.PermissionTemplate; +import com.liferay.permission.template.model.PermissionTemplateModel; +import com.liferay.petra.string.StringBundler; +import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler; +import com.liferay.portal.kernel.model.CacheModel; +import com.liferay.portal.kernel.model.ModelWrapper; +import com.liferay.portal.kernel.model.impl.BaseModelImpl; +import com.liferay.portal.kernel.service.ServiceContext; +import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.PortalUtil; +import com.liferay.portal.kernel.util.ProxyUtil; +import com.liferay.portal.kernel.util.StringUtil; +import com.liferay.portal.kernel.util.Validator; + +import java.io.Serializable; + +import java.lang.reflect.InvocationHandler; + +import java.sql.Blob; +import java.sql.Types; + +import java.util.Collections; +import java.util.Date; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.BiConsumer; +import java.util.function.Function; + +/** + * The base model implementation for the PermissionTemplate service. Represents a row in the "PermissionTemplate" database table, with each column mapped to a property of this class. + * + *

+ * This implementation and its corresponding interface PermissionTemplateModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link PermissionTemplateImpl}. + *

+ * + * @author Brian Wing Shun Chan + * @see PermissionTemplateImpl + * @generated + */ +public class PermissionTemplateModelImpl + extends BaseModelImpl + implements PermissionTemplateModel { + + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this class directly. All methods that expect a permission template model instance should use the PermissionTemplate interface instead. + */ + public static final String TABLE_NAME = "PermissionTemplate"; + + public static final Object[][] TABLE_COLUMNS = { + {"mvccVersion", Types.BIGINT}, {"ctCollectionId", Types.BIGINT}, + {"permissionTemplateId", Types.BIGINT}, {"groupId", Types.BIGINT}, + {"companyId", Types.BIGINT}, {"classNameId", Types.BIGINT}, + {"classPK", Types.BIGINT}, {"permissionTemplateEnabled", Types.BOOLEAN} + }; + + public static final Map TABLE_COLUMNS_MAP = + new HashMap(); + + static { + TABLE_COLUMNS_MAP.put("mvccVersion", Types.BIGINT); + TABLE_COLUMNS_MAP.put("ctCollectionId", Types.BIGINT); + TABLE_COLUMNS_MAP.put("permissionTemplateId", Types.BIGINT); + TABLE_COLUMNS_MAP.put("groupId", Types.BIGINT); + TABLE_COLUMNS_MAP.put("companyId", Types.BIGINT); + TABLE_COLUMNS_MAP.put("classNameId", Types.BIGINT); + TABLE_COLUMNS_MAP.put("classPK", Types.BIGINT); + TABLE_COLUMNS_MAP.put("permissionTemplateEnabled", Types.BOOLEAN); + } + + public static final String TABLE_SQL_CREATE = + "create table PermissionTemplate (mvccVersion LONG default 0 not null,ctCollectionId LONG default 0 not null,permissionTemplateId LONG not null,groupId LONG,companyId LONG,classNameId LONG,classPK LONG,permissionTemplateEnabled BOOLEAN,primary key (permissionTemplateId, ctCollectionId))"; + + public static final String TABLE_SQL_DROP = "drop table PermissionTemplate"; + + public static final String ORDER_BY_JPQL = + " ORDER BY permissionTemplate.permissionTemplateId ASC"; + + public static final String ORDER_BY_SQL = + " ORDER BY PermissionTemplate.permissionTemplateId ASC"; + + public static final String DATA_SOURCE = "liferayDataSource"; + + public static final String SESSION_FACTORY = "liferaySessionFactory"; + + public static final String TX_MANAGER = "liferayTransactionManager"; + + /** + * @deprecated As of Athanasius (7.3.x), replaced by {@link #getColumnBitmask(String)} + */ + @Deprecated + public static final long CLASSNAMEID_COLUMN_BITMASK = 1L; + + /** + * @deprecated As of Athanasius (7.3.x), replaced by {@link #getColumnBitmask(String)} + */ + @Deprecated + public static final long CLASSPK_COLUMN_BITMASK = 2L; + + /** + * @deprecated As of Athanasius (7.3.x), replaced by {@link #getColumnBitmask(String)} + */ + @Deprecated + public static final long COMPANYID_COLUMN_BITMASK = 4L; + + /** + * @deprecated As of Athanasius (7.3.x), replaced by {@link #getColumnBitmask(String)} + */ + @Deprecated + public static final long GROUPID_COLUMN_BITMASK = 8L; + + /** + * @deprecated As of Athanasius (7.3.x), replaced by {@link + * #getColumnBitmask(String)} + */ + @Deprecated + public static final long PERMISSIONTEMPLATEID_COLUMN_BITMASK = 16L; + + /** + * @deprecated As of Athanasius (7.3.x), with no direct replacement + */ + @Deprecated + public static void setEntityCacheEnabled(boolean entityCacheEnabled) { + } + + /** + * @deprecated As of Athanasius (7.3.x), with no direct replacement + */ + @Deprecated + public static void setFinderCacheEnabled(boolean finderCacheEnabled) { + } + + public PermissionTemplateModelImpl() { + } + + @Override + public long getPrimaryKey() { + return _permissionTemplateId; + } + + @Override + public void setPrimaryKey(long primaryKey) { + setPermissionTemplateId(primaryKey); + } + + @Override + public Serializable getPrimaryKeyObj() { + return _permissionTemplateId; + } + + @Override + public void setPrimaryKeyObj(Serializable primaryKeyObj) { + setPrimaryKey(((Long)primaryKeyObj).longValue()); + } + + @Override + public Class getModelClass() { + return PermissionTemplate.class; + } + + @Override + public String getModelClassName() { + return PermissionTemplate.class.getName(); + } + + @Override + public Map getModelAttributes() { + Map attributes = new HashMap(); + + Map> + attributeGetterFunctions = getAttributeGetterFunctions(); + + for (Map.Entry> entry : + attributeGetterFunctions.entrySet()) { + + String attributeName = entry.getKey(); + Function attributeGetterFunction = + entry.getValue(); + + attributes.put( + attributeName, + attributeGetterFunction.apply((PermissionTemplate)this)); + } + + return attributes; + } + + @Override + public void setModelAttributes(Map attributes) { + Map> + attributeSetterBiConsumers = getAttributeSetterBiConsumers(); + + for (Map.Entry entry : attributes.entrySet()) { + String attributeName = entry.getKey(); + + BiConsumer attributeSetterBiConsumer = + attributeSetterBiConsumers.get(attributeName); + + if (attributeSetterBiConsumer != null) { + attributeSetterBiConsumer.accept( + (PermissionTemplate)this, entry.getValue()); + } + } + } + + public Map> + getAttributeGetterFunctions() { + + return AttributeGetterFunctionsHolder._attributeGetterFunctions; + } + + public Map> + getAttributeSetterBiConsumers() { + + return AttributeSetterBiConsumersHolder._attributeSetterBiConsumers; + } + + private static class AttributeGetterFunctionsHolder { + + private static final Map> + _attributeGetterFunctions; + + static { + Map> + attributeGetterFunctions = + new LinkedHashMap + >(); + + attributeGetterFunctions.put( + "mvccVersion", PermissionTemplate::getMvccVersion); + attributeGetterFunctions.put( + "ctCollectionId", PermissionTemplate::getCtCollectionId); + attributeGetterFunctions.put( + "permissionTemplateId", + PermissionTemplate::getPermissionTemplateId); + attributeGetterFunctions.put( + "groupId", PermissionTemplate::getGroupId); + attributeGetterFunctions.put( + "companyId", PermissionTemplate::getCompanyId); + attributeGetterFunctions.put( + "classNameId", PermissionTemplate::getClassNameId); + attributeGetterFunctions.put( + "classPK", PermissionTemplate::getClassPK); + attributeGetterFunctions.put( + "permissionTemplateEnabled", + PermissionTemplate::getPermissionTemplateEnabled); + + _attributeGetterFunctions = Collections.unmodifiableMap( + attributeGetterFunctions); + } + + } + + private static class AttributeSetterBiConsumersHolder { + + private static final Map> + _attributeSetterBiConsumers; + + static { + Map> + attributeSetterBiConsumers = + new LinkedHashMap + >(); + + attributeSetterBiConsumers.put( + "mvccVersion", + (BiConsumer) + PermissionTemplate::setMvccVersion); + attributeSetterBiConsumers.put( + "ctCollectionId", + (BiConsumer) + PermissionTemplate::setCtCollectionId); + attributeSetterBiConsumers.put( + "permissionTemplateId", + (BiConsumer) + PermissionTemplate::setPermissionTemplateId); + attributeSetterBiConsumers.put( + "groupId", + (BiConsumer) + PermissionTemplate::setGroupId); + attributeSetterBiConsumers.put( + "companyId", + (BiConsumer) + PermissionTemplate::setCompanyId); + attributeSetterBiConsumers.put( + "classNameId", + (BiConsumer) + PermissionTemplate::setClassNameId); + attributeSetterBiConsumers.put( + "classPK", + (BiConsumer) + PermissionTemplate::setClassPK); + attributeSetterBiConsumers.put( + "permissionTemplateEnabled", + (BiConsumer) + PermissionTemplate::setPermissionTemplateEnabled); + + _attributeSetterBiConsumers = Collections.unmodifiableMap( + (Map)attributeSetterBiConsumers); + } + + } + + @Override + public long getMvccVersion() { + return _mvccVersion; + } + + @Override + public void setMvccVersion(long mvccVersion) { + if (_columnOriginalValues == Collections.EMPTY_MAP) { + _setColumnOriginalValues(); + } + + _mvccVersion = mvccVersion; + } + + @Override + public long getCtCollectionId() { + return _ctCollectionId; + } + + @Override + public void setCtCollectionId(long ctCollectionId) { + if (_columnOriginalValues == Collections.EMPTY_MAP) { + _setColumnOriginalValues(); + } + + _ctCollectionId = ctCollectionId; + } + + @Override + public long getPermissionTemplateId() { + return _permissionTemplateId; + } + + @Override + public void setPermissionTemplateId(long permissionTemplateId) { + if (_columnOriginalValues == Collections.EMPTY_MAP) { + _setColumnOriginalValues(); + } + + _permissionTemplateId = permissionTemplateId; + } + + @Override + public long getGroupId() { + return _groupId; + } + + @Override + public void setGroupId(long groupId) { + if (_columnOriginalValues == Collections.EMPTY_MAP) { + _setColumnOriginalValues(); + } + + _groupId = groupId; + } + + /** + * @deprecated As of Athanasius (7.3.x), replaced by {@link + * #getColumnOriginalValue(String)} + */ + @Deprecated + public long getOriginalGroupId() { + return GetterUtil.getLong(this.getColumnOriginalValue("groupId")); + } + + @Override + public long getCompanyId() { + return _companyId; + } + + @Override + public void setCompanyId(long companyId) { + if (_columnOriginalValues == Collections.EMPTY_MAP) { + _setColumnOriginalValues(); + } + + _companyId = companyId; + } + + /** + * @deprecated As of Athanasius (7.3.x), replaced by {@link + * #getColumnOriginalValue(String)} + */ + @Deprecated + public long getOriginalCompanyId() { + return GetterUtil.getLong( + this.getColumnOriginalValue("companyId")); + } + + @Override + public String getClassName() { + if (getClassNameId() <= 0) { + return ""; + } + + return PortalUtil.getClassName(getClassNameId()); + } + + @Override + public void setClassName(String className) { + long classNameId = 0; + + if (Validator.isNotNull(className)) { + classNameId = PortalUtil.getClassNameId(className); + } + + setClassNameId(classNameId); + } + + @Override + public long getClassNameId() { + return _classNameId; + } + + @Override + public void setClassNameId(long classNameId) { + if (_columnOriginalValues == Collections.EMPTY_MAP) { + _setColumnOriginalValues(); + } + + _classNameId = classNameId; + } + + /** + * @deprecated As of Athanasius (7.3.x), replaced by {@link + * #getColumnOriginalValue(String)} + */ + @Deprecated + public long getOriginalClassNameId() { + return GetterUtil.getLong( + this.getColumnOriginalValue("classNameId")); + } + + @Override + public long getClassPK() { + return _classPK; + } + + @Override + public void setClassPK(long classPK) { + if (_columnOriginalValues == Collections.EMPTY_MAP) { + _setColumnOriginalValues(); + } + + _classPK = classPK; + } + + /** + * @deprecated As of Athanasius (7.3.x), replaced by {@link + * #getColumnOriginalValue(String)} + */ + @Deprecated + public long getOriginalClassPK() { + return GetterUtil.getLong(this.getColumnOriginalValue("classPK")); + } + + @Override + public boolean getPermissionTemplateEnabled() { + return _permissionTemplateEnabled; + } + + @Override + public boolean isPermissionTemplateEnabled() { + return _permissionTemplateEnabled; + } + + @Override + public void setPermissionTemplateEnabled( + boolean permissionTemplateEnabled) { + + if (_columnOriginalValues == Collections.EMPTY_MAP) { + _setColumnOriginalValues(); + } + + _permissionTemplateEnabled = permissionTemplateEnabled; + } + + public long getColumnBitmask() { + if (_columnBitmask > 0) { + return _columnBitmask; + } + + if ((_columnOriginalValues == null) || + (_columnOriginalValues == Collections.EMPTY_MAP)) { + + return 0; + } + + for (Map.Entry entry : + _columnOriginalValues.entrySet()) { + + if (!Objects.equals( + entry.getValue(), getColumnValue(entry.getKey()))) { + + _columnBitmask |= _columnBitmasks.get(entry.getKey()); + } + } + + return _columnBitmask; + } + + @Override + public ExpandoBridge getExpandoBridge() { + return ExpandoBridgeFactoryUtil.getExpandoBridge( + getCompanyId(), PermissionTemplate.class.getName(), + getPrimaryKey()); + } + + @Override + public void setExpandoBridgeAttributes(ServiceContext serviceContext) { + ExpandoBridge expandoBridge = getExpandoBridge(); + + expandoBridge.setAttributes(serviceContext); + } + + @Override + public PermissionTemplate toEscapedModel() { + if (_escapedModel == null) { + Function + escapedModelProxyProviderFunction = + EscapedModelProxyProviderFunctionHolder. + _escapedModelProxyProviderFunction; + + _escapedModel = escapedModelProxyProviderFunction.apply( + new AutoEscapeBeanHandler(this)); + } + + return _escapedModel; + } + + @Override + public Object clone() { + PermissionTemplateImpl permissionTemplateImpl = + new PermissionTemplateImpl(); + + permissionTemplateImpl.setMvccVersion(getMvccVersion()); + permissionTemplateImpl.setCtCollectionId(getCtCollectionId()); + permissionTemplateImpl.setPermissionTemplateId( + getPermissionTemplateId()); + permissionTemplateImpl.setGroupId(getGroupId()); + permissionTemplateImpl.setCompanyId(getCompanyId()); + permissionTemplateImpl.setClassNameId(getClassNameId()); + permissionTemplateImpl.setClassPK(getClassPK()); + permissionTemplateImpl.setPermissionTemplateEnabled( + isPermissionTemplateEnabled()); + + permissionTemplateImpl.resetOriginalValues(); + + return permissionTemplateImpl; + } + + @Override + public PermissionTemplate cloneWithOriginalValues() { + PermissionTemplateImpl permissionTemplateImpl = + new PermissionTemplateImpl(); + + permissionTemplateImpl.setMvccVersion( + this.getColumnOriginalValue("mvccVersion")); + permissionTemplateImpl.setCtCollectionId( + this.getColumnOriginalValue("ctCollectionId")); + permissionTemplateImpl.setPermissionTemplateId( + this.getColumnOriginalValue("permissionTemplateId")); + permissionTemplateImpl.setGroupId( + this.getColumnOriginalValue("groupId")); + permissionTemplateImpl.setCompanyId( + this.getColumnOriginalValue("companyId")); + permissionTemplateImpl.setClassNameId( + this.getColumnOriginalValue("classNameId")); + permissionTemplateImpl.setClassPK( + this.getColumnOriginalValue("classPK")); + permissionTemplateImpl.setPermissionTemplateEnabled( + this.getColumnOriginalValue("permissionTemplateEnabled")); + + return permissionTemplateImpl; + } + + @Override + public int compareTo(PermissionTemplate permissionTemplate) { + long primaryKey = permissionTemplate.getPrimaryKey(); + + if (getPrimaryKey() < primaryKey) { + return -1; + } + else if (getPrimaryKey() > primaryKey) { + return 1; + } + else { + return 0; + } + } + + @Override + public boolean equals(Object object) { + if (this == object) { + return true; + } + + if (!(object instanceof PermissionTemplate)) { + return false; + } + + PermissionTemplate permissionTemplate = (PermissionTemplate)object; + + long primaryKey = permissionTemplate.getPrimaryKey(); + + if (getPrimaryKey() == primaryKey) { + return true; + } + else { + return false; + } + } + + @Override + public int hashCode() { + return (int)getPrimaryKey(); + } + + /** + * @deprecated As of Athanasius (7.3.x), with no direct replacement + */ + @Deprecated + @Override + public boolean isEntityCacheEnabled() { + return true; + } + + /** + * @deprecated As of Athanasius (7.3.x), with no direct replacement + */ + @Deprecated + @Override + public boolean isFinderCacheEnabled() { + return true; + } + + @Override + public void resetOriginalValues() { + _columnOriginalValues = Collections.emptyMap(); + + _columnBitmask = 0; + } + + @Override + public CacheModel toCacheModel() { + PermissionTemplateCacheModel permissionTemplateCacheModel = + new PermissionTemplateCacheModel(); + + permissionTemplateCacheModel.mvccVersion = getMvccVersion(); + + permissionTemplateCacheModel.ctCollectionId = getCtCollectionId(); + + permissionTemplateCacheModel.permissionTemplateId = + getPermissionTemplateId(); + + permissionTemplateCacheModel.groupId = getGroupId(); + + permissionTemplateCacheModel.companyId = getCompanyId(); + + permissionTemplateCacheModel.classNameId = getClassNameId(); + + permissionTemplateCacheModel.classPK = getClassPK(); + + permissionTemplateCacheModel.permissionTemplateEnabled = + isPermissionTemplateEnabled(); + + return permissionTemplateCacheModel; + } + + @Override + public String toString() { + Map> + attributeGetterFunctions = getAttributeGetterFunctions(); + + StringBundler sb = new StringBundler( + (5 * attributeGetterFunctions.size()) + 2); + + sb.append("{"); + + for (Map.Entry> entry : + attributeGetterFunctions.entrySet()) { + + String attributeName = entry.getKey(); + Function attributeGetterFunction = + entry.getValue(); + + sb.append("\""); + sb.append(attributeName); + sb.append("\": "); + + Object value = attributeGetterFunction.apply( + (PermissionTemplate)this); + + if (value == null) { + sb.append("null"); + } + else if (value instanceof Blob || value instanceof Date || + value instanceof Map || value instanceof String) { + + sb.append( + "\"" + StringUtil.replace(value.toString(), "\"", "'") + + "\""); + } + else { + sb.append(value); + } + + sb.append(", "); + } + + if (sb.index() > 1) { + sb.setIndex(sb.index() - 1); + } + + sb.append("}"); + + return sb.toString(); + } + + private static class EscapedModelProxyProviderFunctionHolder { + + private static final Function + _escapedModelProxyProviderFunction = + ProxyUtil.getProxyProviderFunction( + PermissionTemplate.class, ModelWrapper.class); + + } + + private long _mvccVersion; + private long _ctCollectionId; + private long _permissionTemplateId; + private long _groupId; + private long _companyId; + private long _classNameId; + private long _classPK; + private boolean _permissionTemplateEnabled; + + public T getColumnValue(String columnName) { + Function function = + AttributeGetterFunctionsHolder._attributeGetterFunctions.get( + columnName); + + if (function == null) { + throw new IllegalArgumentException( + "No attribute getter function found for " + columnName); + } + + return (T)function.apply((PermissionTemplate)this); + } + + public T getColumnOriginalValue(String columnName) { + if (_columnOriginalValues == null) { + return null; + } + + if (_columnOriginalValues == Collections.EMPTY_MAP) { + _setColumnOriginalValues(); + } + + return (T)_columnOriginalValues.get(columnName); + } + + private void _setColumnOriginalValues() { + _columnOriginalValues = new HashMap(); + + _columnOriginalValues.put("mvccVersion", _mvccVersion); + _columnOriginalValues.put("ctCollectionId", _ctCollectionId); + _columnOriginalValues.put( + "permissionTemplateId", _permissionTemplateId); + _columnOriginalValues.put("groupId", _groupId); + _columnOriginalValues.put("companyId", _companyId); + _columnOriginalValues.put("classNameId", _classNameId); + _columnOriginalValues.put("classPK", _classPK); + _columnOriginalValues.put( + "permissionTemplateEnabled", _permissionTemplateEnabled); + } + + private transient Map _columnOriginalValues; + + public static long getColumnBitmask(String columnName) { + return _columnBitmasks.get(columnName); + } + + private static final Map _columnBitmasks; + + static { + Map columnBitmasks = new HashMap<>(); + + columnBitmasks.put("mvccVersion", 1L); + + columnBitmasks.put("ctCollectionId", 2L); + + columnBitmasks.put("permissionTemplateId", 4L); + + columnBitmasks.put("groupId", 8L); + + columnBitmasks.put("companyId", 16L); + + columnBitmasks.put("classNameId", 32L); + + columnBitmasks.put("classPK", 64L); + + columnBitmasks.put("permissionTemplateEnabled", 128L); + + _columnBitmasks = Collections.unmodifiableMap(columnBitmasks); + } + + private long _columnBitmask; + private PermissionTemplate _escapedModel; + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/service/base/PermissionTemplateLocalServiceBaseImpl.java b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/service/base/PermissionTemplateLocalServiceBaseImpl.java new file mode 100644 index 00000000000000..0699dd054d787c --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/service/base/PermissionTemplateLocalServiceBaseImpl.java @@ -0,0 +1,492 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.service.base; + +import com.liferay.permission.template.model.PermissionTemplate; +import com.liferay.permission.template.service.PermissionTemplateLocalService; +import com.liferay.permission.template.service.PermissionTemplateLocalServiceUtil; +import com.liferay.permission.template.service.persistence.PermissionTemplatePersistence; +import com.liferay.petra.function.UnsafeFunction; +import com.liferay.petra.sql.dsl.query.DSLQuery; +import com.liferay.portal.aop.AopService; +import com.liferay.portal.kernel.dao.db.DB; +import com.liferay.portal.kernel.dao.db.DBManagerUtil; +import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; +import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil; +import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery; +import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery; +import com.liferay.portal.kernel.dao.orm.DynamicQuery; +import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; +import com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery; +import com.liferay.portal.kernel.dao.orm.Projection; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.model.PersistedModel; +import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService; +import com.liferay.portal.kernel.search.Indexable; +import com.liferay.portal.kernel.search.IndexableType; +import com.liferay.portal.kernel.service.BaseLocalServiceImpl; +import com.liferay.portal.kernel.service.PersistedModelLocalService; +import com.liferay.portal.kernel.service.change.tracking.CTService; +import com.liferay.portal.kernel.service.persistence.BasePersistence; +import com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence; +import com.liferay.portal.kernel.transaction.Transactional; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.util.PortalUtil; + +import java.io.Serializable; + +import java.util.List; + +import javax.sql.DataSource; + +import org.osgi.service.component.annotations.Deactivate; +import org.osgi.service.component.annotations.Reference; + +/** + * Provides the base implementation for the permission template local service. + * + *

+ * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.permission.template.service.impl.PermissionTemplateLocalServiceImpl}. + *

+ * + * @author Brian Wing Shun Chan + * @see com.liferay.permission.template.service.impl.PermissionTemplateLocalServiceImpl + * @generated + */ +public abstract class PermissionTemplateLocalServiceBaseImpl + extends BaseLocalServiceImpl + implements AopService, IdentifiableOSGiService, + PermissionTemplateLocalService { + + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this class directly. Use PermissionTemplateLocalService via injection or a org.osgi.util.tracker.ServiceTracker or use PermissionTemplateLocalServiceUtil. + */ + + /** + * Adds the permission template to the database. Also notifies the appropriate model listeners. + * + *

+ * Important: Inspect PermissionTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. + *

+ * + * @param permissionTemplate the permission template + * @return the permission template that was added + */ + @Indexable(type = IndexableType.REINDEX) + @Override + public PermissionTemplate addPermissionTemplate( + PermissionTemplate permissionTemplate) { + + permissionTemplate.setNew(true); + + return permissionTemplatePersistence.update(permissionTemplate); + } + + /** + * Creates a new permission template with the primary key. Does not add the permission template to the database. + * + * @param permissionTemplateId the primary key for the new permission template + * @return the new permission template + */ + @Override + @Transactional(enabled = false) + public PermissionTemplate createPermissionTemplate( + long permissionTemplateId) { + + return permissionTemplatePersistence.create(permissionTemplateId); + } + + /** + * Deletes the permission template with the primary key from the database. Also notifies the appropriate model listeners. + * + *

+ * Important: Inspect PermissionTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. + *

+ * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template that was removed + * @throws PortalException if a permission template with the primary key could not be found + */ + @Indexable(type = IndexableType.DELETE) + @Override + public PermissionTemplate deletePermissionTemplate( + long permissionTemplateId) + throws PortalException { + + return permissionTemplatePersistence.remove(permissionTemplateId); + } + + /** + * Deletes the permission template from the database. Also notifies the appropriate model listeners. + * + *

+ * Important: Inspect PermissionTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. + *

+ * + * @param permissionTemplate the permission template + * @return the permission template that was removed + */ + @Indexable(type = IndexableType.DELETE) + @Override + public PermissionTemplate deletePermissionTemplate( + PermissionTemplate permissionTemplate) { + + return permissionTemplatePersistence.remove(permissionTemplate); + } + + @Override + public T dslQuery(DSLQuery dslQuery) { + return permissionTemplatePersistence.dslQuery(dslQuery); + } + + @Override + public int dslQueryCount(DSLQuery dslQuery) { + Long count = dslQuery(dslQuery); + + return count.intValue(); + } + + @Override + public DynamicQuery dynamicQuery() { + Class clazz = getClass(); + + return DynamicQueryFactoryUtil.forClass( + PermissionTemplate.class, clazz.getClassLoader()); + } + + /** + * Performs a dynamic query on the database and returns the matching rows. + * + * @param dynamicQuery the dynamic query + * @return the matching rows + */ + @Override + public List dynamicQuery(DynamicQuery dynamicQuery) { + return permissionTemplatePersistence.findWithDynamicQuery(dynamicQuery); + } + + /** + * Performs a dynamic query on the database and returns a range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.permission.template.model.impl.PermissionTemplateModelImpl. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @return the range of matching rows + */ + @Override + public List dynamicQuery( + DynamicQuery dynamicQuery, int start, int end) { + + return permissionTemplatePersistence.findWithDynamicQuery( + dynamicQuery, start, end); + } + + /** + * Performs a dynamic query on the database and returns an ordered range of the matching rows. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.permission.template.model.impl.PermissionTemplateModelImpl. + *

+ * + * @param dynamicQuery the dynamic query + * @param start the lower bound of the range of model instances + * @param end the upper bound of the range of model instances (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching rows + */ + @Override + public List dynamicQuery( + DynamicQuery dynamicQuery, int start, int end, + OrderByComparator orderByComparator) { + + return permissionTemplatePersistence.findWithDynamicQuery( + dynamicQuery, start, end, orderByComparator); + } + + /** + * Returns the number of rows matching the dynamic query. + * + * @param dynamicQuery the dynamic query + * @return the number of rows matching the dynamic query + */ + @Override + public long dynamicQueryCount(DynamicQuery dynamicQuery) { + return permissionTemplatePersistence.countWithDynamicQuery( + dynamicQuery); + } + + /** + * Returns the number of rows matching the dynamic query. + * + * @param dynamicQuery the dynamic query + * @param projection the projection to apply to the query + * @return the number of rows matching the dynamic query + */ + @Override + public long dynamicQueryCount( + DynamicQuery dynamicQuery, Projection projection) { + + return permissionTemplatePersistence.countWithDynamicQuery( + dynamicQuery, projection); + } + + @Override + public PermissionTemplate fetchPermissionTemplate( + long permissionTemplateId) { + + return permissionTemplatePersistence.fetchByPrimaryKey( + permissionTemplateId); + } + + /** + * Returns the permission template with the primary key. + * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template + * @throws PortalException if a permission template with the primary key could not be found + */ + @Override + public PermissionTemplate getPermissionTemplate(long permissionTemplateId) + throws PortalException { + + return permissionTemplatePersistence.findByPrimaryKey( + permissionTemplateId); + } + + @Override + public ActionableDynamicQuery getActionableDynamicQuery() { + ActionableDynamicQuery actionableDynamicQuery = + new DefaultActionableDynamicQuery(); + + actionableDynamicQuery.setBaseLocalService( + permissionTemplateLocalService); + actionableDynamicQuery.setClassLoader(getClassLoader()); + actionableDynamicQuery.setModelClass(PermissionTemplate.class); + + actionableDynamicQuery.setPrimaryKeyPropertyName( + "permissionTemplateId"); + + return actionableDynamicQuery; + } + + @Override + public IndexableActionableDynamicQuery + getIndexableActionableDynamicQuery() { + + IndexableActionableDynamicQuery indexableActionableDynamicQuery = + new IndexableActionableDynamicQuery(); + + indexableActionableDynamicQuery.setBaseLocalService( + permissionTemplateLocalService); + indexableActionableDynamicQuery.setClassLoader(getClassLoader()); + indexableActionableDynamicQuery.setModelClass(PermissionTemplate.class); + + indexableActionableDynamicQuery.setPrimaryKeyPropertyName( + "permissionTemplateId"); + + return indexableActionableDynamicQuery; + } + + protected void initActionableDynamicQuery( + ActionableDynamicQuery actionableDynamicQuery) { + + actionableDynamicQuery.setBaseLocalService( + permissionTemplateLocalService); + actionableDynamicQuery.setClassLoader(getClassLoader()); + actionableDynamicQuery.setModelClass(PermissionTemplate.class); + + actionableDynamicQuery.setPrimaryKeyPropertyName( + "permissionTemplateId"); + } + + /** + * @throws PortalException + */ + @Override + public PersistedModel createPersistedModel(Serializable primaryKeyObj) + throws PortalException { + + return permissionTemplatePersistence.create( + ((Long)primaryKeyObj).longValue()); + } + + /** + * @throws PortalException + */ + @Override + public PersistedModel deletePersistedModel(PersistedModel persistedModel) + throws PortalException { + + if (_log.isWarnEnabled()) { + _log.warn( + "Implement PermissionTemplateLocalServiceImpl#deletePermissionTemplate(PermissionTemplate) to avoid orphaned data"); + } + + return permissionTemplateLocalService.deletePermissionTemplate( + (PermissionTemplate)persistedModel); + } + + @Override + public BasePersistence getBasePersistence() { + return permissionTemplatePersistence; + } + + /** + * @throws PortalException + */ + @Override + public PersistedModel getPersistedModel(Serializable primaryKeyObj) + throws PortalException { + + return permissionTemplatePersistence.findByPrimaryKey(primaryKeyObj); + } + + /** + * Returns a range of all the permission templates. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.permission.template.model.impl.PermissionTemplateModelImpl. + *

+ * + * @param start the lower bound of the range of permission templates + * @param end the upper bound of the range of permission templates (not inclusive) + * @return the range of permission templates + */ + @Override + public List getPermissionTemplates(int start, int end) { + return permissionTemplatePersistence.findAll(start, end); + } + + /** + * Returns the number of permission templates. + * + * @return the number of permission templates + */ + @Override + public int getPermissionTemplatesCount() { + return permissionTemplatePersistence.countAll(); + } + + /** + * Updates the permission template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. + * + *

+ * Important: Inspect PermissionTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. + *

+ * + * @param permissionTemplate the permission template + * @return the permission template that was updated + */ + @Indexable(type = IndexableType.REINDEX) + @Override + public PermissionTemplate updatePermissionTemplate( + PermissionTemplate permissionTemplate) { + + return permissionTemplatePersistence.update(permissionTemplate); + } + + @Deactivate + protected void deactivate() { + PermissionTemplateLocalServiceUtil.setService(null); + } + + @Override + public Class[] getAopInterfaces() { + return new Class[] { + PermissionTemplateLocalService.class, IdentifiableOSGiService.class, + CTService.class, PersistedModelLocalService.class + }; + } + + @Override + public void setAopProxy(Object aopProxy) { + permissionTemplateLocalService = + (PermissionTemplateLocalService)aopProxy; + + PermissionTemplateLocalServiceUtil.setService( + permissionTemplateLocalService); + } + + /** + * Returns the OSGi service identifier. + * + * @return the OSGi service identifier + */ + @Override + public String getOSGiServiceIdentifier() { + return PermissionTemplateLocalService.class.getName(); + } + + @Override + public CTPersistence getCTPersistence() { + return permissionTemplatePersistence; + } + + @Override + public Class getModelClass() { + return PermissionTemplate.class; + } + + @Override + public R updateWithUnsafeFunction( + UnsafeFunction, R, E> + updateUnsafeFunction) + throws E { + + return updateUnsafeFunction.apply(permissionTemplatePersistence); + } + + protected String getModelClassName() { + return PermissionTemplate.class.getName(); + } + + /** + * Performs a SQL query. + * + * @param sql the sql query + */ + protected void runSQL(String sql) { + try { + DataSource dataSource = + permissionTemplatePersistence.getDataSource(); + + DB db = DBManagerUtil.getDB(); + + sql = db.buildSQL(sql); + sql = PortalUtil.transformSQL(sql); + + SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate( + dataSource, sql); + + sqlUpdate.update(); + } + catch (Exception exception) { + throw new SystemException(exception); + } + } + + protected PermissionTemplateLocalService permissionTemplateLocalService; + + @Reference + protected PermissionTemplatePersistence permissionTemplatePersistence; + + @Reference + protected com.liferay.counter.kernel.service.CounterLocalService + counterLocalService; + + private static final Log _log = LogFactoryUtil.getLog( + PermissionTemplateLocalServiceBaseImpl.class); + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/service/impl/PermissionTemplateLocalServiceImpl.java b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/service/impl/PermissionTemplateLocalServiceImpl.java new file mode 100644 index 00000000000000..98c92c4dd9ba55 --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/service/impl/PermissionTemplateLocalServiceImpl.java @@ -0,0 +1,79 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.service.impl; + +import com.liferay.permission.template.model.PermissionTemplate; +import com.liferay.permission.template.service.base.PermissionTemplateLocalServiceBaseImpl; +import com.liferay.portal.aop.AopService; +import com.liferay.portal.kernel.service.ClassNameLocalService; + +import org.osgi.service.component.annotations.Component; +import org.osgi.service.component.annotations.Reference; + +/** + * @author Brian Wing Shun Chan + */ +@Component( + property = "model.class.name=com.liferay.permission.template.model.PermissionTemplate", + service = AopService.class +) +public class PermissionTemplateLocalServiceImpl + extends PermissionTemplateLocalServiceBaseImpl { + + @Override + public PermissionTemplate addPermissionTemplate( + long companyId, long groupId, String className, long classPK, + boolean permissionTemplateEnabled) { + + PermissionTemplate permissionTemplate = + permissionTemplatePersistence.create( + counterLocalService.increment( + PermissionTemplate.class.getName())); + + permissionTemplate.setGroupId(groupId); + permissionTemplate.setCompanyId(companyId); + permissionTemplate.setClassNameId( + _classNameLocalService.getClassNameId(className)); + permissionTemplate.setClassPK(classPK); + permissionTemplate.setPermissionTemplateEnabled( + permissionTemplateEnabled); + + return permissionTemplatePersistence.update(permissionTemplate); + } + + @Override + public PermissionTemplate fetchPermissionTemplate( + long companyId, long groupId, String className, long classPK) { + + return permissionTemplatePersistence.fetchByG_C_C_C( + groupId, companyId, + _classNameLocalService.getClassNameId(className), classPK); + } + + @Override + public PermissionTemplate updatePermissionTemplate( + long companyId, long groupId, String className, long classPK, + boolean permissionTemplateEnabled) { + + PermissionTemplate permissionTemplate = fetchPermissionTemplate( + companyId, groupId, className, classPK); + + if (permissionTemplate == null) { + return addPermissionTemplate( + companyId, groupId, className, classPK, + permissionTemplateEnabled); + } + + permissionTemplate.setPermissionTemplateEnabled( + permissionTemplateEnabled); + + return permissionTemplatePersistence.update(permissionTemplate); + } + + @Reference + private ClassNameLocalService _classNameLocalService; + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/service/persistence/impl/PermissionTemplateModelArgumentsResolver.java b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/service/persistence/impl/PermissionTemplateModelArgumentsResolver.java new file mode 100644 index 00000000000000..3b9fe7a0418095 --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/service/persistence/impl/PermissionTemplateModelArgumentsResolver.java @@ -0,0 +1,120 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.service.persistence.impl; + +import com.liferay.permission.template.model.PermissionTemplateTable; +import com.liferay.permission.template.model.impl.PermissionTemplateImpl; +import com.liferay.permission.template.model.impl.PermissionTemplateModelImpl; +import com.liferay.portal.kernel.dao.orm.ArgumentsResolver; +import com.liferay.portal.kernel.dao.orm.FinderPath; +import com.liferay.portal.kernel.model.BaseModel; + +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; + +import org.osgi.service.component.annotations.Component; + +/** + * The arguments resolver class for retrieving value from PermissionTemplate. + * + * @author Brian Wing Shun Chan + * @generated + */ +@Component( + property = { + "class.name=com.liferay.permission.template.model.impl.PermissionTemplateImpl", + "table.name=PermissionTemplate" + }, + service = ArgumentsResolver.class +) +public class PermissionTemplateModelArgumentsResolver + implements ArgumentsResolver { + + @Override + public Object[] getArguments( + FinderPath finderPath, BaseModel baseModel, boolean checkColumn, + boolean original) { + + String[] columnNames = finderPath.getColumnNames(); + + if ((columnNames == null) || (columnNames.length == 0)) { + if (baseModel.isNew()) { + return new Object[0]; + } + + return null; + } + + PermissionTemplateModelImpl permissionTemplateModelImpl = + (PermissionTemplateModelImpl)baseModel; + + long columnBitmask = permissionTemplateModelImpl.getColumnBitmask(); + + if (!checkColumn || (columnBitmask == 0)) { + return _getValue( + permissionTemplateModelImpl, columnNames, original); + } + + Long finderPathColumnBitmask = _finderPathColumnBitmasksCache.get( + finderPath); + + if (finderPathColumnBitmask == null) { + finderPathColumnBitmask = 0L; + + for (String columnName : columnNames) { + finderPathColumnBitmask |= + permissionTemplateModelImpl.getColumnBitmask(columnName); + } + + _finderPathColumnBitmasksCache.put( + finderPath, finderPathColumnBitmask); + } + + if ((columnBitmask & finderPathColumnBitmask) != 0) { + return _getValue( + permissionTemplateModelImpl, columnNames, original); + } + + return null; + } + + @Override + public String getClassName() { + return PermissionTemplateImpl.class.getName(); + } + + @Override + public String getTableName() { + return PermissionTemplateTable.INSTANCE.getTableName(); + } + + private static Object[] _getValue( + PermissionTemplateModelImpl permissionTemplateModelImpl, + String[] columnNames, boolean original) { + + Object[] arguments = new Object[columnNames.length]; + + for (int i = 0; i < arguments.length; i++) { + String columnName = columnNames[i]; + + if (original) { + arguments[i] = + permissionTemplateModelImpl.getColumnOriginalValue( + columnName); + } + else { + arguments[i] = permissionTemplateModelImpl.getColumnValue( + columnName); + } + } + + return arguments; + } + + private static final Map _finderPathColumnBitmasksCache = + new ConcurrentHashMap<>(); + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/service/persistence/impl/PermissionTemplatePersistenceImpl.java b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/service/persistence/impl/PermissionTemplatePersistenceImpl.java new file mode 100644 index 00000000000000..e5744c73c4cbc6 --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/service/persistence/impl/PermissionTemplatePersistenceImpl.java @@ -0,0 +1,1261 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.service.persistence.impl; + +import com.liferay.permission.template.exception.NoSuchPermissionTemplateException; +import com.liferay.permission.template.model.PermissionTemplate; +import com.liferay.permission.template.model.PermissionTemplateTable; +import com.liferay.permission.template.model.impl.PermissionTemplateImpl; +import com.liferay.permission.template.model.impl.PermissionTemplateModelImpl; +import com.liferay.permission.template.service.persistence.PermissionTemplatePersistence; +import com.liferay.permission.template.service.persistence.PermissionTemplateUtil; +import com.liferay.permission.template.service.persistence.impl.constants.PermissionTemplatePersistenceConstants; +import com.liferay.petra.string.StringBundler; +import com.liferay.portal.kernel.change.tracking.CTColumnResolutionType; +import com.liferay.portal.kernel.configuration.Configuration; +import com.liferay.portal.kernel.dao.orm.EntityCache; +import com.liferay.portal.kernel.dao.orm.FinderCache; +import com.liferay.portal.kernel.dao.orm.FinderPath; +import com.liferay.portal.kernel.dao.orm.Query; +import com.liferay.portal.kernel.dao.orm.QueryPos; +import com.liferay.portal.kernel.dao.orm.QueryUtil; +import com.liferay.portal.kernel.dao.orm.Session; +import com.liferay.portal.kernel.dao.orm.SessionFactory; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.security.auth.CompanyThreadLocal; +import com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelper; +import com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl; +import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.util.PropsKeys; +import com.liferay.portal.kernel.util.PropsUtil; +import com.liferay.portal.kernel.util.ProxyUtil; + +import java.io.Serializable; + +import java.lang.reflect.InvocationHandler; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.EnumMap; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import javax.sql.DataSource; + +import org.osgi.service.component.annotations.Activate; +import org.osgi.service.component.annotations.Component; +import org.osgi.service.component.annotations.Deactivate; +import org.osgi.service.component.annotations.Reference; + +/** + * The persistence implementation for the permission template service. + * + *

+ * Caching information and settings can be found in portal.properties + *

+ * + * @author Brian Wing Shun Chan + * @generated + */ +@Component(service = PermissionTemplatePersistence.class) +public class PermissionTemplatePersistenceImpl + extends BasePersistenceImpl + implements PermissionTemplatePersistence { + + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this class directly. Always use PermissionTemplateUtil to access the permission template persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class. + */ + public static final String FINDER_CLASS_NAME_ENTITY = + PermissionTemplateImpl.class.getName(); + + public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION = + FINDER_CLASS_NAME_ENTITY + ".List1"; + + public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION = + FINDER_CLASS_NAME_ENTITY + ".List2"; + + private FinderPath _finderPathWithPaginationFindAll; + private FinderPath _finderPathWithoutPaginationFindAll; + private FinderPath _finderPathCountAll; + private FinderPath _finderPathFetchByG_C_C_C; + private FinderPath _finderPathCountByG_C_C_C; + + /** + * Returns the permission template where groupId = ? and companyId = ? and classNameId = ? and classPK = ? or throws a NoSuchPermissionTemplateException if it could not be found. + * + * @param groupId the group ID + * @param companyId the company ID + * @param classNameId the class name ID + * @param classPK the class pk + * @return the matching permission template + * @throws NoSuchPermissionTemplateException if a matching permission template could not be found + */ + @Override + public PermissionTemplate findByG_C_C_C( + long groupId, long companyId, long classNameId, long classPK) + throws NoSuchPermissionTemplateException { + + PermissionTemplate permissionTemplate = fetchByG_C_C_C( + groupId, companyId, classNameId, classPK); + + if (permissionTemplate == null) { + StringBundler sb = new StringBundler(10); + + sb.append(_NO_SUCH_ENTITY_WITH_KEY); + + sb.append("groupId="); + sb.append(groupId); + + sb.append(", companyId="); + sb.append(companyId); + + sb.append(", classNameId="); + sb.append(classNameId); + + sb.append(", classPK="); + sb.append(classPK); + + sb.append("}"); + + if (_log.isDebugEnabled()) { + _log.debug(sb.toString()); + } + + throw new NoSuchPermissionTemplateException(sb.toString()); + } + + return permissionTemplate; + } + + /** + * Returns the permission template where groupId = ? and companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache. + * + * @param groupId the group ID + * @param companyId the company ID + * @param classNameId the class name ID + * @param classPK the class pk + * @return the matching permission template, or null if a matching permission template could not be found + */ + @Override + public PermissionTemplate fetchByG_C_C_C( + long groupId, long companyId, long classNameId, long classPK) { + + return fetchByG_C_C_C(groupId, companyId, classNameId, classPK, true); + } + + /** + * Returns the permission template where groupId = ? and companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache. + * + * @param groupId the group ID + * @param companyId the company ID + * @param classNameId the class name ID + * @param classPK the class pk + * @param useFinderCache whether to use the finder cache + * @return the matching permission template, or null if a matching permission template could not be found + */ + @Override + public PermissionTemplate fetchByG_C_C_C( + long groupId, long companyId, long classNameId, long classPK, + boolean useFinderCache) { + + Object[] finderArgs = null; + + if (useFinderCache) { + finderArgs = new Object[] { + groupId, companyId, classNameId, classPK + }; + } + + Object result = null; + + if (useFinderCache) { + result = finderCache.getResult( + _finderPathFetchByG_C_C_C, finderArgs, this); + } + + boolean productionMode = ctPersistenceHelper.isProductionMode( + PermissionTemplate.class); + + if (result instanceof PermissionTemplate) { + PermissionTemplate permissionTemplate = (PermissionTemplate)result; + + if ((groupId != permissionTemplate.getGroupId()) || + (companyId != permissionTemplate.getCompanyId()) || + (classNameId != permissionTemplate.getClassNameId()) || + (classPK != permissionTemplate.getClassPK())) { + + result = null; + } + else if (!ctPersistenceHelper.isProductionMode( + PermissionTemplate.class, + permissionTemplate.getPrimaryKey())) { + + result = null; + } + } + else if (!productionMode && (result instanceof List)) { + result = null; + } + + if (result == null) { + StringBundler sb = new StringBundler(6); + + sb.append(_SQL_SELECT_PERMISSIONTEMPLATE_WHERE); + + sb.append(_FINDER_COLUMN_G_C_C_C_GROUPID_2); + + sb.append(_FINDER_COLUMN_G_C_C_C_COMPANYID_2); + + sb.append(_FINDER_COLUMN_G_C_C_C_CLASSNAMEID_2); + + sb.append(_FINDER_COLUMN_G_C_C_C_CLASSPK_2); + + String sql = sb.toString(); + + Session session = null; + + try { + session = openSession(); + + Query query = session.createQuery(sql); + + QueryPos queryPos = QueryPos.getInstance(query); + + queryPos.add(groupId); + + queryPos.add(companyId); + + queryPos.add(classNameId); + + queryPos.add(classPK); + + List list = query.list(); + + if (list.isEmpty()) { + if (useFinderCache && productionMode) { + finderCache.putResult( + _finderPathFetchByG_C_C_C, finderArgs, list); + } + } + else { + PermissionTemplate permissionTemplate = list.get(0); + + result = permissionTemplate; + + cacheResult(permissionTemplate); + } + } + catch (Exception exception) { + throw processException(exception); + } + finally { + closeSession(session); + } + } + + if (result instanceof List) { + return null; + } + else { + return (PermissionTemplate)result; + } + } + + /** + * Removes the permission template where groupId = ? and companyId = ? and classNameId = ? and classPK = ? from the database. + * + * @param groupId the group ID + * @param companyId the company ID + * @param classNameId the class name ID + * @param classPK the class pk + * @return the permission template that was removed + */ + @Override + public PermissionTemplate removeByG_C_C_C( + long groupId, long companyId, long classNameId, long classPK) + throws NoSuchPermissionTemplateException { + + PermissionTemplate permissionTemplate = findByG_C_C_C( + groupId, companyId, classNameId, classPK); + + return remove(permissionTemplate); + } + + /** + * Returns the number of permission templates where groupId = ? and companyId = ? and classNameId = ? and classPK = ?. + * + * @param groupId the group ID + * @param companyId the company ID + * @param classNameId the class name ID + * @param classPK the class pk + * @return the number of matching permission templates + */ + @Override + public int countByG_C_C_C( + long groupId, long companyId, long classNameId, long classPK) { + + boolean productionMode = ctPersistenceHelper.isProductionMode( + PermissionTemplate.class); + + FinderPath finderPath = null; + Object[] finderArgs = null; + + Long count = null; + + if (productionMode) { + finderPath = _finderPathCountByG_C_C_C; + + finderArgs = new Object[] { + groupId, companyId, classNameId, classPK + }; + + count = (Long)finderCache.getResult(finderPath, finderArgs, this); + } + + if (count == null) { + StringBundler sb = new StringBundler(5); + + sb.append(_SQL_COUNT_PERMISSIONTEMPLATE_WHERE); + + sb.append(_FINDER_COLUMN_G_C_C_C_GROUPID_2); + + sb.append(_FINDER_COLUMN_G_C_C_C_COMPANYID_2); + + sb.append(_FINDER_COLUMN_G_C_C_C_CLASSNAMEID_2); + + sb.append(_FINDER_COLUMN_G_C_C_C_CLASSPK_2); + + String sql = sb.toString(); + + Session session = null; + + try { + session = openSession(); + + Query query = session.createQuery(sql); + + QueryPos queryPos = QueryPos.getInstance(query); + + queryPos.add(groupId); + + queryPos.add(companyId); + + queryPos.add(classNameId); + + queryPos.add(classPK); + + count = (Long)query.uniqueResult(); + + if (productionMode) { + finderCache.putResult(finderPath, finderArgs, count); + } + } + catch (Exception exception) { + throw processException(exception); + } + finally { + closeSession(session); + } + } + + return count.intValue(); + } + + private static final String _FINDER_COLUMN_G_C_C_C_GROUPID_2 = + "permissionTemplate.groupId = ? AND "; + + private static final String _FINDER_COLUMN_G_C_C_C_COMPANYID_2 = + "permissionTemplate.companyId = ? AND "; + + private static final String _FINDER_COLUMN_G_C_C_C_CLASSNAMEID_2 = + "permissionTemplate.classNameId = ? AND "; + + private static final String _FINDER_COLUMN_G_C_C_C_CLASSPK_2 = + "permissionTemplate.classPK = ?"; + + public PermissionTemplatePersistenceImpl() { + setModelClass(PermissionTemplate.class); + + setModelImplClass(PermissionTemplateImpl.class); + setModelPKClass(long.class); + + setTable(PermissionTemplateTable.INSTANCE); + } + + /** + * Caches the permission template in the entity cache if it is enabled. + * + * @param permissionTemplate the permission template + */ + @Override + public void cacheResult(PermissionTemplate permissionTemplate) { + if (permissionTemplate.getCtCollectionId() != 0) { + return; + } + + entityCache.putResult( + PermissionTemplateImpl.class, permissionTemplate.getPrimaryKey(), + permissionTemplate); + + finderCache.putResult( + _finderPathFetchByG_C_C_C, + new Object[] { + permissionTemplate.getGroupId(), + permissionTemplate.getCompanyId(), + permissionTemplate.getClassNameId(), + permissionTemplate.getClassPK() + }, + permissionTemplate); + } + + private int _valueObjectFinderCacheListThreshold; + + /** + * Caches the permission templates in the entity cache if it is enabled. + * + * @param permissionTemplates the permission templates + */ + @Override + public void cacheResult(List permissionTemplates) { + if ((_valueObjectFinderCacheListThreshold == 0) || + ((_valueObjectFinderCacheListThreshold > 0) && + (permissionTemplates.size() > + _valueObjectFinderCacheListThreshold))) { + + return; + } + + for (PermissionTemplate permissionTemplate : permissionTemplates) { + if (permissionTemplate.getCtCollectionId() != 0) { + continue; + } + + if (entityCache.getResult( + PermissionTemplateImpl.class, + permissionTemplate.getPrimaryKey()) == null) { + + cacheResult(permissionTemplate); + } + } + } + + /** + * Clears the cache for all permission templates. + * + *

+ * The EntityCache and FinderCache are both cleared by this method. + *

+ */ + @Override + public void clearCache() { + entityCache.clearCache(PermissionTemplateImpl.class); + + finderCache.clearCache(PermissionTemplateImpl.class); + } + + /** + * Clears the cache for the permission template. + * + *

+ * The EntityCache and FinderCache are both cleared by this method. + *

+ */ + @Override + public void clearCache(PermissionTemplate permissionTemplate) { + entityCache.removeResult( + PermissionTemplateImpl.class, permissionTemplate); + } + + @Override + public void clearCache(List permissionTemplates) { + for (PermissionTemplate permissionTemplate : permissionTemplates) { + entityCache.removeResult( + PermissionTemplateImpl.class, permissionTemplate); + } + } + + @Override + public void clearCache(Set primaryKeys) { + finderCache.clearCache(PermissionTemplateImpl.class); + + for (Serializable primaryKey : primaryKeys) { + entityCache.removeResult(PermissionTemplateImpl.class, primaryKey); + } + } + + protected void cacheUniqueFindersCache( + PermissionTemplateModelImpl permissionTemplateModelImpl) { + + Object[] args = new Object[] { + permissionTemplateModelImpl.getGroupId(), + permissionTemplateModelImpl.getCompanyId(), + permissionTemplateModelImpl.getClassNameId(), + permissionTemplateModelImpl.getClassPK() + }; + + finderCache.putResult(_finderPathCountByG_C_C_C, args, Long.valueOf(1)); + finderCache.putResult( + _finderPathFetchByG_C_C_C, args, permissionTemplateModelImpl); + } + + /** + * Creates a new permission template with the primary key. Does not add the permission template to the database. + * + * @param permissionTemplateId the primary key for the new permission template + * @return the new permission template + */ + @Override + public PermissionTemplate create(long permissionTemplateId) { + PermissionTemplate permissionTemplate = new PermissionTemplateImpl(); + + permissionTemplate.setNew(true); + permissionTemplate.setPrimaryKey(permissionTemplateId); + + permissionTemplate.setCompanyId(CompanyThreadLocal.getCompanyId()); + + return permissionTemplate; + } + + /** + * Removes the permission template with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template that was removed + * @throws NoSuchPermissionTemplateException if a permission template with the primary key could not be found + */ + @Override + public PermissionTemplate remove(long permissionTemplateId) + throws NoSuchPermissionTemplateException { + + return remove((Serializable)permissionTemplateId); + } + + /** + * Removes the permission template with the primary key from the database. Also notifies the appropriate model listeners. + * + * @param primaryKey the primary key of the permission template + * @return the permission template that was removed + * @throws NoSuchPermissionTemplateException if a permission template with the primary key could not be found + */ + @Override + public PermissionTemplate remove(Serializable primaryKey) + throws NoSuchPermissionTemplateException { + + Session session = null; + + try { + session = openSession(); + + PermissionTemplate permissionTemplate = + (PermissionTemplate)session.get( + PermissionTemplateImpl.class, primaryKey); + + if (permissionTemplate == null) { + if (_log.isDebugEnabled()) { + _log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); + } + + throw new NoSuchPermissionTemplateException( + _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); + } + + return remove(permissionTemplate); + } + catch (NoSuchPermissionTemplateException noSuchEntityException) { + throw noSuchEntityException; + } + catch (Exception exception) { + throw processException(exception); + } + finally { + closeSession(session); + } + } + + @Override + protected PermissionTemplate removeImpl( + PermissionTemplate permissionTemplate) { + + Session session = null; + + try { + session = openSession(); + + if (!session.contains(permissionTemplate)) { + permissionTemplate = (PermissionTemplate)session.get( + PermissionTemplateImpl.class, + permissionTemplate.getPrimaryKeyObj()); + } + + if ((permissionTemplate != null) && + ctPersistenceHelper.isRemove(permissionTemplate)) { + + session.delete(permissionTemplate); + } + } + catch (Exception exception) { + throw processException(exception); + } + finally { + closeSession(session); + } + + if (permissionTemplate != null) { + clearCache(permissionTemplate); + } + + return permissionTemplate; + } + + @Override + public PermissionTemplate updateImpl( + PermissionTemplate permissionTemplate) { + + boolean isNew = permissionTemplate.isNew(); + + if (!(permissionTemplate instanceof PermissionTemplateModelImpl)) { + InvocationHandler invocationHandler = null; + + if (ProxyUtil.isProxyClass(permissionTemplate.getClass())) { + invocationHandler = ProxyUtil.getInvocationHandler( + permissionTemplate); + + throw new IllegalArgumentException( + "Implement ModelWrapper in permissionTemplate proxy " + + invocationHandler.getClass()); + } + + throw new IllegalArgumentException( + "Implement ModelWrapper in custom PermissionTemplate implementation " + + permissionTemplate.getClass()); + } + + PermissionTemplateModelImpl permissionTemplateModelImpl = + (PermissionTemplateModelImpl)permissionTemplate; + + Session session = null; + + try { + session = openSession(); + + if (ctPersistenceHelper.isInsert(permissionTemplate)) { + if (!isNew) { + session.evict( + PermissionTemplateImpl.class, + permissionTemplate.getPrimaryKeyObj()); + } + + session.save(permissionTemplate); + } + else { + permissionTemplate = (PermissionTemplate)session.merge( + permissionTemplate); + } + } + catch (Exception exception) { + throw processException(exception); + } + finally { + closeSession(session); + } + + if (permissionTemplate.getCtCollectionId() != 0) { + if (isNew) { + permissionTemplate.setNew(false); + } + + permissionTemplate.resetOriginalValues(); + + return permissionTemplate; + } + + entityCache.putResult( + PermissionTemplateImpl.class, permissionTemplateModelImpl, false, + true); + + cacheUniqueFindersCache(permissionTemplateModelImpl); + + if (isNew) { + permissionTemplate.setNew(false); + } + + permissionTemplate.resetOriginalValues(); + + return permissionTemplate; + } + + /** + * Returns the permission template with the primary key or throws a com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found. + * + * @param primaryKey the primary key of the permission template + * @return the permission template + * @throws NoSuchPermissionTemplateException if a permission template with the primary key could not be found + */ + @Override + public PermissionTemplate findByPrimaryKey(Serializable primaryKey) + throws NoSuchPermissionTemplateException { + + PermissionTemplate permissionTemplate = fetchByPrimaryKey(primaryKey); + + if (permissionTemplate == null) { + if (_log.isDebugEnabled()) { + _log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); + } + + throw new NoSuchPermissionTemplateException( + _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); + } + + return permissionTemplate; + } + + /** + * Returns the permission template with the primary key or throws a NoSuchPermissionTemplateException if it could not be found. + * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template + * @throws NoSuchPermissionTemplateException if a permission template with the primary key could not be found + */ + @Override + public PermissionTemplate findByPrimaryKey(long permissionTemplateId) + throws NoSuchPermissionTemplateException { + + return findByPrimaryKey((Serializable)permissionTemplateId); + } + + /** + * Returns the permission template with the primary key or returns null if it could not be found. + * + * @param primaryKey the primary key of the permission template + * @return the permission template, or null if a permission template with the primary key could not be found + */ + @Override + public PermissionTemplate fetchByPrimaryKey(Serializable primaryKey) { + if (ctPersistenceHelper.isProductionMode( + PermissionTemplate.class, primaryKey)) { + + return super.fetchByPrimaryKey(primaryKey); + } + + PermissionTemplate permissionTemplate = null; + + Session session = null; + + try { + session = openSession(); + + permissionTemplate = (PermissionTemplate)session.get( + PermissionTemplateImpl.class, primaryKey); + + if (permissionTemplate != null) { + cacheResult(permissionTemplate); + } + } + catch (Exception exception) { + throw processException(exception); + } + finally { + closeSession(session); + } + + return permissionTemplate; + } + + /** + * Returns the permission template with the primary key or returns null if it could not be found. + * + * @param permissionTemplateId the primary key of the permission template + * @return the permission template, or null if a permission template with the primary key could not be found + */ + @Override + public PermissionTemplate fetchByPrimaryKey(long permissionTemplateId) { + return fetchByPrimaryKey((Serializable)permissionTemplateId); + } + + @Override + public Map fetchByPrimaryKeys( + Set primaryKeys) { + + if (ctPersistenceHelper.isProductionMode(PermissionTemplate.class)) { + return super.fetchByPrimaryKeys(primaryKeys); + } + + if (primaryKeys.isEmpty()) { + return Collections.emptyMap(); + } + + Map map = + new HashMap(); + + if (primaryKeys.size() == 1) { + Iterator iterator = primaryKeys.iterator(); + + Serializable primaryKey = iterator.next(); + + PermissionTemplate permissionTemplate = fetchByPrimaryKey( + primaryKey); + + if (permissionTemplate != null) { + map.put(primaryKey, permissionTemplate); + } + + return map; + } + + if ((databaseInMaxParameters > 0) && + (primaryKeys.size() > databaseInMaxParameters)) { + + Iterator iterator = primaryKeys.iterator(); + + while (iterator.hasNext()) { + Set page = new HashSet<>(); + + for (int i = 0; + (i < databaseInMaxParameters) && iterator.hasNext(); i++) { + + page.add(iterator.next()); + } + + map.putAll(fetchByPrimaryKeys(page)); + } + + return map; + } + + StringBundler sb = new StringBundler((primaryKeys.size() * 2) + 1); + + sb.append(getSelectSQL()); + sb.append(" WHERE "); + sb.append(getPKDBName()); + sb.append(" IN ("); + + for (Serializable primaryKey : primaryKeys) { + sb.append((long)primaryKey); + + sb.append(","); + } + + sb.setIndex(sb.index() - 1); + + sb.append(")"); + + String sql = sb.toString(); + + Session session = null; + + try { + session = openSession(); + + Query query = session.createQuery(sql); + + for (PermissionTemplate permissionTemplate : + (List)query.list()) { + + map.put( + permissionTemplate.getPrimaryKeyObj(), permissionTemplate); + + cacheResult(permissionTemplate); + } + } + catch (Exception exception) { + throw processException(exception); + } + finally { + closeSession(session); + } + + return map; + } + + /** + * Returns all the permission templates. + * + * @return the permission templates + */ + @Override + public List findAll() { + return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + } + + /** + * Returns a range of all the permission templates. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PermissionTemplateModelImpl. + *

+ * + * @param start the lower bound of the range of permission templates + * @param end the upper bound of the range of permission templates (not inclusive) + * @return the range of permission templates + */ + @Override + public List findAll(int start, int end) { + return findAll(start, end, null); + } + + /** + * Returns an ordered range of all the permission templates. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PermissionTemplateModelImpl. + *

+ * + * @param start the lower bound of the range of permission templates + * @param end the upper bound of the range of permission templates (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of permission templates + */ + @Override + public List findAll( + int start, int end, + OrderByComparator orderByComparator) { + + return findAll(start, end, orderByComparator, true); + } + + /** + * Returns an ordered range of all the permission templates. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from PermissionTemplateModelImpl. + *

+ * + * @param start the lower bound of the range of permission templates + * @param end the upper bound of the range of permission templates (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @param useFinderCache whether to use the finder cache + * @return the ordered range of permission templates + */ + @Override + public List findAll( + int start, int end, + OrderByComparator orderByComparator, + boolean useFinderCache) { + + boolean productionMode = ctPersistenceHelper.isProductionMode( + PermissionTemplate.class); + + FinderPath finderPath = null; + Object[] finderArgs = null; + + if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && + (orderByComparator == null)) { + + if (useFinderCache && productionMode) { + finderPath = _finderPathWithoutPaginationFindAll; + finderArgs = FINDER_ARGS_EMPTY; + } + } + else if (useFinderCache && productionMode) { + finderPath = _finderPathWithPaginationFindAll; + finderArgs = new Object[] {start, end, orderByComparator}; + } + + List list = null; + + if (useFinderCache && productionMode) { + list = (List)finderCache.getResult( + finderPath, finderArgs, this); + } + + if (list == null) { + StringBundler sb = null; + String sql = null; + + if (orderByComparator != null) { + sb = new StringBundler( + 2 + (orderByComparator.getOrderByFields().length * 2)); + + sb.append(_SQL_SELECT_PERMISSIONTEMPLATE); + + appendOrderByComparator( + sb, _ORDER_BY_ENTITY_ALIAS, orderByComparator); + + sql = sb.toString(); + } + else { + sql = _SQL_SELECT_PERMISSIONTEMPLATE; + + sql = sql.concat(PermissionTemplateModelImpl.ORDER_BY_JPQL); + } + + Session session = null; + + try { + session = openSession(); + + Query query = session.createQuery(sql); + + list = (List)QueryUtil.list( + query, getDialect(), start, end); + + cacheResult(list); + + if (useFinderCache && productionMode) { + finderCache.putResult(finderPath, finderArgs, list); + } + } + catch (Exception exception) { + throw processException(exception); + } + finally { + closeSession(session); + } + } + + return list; + } + + /** + * Removes all the permission templates from the database. + * + */ + @Override + public void removeAll() { + for (PermissionTemplate permissionTemplate : findAll()) { + remove(permissionTemplate); + } + } + + /** + * Returns the number of permission templates. + * + * @return the number of permission templates + */ + @Override + public int countAll() { + boolean productionMode = ctPersistenceHelper.isProductionMode( + PermissionTemplate.class); + + Long count = null; + + if (productionMode) { + count = (Long)finderCache.getResult( + _finderPathCountAll, FINDER_ARGS_EMPTY, this); + } + + if (count == null) { + Session session = null; + + try { + session = openSession(); + + Query query = session.createQuery( + _SQL_COUNT_PERMISSIONTEMPLATE); + + count = (Long)query.uniqueResult(); + + if (productionMode) { + finderCache.putResult( + _finderPathCountAll, FINDER_ARGS_EMPTY, count); + } + } + catch (Exception exception) { + throw processException(exception); + } + finally { + closeSession(session); + } + } + + return count.intValue(); + } + + @Override + protected EntityCache getEntityCache() { + return entityCache; + } + + @Override + protected String getPKDBName() { + return "permissionTemplateId"; + } + + @Override + protected String getSelectSQL() { + return _SQL_SELECT_PERMISSIONTEMPLATE; + } + + @Override + public Set getCTColumnNames( + CTColumnResolutionType ctColumnResolutionType) { + + return _ctColumnNamesMap.getOrDefault( + ctColumnResolutionType, Collections.emptySet()); + } + + @Override + public List getMappingTableNames() { + return _mappingTableNames; + } + + @Override + public Map getTableColumnsMap() { + return PermissionTemplateModelImpl.TABLE_COLUMNS_MAP; + } + + @Override + public String getTableName() { + return "PermissionTemplate"; + } + + @Override + public List getUniqueIndexColumnNames() { + return _uniqueIndexColumnNames; + } + + private static final Map> + _ctColumnNamesMap = new EnumMap>( + CTColumnResolutionType.class); + private static final List _mappingTableNames = + new ArrayList(); + private static final List _uniqueIndexColumnNames = + new ArrayList(); + + static { + Set ctControlColumnNames = new HashSet(); + Set ctStrictColumnNames = new HashSet(); + + ctControlColumnNames.add("mvccVersion"); + ctControlColumnNames.add("ctCollectionId"); + ctStrictColumnNames.add("groupId"); + ctStrictColumnNames.add("companyId"); + ctStrictColumnNames.add("classNameId"); + ctStrictColumnNames.add("classPK"); + ctStrictColumnNames.add("permissionTemplateEnabled"); + + _ctColumnNamesMap.put( + CTColumnResolutionType.CONTROL, ctControlColumnNames); + _ctColumnNamesMap.put( + CTColumnResolutionType.PK, + Collections.singleton("permissionTemplateId")); + _ctColumnNamesMap.put( + CTColumnResolutionType.STRICT, ctStrictColumnNames); + + _uniqueIndexColumnNames.add( + new String[] {"groupId", "companyId", "classNameId", "classPK"}); + } + + /** + * Initializes the permission template persistence. + */ + @Activate + public void activate() { + _valueObjectFinderCacheListThreshold = GetterUtil.getInteger( + PropsUtil.get(PropsKeys.VALUE_OBJECT_FINDER_CACHE_LIST_THRESHOLD)); + + _finderPathWithPaginationFindAll = new FinderPath( + FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findAll", new String[0], + new String[0], true); + + _finderPathWithoutPaginationFindAll = new FinderPath( + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findAll", new String[0], + new String[0], true); + + _finderPathCountAll = new FinderPath( + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countAll", + new String[0], new String[0], false); + + _finderPathFetchByG_C_C_C = new FinderPath( + FINDER_CLASS_NAME_ENTITY, "fetchByG_C_C_C", + new String[] { + Long.class.getName(), Long.class.getName(), + Long.class.getName(), Long.class.getName() + }, + new String[] {"groupId", "companyId", "classNameId", "classPK"}, + true); + + _finderPathCountByG_C_C_C = new FinderPath( + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByG_C_C_C", + new String[] { + Long.class.getName(), Long.class.getName(), + Long.class.getName(), Long.class.getName() + }, + new String[] {"groupId", "companyId", "classNameId", "classPK"}, + false); + + PermissionTemplateUtil.setPersistence(this); + } + + @Deactivate + public void deactivate() { + PermissionTemplateUtil.setPersistence(null); + + entityCache.removeCache(PermissionTemplateImpl.class.getName()); + } + + @Override + @Reference( + target = PermissionTemplatePersistenceConstants.SERVICE_CONFIGURATION_FILTER, + unbind = "-" + ) + public void setConfiguration(Configuration configuration) { + } + + @Override + @Reference( + target = PermissionTemplatePersistenceConstants.ORIGIN_BUNDLE_SYMBOLIC_NAME_FILTER, + unbind = "-" + ) + public void setDataSource(DataSource dataSource) { + super.setDataSource(dataSource); + } + + @Override + @Reference( + target = PermissionTemplatePersistenceConstants.ORIGIN_BUNDLE_SYMBOLIC_NAME_FILTER, + unbind = "-" + ) + public void setSessionFactory(SessionFactory sessionFactory) { + super.setSessionFactory(sessionFactory); + } + + @Reference + protected CTPersistenceHelper ctPersistenceHelper; + + @Reference + protected EntityCache entityCache; + + @Reference + protected FinderCache finderCache; + + private static final String _SQL_SELECT_PERMISSIONTEMPLATE = + "SELECT permissionTemplate FROM PermissionTemplate permissionTemplate"; + + private static final String _SQL_SELECT_PERMISSIONTEMPLATE_WHERE = + "SELECT permissionTemplate FROM PermissionTemplate permissionTemplate WHERE "; + + private static final String _SQL_COUNT_PERMISSIONTEMPLATE = + "SELECT COUNT(permissionTemplate) FROM PermissionTemplate permissionTemplate"; + + private static final String _SQL_COUNT_PERMISSIONTEMPLATE_WHERE = + "SELECT COUNT(permissionTemplate) FROM PermissionTemplate permissionTemplate WHERE "; + + private static final String _ORDER_BY_ENTITY_ALIAS = "permissionTemplate."; + + private static final String _NO_SUCH_ENTITY_WITH_PRIMARY_KEY = + "No PermissionTemplate exists with the primary key "; + + private static final String _NO_SUCH_ENTITY_WITH_KEY = + "No PermissionTemplate exists with the key {"; + + private static final Log _log = LogFactoryUtil.getLog( + PermissionTemplatePersistenceImpl.class); + + @Override + protected FinderCache getFinderCache() { + return finderCache; + } + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/service/persistence/impl/constants/PermissionTemplatePersistenceConstants.java b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/service/persistence/impl/constants/PermissionTemplatePersistenceConstants.java new file mode 100644 index 00000000000000..7c071cbddc673d --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/src/main/java/com/liferay/permission/template/service/persistence/impl/constants/PermissionTemplatePersistenceConstants.java @@ -0,0 +1,23 @@ +/** + * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com + * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 + */ + +package com.liferay.permission.template.service.persistence.impl.constants; + +/** + * @author Brian Wing Shun Chan + * @generated + */ +public class PermissionTemplatePersistenceConstants { + + public static final String BUNDLE_SYMBOLIC_NAME = + "com.liferay.permission.template.service"; + + public static final String ORIGIN_BUNDLE_SYMBOLIC_NAME_FILTER = + "(origin.bundle.symbolic.name=" + BUNDLE_SYMBOLIC_NAME + ")"; + + public static final String SERVICE_CONFIGURATION_FILTER = + "(&" + ORIGIN_BUNDLE_SYMBOLIC_NAME_FILTER + "(name=service))"; + +} \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/src/main/resources/META-INF/module-hbm.xml b/modules/apps/permission-template/permission-template-service/src/main/resources/META-INF/module-hbm.xml new file mode 100644 index 00000000000000..d0e7f73dc579b5 --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/src/main/resources/META-INF/module-hbm.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/src/main/resources/META-INF/portlet-model-hints.xml b/modules/apps/permission-template/permission-template-service/src/main/resources/META-INF/portlet-model-hints.xml new file mode 100644 index 00000000000000..118bcd003b18a0 --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/src/main/resources/META-INF/portlet-model-hints.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/src/main/resources/META-INF/sql/indexes.sql b/modules/apps/permission-template/permission-template-service/src/main/resources/META-INF/sql/indexes.sql new file mode 100644 index 00000000000000..b9ca87a7b54ad8 --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/src/main/resources/META-INF/sql/indexes.sql @@ -0,0 +1 @@ +create unique index IX_CE227482 on PermissionTemplate (classNameId, classPK, ctCollectionId); \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/src/main/resources/META-INF/sql/sequences.sql b/modules/apps/permission-template/permission-template-service/src/main/resources/META-INF/sql/sequences.sql new file mode 100644 index 00000000000000..e69de29bb2d1d6 diff --git a/modules/apps/permission-template/permission-template-service/src/main/resources/META-INF/sql/tables.sql b/modules/apps/permission-template/permission-template-service/src/main/resources/META-INF/sql/tables.sql new file mode 100644 index 00000000000000..0f59ac8fcfd66d --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/src/main/resources/META-INF/sql/tables.sql @@ -0,0 +1,11 @@ +create table PermissionTemplate ( + mvccVersion LONG default 0 not null, + ctCollectionId LONG default 0 not null, + permissionTemplateId LONG not null, + groupId LONG, + companyId LONG, + classNameId LONG, + classPK LONG, + permissionTemplateEnabled BOOLEAN, + primary key (permissionTemplateId, ctCollectionId) +); \ No newline at end of file diff --git a/modules/apps/permission-template/permission-template-service/src/main/resources/service.properties b/modules/apps/permission-template/permission-template-service/src/main/resources/service.properties new file mode 100644 index 00000000000000..b29c522a103209 --- /dev/null +++ b/modules/apps/permission-template/permission-template-service/src/main/resources/service.properties @@ -0,0 +1,17 @@ +## +## Properties Override +## + + # + # Specify where to get the overridden properties. Updates should not be made + # on this file but on the overridden version of this file. + # + include-and-override=service-ext.properties + +## +## Build +## + + build.namespace=com.liferay.permission.template.service + build.number=1 + build.date=1701244720241 \ No newline at end of file diff --git a/modules/apps/permission-template/source-formatter-suppressions.xml b/modules/apps/permission-template/source-formatter-suppressions.xml new file mode 100644 index 00000000000000..45e22d09287240 --- /dev/null +++ b/modules/apps/permission-template/source-formatter-suppressions.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language.properties index 5ca26eaa30066b..cedf743fd3c940 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language.properties @@ -11030,6 +11030,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule model.resource.com.liferay.object.model.ObjectView=Object View +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template model.resource.com.liferay.portal.kernel=Portal model.resource.com.liferay.portal.kernel.model.Address=Address model.resource.com.liferay.portal.kernel.model.Company=Company @@ -12938,6 +12939,7 @@ permission-checking-configurable=Permission Checking Configurable permission-checking-configurable-key-description=Check this box to bypass permission checking for Most Viewed and Highest Ranked assets in the Asset Publisher. This enables users to view them in the Asset Publisher even if they do not have permission to view those assets. permission-filtered-search-result-accurate-count-threshold=Permission Filtered Search Result Accurate Count Threshold permission-filtered-search-result-accurate-count-threshold-help=If a search query returns search results with a count that is within this threshold, the total count after permission filtering is guaranteed to be accurate. +permission-template-enabled=Permission Template Enabled permission-terms-limit=Permission Terms Limit permission-terms-limit-help=Set this to limit the number of permission search terms that will be added to the search query. If this limit is exceeded, no permission search terms will be added. Instead, permission checking will fall back to the search permission filter. permissions=Permissions diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ar.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ar.properties index 1d4b9811ae2fc9..fe850d6111748a 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ar.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ar.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=تخطيط كائن model.resource.com.liferay.object.model.ObjectRelationship=علاقة الكائن model.resource.com.liferay.object.model.ObjectValidationRule=قاعدة التحقق للكائن model.resource.com.liferay.object.model.ObjectView=عرض الكائن +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=البورتال model.resource.com.liferay.portal.kernel.model.Address=عنوان model.resource.com.liferay.portal.kernel.model.Company=شركة @@ -12932,6 +12933,7 @@ permission-checking-configurable=التحقق من الأذونات القابل permission-checking-configurable-key-description=حدد هذه الخانة لتجاوز التحقق من الأذونات للأصول الأكثر مشاهدة والأعلى مستوى في "ناشر الأصول". وهذا يمكّن المستخدمين من عرضها في "ناشر الأصول" حتى إذا لم يكن لديهم إذن لعرض هذه الأصول. permission-filtered-search-result-accurate-count-threshold=حد العدد الدقيق لنتيجة البحث المصفاة للإذن permission-filtered-search-result-accurate-count-threshold-help=إذا عرض طلب بحث نتائج بحث بعدد ضمن هذا الحد، فسيكون العدد الإجمالي بعد تصفية الأذونات مضمونًا. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=حد شروط الأذونات permission-terms-limit-help=يمكنك تعيين هذا الخيار للحد من عدد شروط البحث عن الإذن التي ستتم إضافتها إلى طلب البحث. إذا تم تجاوز هذا الحد، فلن تتم إضافة أي شروط بحث للإذن. وبدلاً من ذلك، سيعود التحقق من الإذن إلى عامل تصفية إذن البحث. permissions=الرخص diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_bg.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_bg.properties index b826e9358a6ad8..102d28c7251ff5 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_bg.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_bg.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Портал model.resource.com.liferay.portal.kernel.model.Address=Адрес model.resource.com.liferay.portal.kernel.model.Company=Компания @@ -12932,6 +12933,7 @@ permission-checking-configurable=Проверка на разрешенията permission-checking-configurable-key-description=Поставете отметка в това квадратче, за да заобиколите проверката за разрешение за най-често преглеждани и най-високо класирани активи в Asset Publisher. Това позволява на потребителите да ги преглеждат в Asset Publisher, дори ако нямат разрешение да преглеждат тези активи. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=Разрешение филтриран резултат точен брой праг (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Ако заявка за търсене връща резултати от търсенето с броя, който е в рамките на този праг, общият брой след филтриране на разрешенията е гарантирано, че е точна. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Ограничение на условията за разрешения (Automatic Translation) permission-terms-limit-help=Задайте това, за да ограничите броя на думите за търсене на разрешения, които ще бъдат добавени към заявката за търсене. Ако това ограничение бъде надвишено, няма да се добавят думи за търсене на разрешения. Вместо това проверката на разрешения ще се върне към филтъра за разрешение за търсене. (Automatic Translation) permissions=Права diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ca.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ca.properties index 14efdbc7f0d024..71db61ddc29747 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ca.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ca.properties @@ -11026,6 +11026,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Disposició d'objecte model.resource.com.liferay.object.model.ObjectRelationship=Relació d'objecte model.resource.com.liferay.object.model.ObjectValidationRule=Regla de validació d'objecte model.resource.com.liferay.object.model.ObjectView=Vista d'objecte +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal model.resource.com.liferay.portal.kernel.model.Address=Adreça model.resource.com.liferay.portal.kernel.model.Company=Empresa @@ -12934,6 +12935,7 @@ permission-checking-configurable=Comprovació de permisos configurable permission-checking-configurable-key-description=Activeu aquesta casella per ometre la comprovació de permisos per als continguts Més vistos i els Més puntuats al Publicador de continguts. Això permet que els usuaris els vegin a l'Editor de continguts, fins i tot si no tenen permís per veure aquests continguts. permission-filtered-search-result-accurate-count-threshold=Llindar de recompte de la precisió dels resultats de cerca filtrada per autorització permission-filtered-search-result-accurate-count-threshold-help=Si una consulta de cerca retorna resultats de cerca amb un recompte que es troba dins d'aquest llindar, es garanteix la precisió del recompte total després del filtratge per autorització. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Límit de les condicions d'autorització permission-terms-limit-help=Establiu això per limitar el nombre de termes de cerca d'autorització que s'afegiran a la consulta de cerca. Si aquest límit se supera, no s'afegirà cap terme de cerca d'autorització. En comptes d'això, la comprovació de permisos es revertirà al filtre d'autorització de la cerca. permissions=Permisos diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_cs.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_cs.properties index b0bad341da0d77..e4bb2fdb9254d6 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_cs.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_cs.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portál model.resource.com.liferay.portal.kernel.model.Address=Adresa model.resource.com.liferay.portal.kernel.model.Company=Společnost @@ -12932,6 +12933,7 @@ permission-checking-configurable=Permission Checking Configurable (Automatic Cop permission-checking-configurable-key-description=Check this box to bypass permission checking for Most Viewed and Highest Ranked assets in the Asset Publisher. This enables users to view them in the Asset Publisher even if they do not have permission to view those assets. (Automatic Copy) permission-filtered-search-result-accurate-count-threshold=Permission Filtered Search Result Accurate Count Threshold (Automatic Copy) permission-filtered-search-result-accurate-count-threshold-help=If a search query returns search results with a count that is within this threshold, the total count after permission filtering is guaranteed to be accurate. (Automatic Copy) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Permission Terms Limit (Automatic Copy) permission-terms-limit-help=Set this to limit the number of permission search terms that will be added to the search query. If this limit is exceeded, no permission search terms will be added. Instead, permission checking will fall back to the search permission filter. (Automatic Copy) permissions=Oprávnění diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_da.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_da.properties index 85cb76f9e4e7a5..1f29c8a1080283 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_da.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_da.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Adresse model.resource.com.liferay.portal.kernel.model.Company=Company (Automatic Copy) @@ -12932,6 +12933,7 @@ permission-checking-configurable=Tilladelseskontrol konfigurerbar (Automatic Tra permission-checking-configurable-key-description=Markér dette afkrydsningsfelt for at springe tilladelseskontrol over for mest viste og højest rangerede aktiver i Aktivudgiver. Dette giver brugerne mulighed for at få dem vist i Aktivudgiver, selvom de ikke har tilladelse til at få vist disse aktiver. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=Grænse for nøjagtigt antal for tilladelsesfiltreret søgeresultat (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Hvis en søgeforespørgsel returnerer søgeresultater med et antal, der ligger inden for denne grænse, garanteres det samlede antal efter tilladelsesfiltrering at være nøjagtigt. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Grænse for tilladelsesbetingelser (Automatic Translation) permission-terms-limit-help=Angiv dette for at begrænse antallet af søgeord for tilladelsessøgning, der føjes til søgeforespørgslen. Hvis denne grænse overskrides, tilføjes der ingen søgeord for tilladelse. I stedet falder tilladelseskontrol tilbage til søgetilladelsesfilteret. (Automatic Translation) permissions=Rettigheder diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_de.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_de.properties index bc278ad71057b7..389411fe87042f 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_de.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_de.properties @@ -11026,6 +11026,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Objektlayout model.resource.com.liferay.object.model.ObjectRelationship=Objektbeziehung model.resource.com.liferay.object.model.ObjectValidationRule=Objektvalidierungsregel model.resource.com.liferay.object.model.ObjectView=Objektansicht +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal model.resource.com.liferay.portal.kernel.model.Address=Adresse model.resource.com.liferay.portal.kernel.model.Company=Unternehmen @@ -12934,6 +12935,7 @@ permission-checking-configurable=Berechtigungsüberprüfung konfigurierbar permission-checking-configurable-key-description=Aktivieren Sie diese Option, um Berechtigungsüberprüfungen für Meistangesehene Assets und Assets mit den höchsten Rängen im Asset-Herausgeber zu umgehen. So können Benutzer sie auch im Asset-Herausgeber sehen, wenn sie keine Berechtigung zum Anzeigen dieser Assets haben. permission-filtered-search-result-accurate-count-threshold=Genaue Anzahlschwelle für berechtigungsgefilterte Suchergebnisse permission-filtered-search-result-accurate-count-threshold-help=Wenn eine Suchanfrage eine Anzahl an Suchergebnissen ausgibt, die innerhalb dieser Schwelle liegt, ist die Gesamtanzahl nach der Berechtigungsfilterung garantiert genau. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Limit Berechtigungsbedingungen permission-terms-limit-help=Legen Sie hier die Anzahl an Berechtigungssuchworten fest, die zur Suchanfrage hinzugefügt werden. Wenn dieses Limit überschritten wird, werden keine Berechtigungssuchworte hinzugefügt. Stattdessen wird die Berechtigungsüberprüfung zurückgehen zum Suchberechtigungsfilter. permissions=Berechtigungen diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_el.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_el.properties index 0e102287194c45..4d39dc1cdb4db8 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_el.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_el.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Διεύθυνση model.resource.com.liferay.portal.kernel.model.Company=Εταιρεία @@ -12932,6 +12933,7 @@ permission-checking-configurable=Έλεγχος δικαιωμάτων με δυ permission-checking-configurable-key-description=Επιλέξτε αυτό το πλαίσιο για να παρακάμψετε τον έλεγχο δικαιωμάτων για τα περιουσιακά στοιχεία με την υψηλότερη προβολή και την υψηλότερη κατάταξη στον εκδότη περιουσιακών στοιχείων. Αυτό επιτρέπει στους χρήστες να τα προβάλλουν στον Εκδότη περιουσιακών στοιχείων, ακόμα και αν δεν έχουν δικαίωμα προβολής αυτών των στοιχείων. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=Όριο ακριβείας αποτελέσματος αναζήτησης φιλτραρισμένο με δικαιώματα (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Εάν ένα ερώτημα αναζήτησης επιστρέφει αποτελέσματα αναζήτησης με μια καταμέτρηση που βρίσκεται εντός αυτού του ορίου, ο συνολικός αριθμός μετά το φιλτράρισμα δικαιωμάτων είναι εγγυημένα ακριβής. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Όριο όρων άδειας (Automatic Translation) permission-terms-limit-help=Ορίστε αυτό για να περιορίσετε τον αριθμό των όρων αναζήτησης δικαιωμάτων που θα προστεθούν στο ερώτημα αναζήτησης. Εάν γίνει υπέρβαση αυτού του ορίου, δεν θα προστεθούν όροι αναζήτησης δικαιωμάτων. Αντίθετα, ο έλεγχος δικαιωμάτων θα επανέλθει στο φίλτρο δικαιωμάτων αναζήτησης. (Automatic Translation) permissions=Δικαιώματα diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_en.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_en.properties index 5ca26eaa30066b..cedf743fd3c940 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_en.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_en.properties @@ -11030,6 +11030,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule model.resource.com.liferay.object.model.ObjectView=Object View +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template model.resource.com.liferay.portal.kernel=Portal model.resource.com.liferay.portal.kernel.model.Address=Address model.resource.com.liferay.portal.kernel.model.Company=Company @@ -12938,6 +12939,7 @@ permission-checking-configurable=Permission Checking Configurable permission-checking-configurable-key-description=Check this box to bypass permission checking for Most Viewed and Highest Ranked assets in the Asset Publisher. This enables users to view them in the Asset Publisher even if they do not have permission to view those assets. permission-filtered-search-result-accurate-count-threshold=Permission Filtered Search Result Accurate Count Threshold permission-filtered-search-result-accurate-count-threshold-help=If a search query returns search results with a count that is within this threshold, the total count after permission filtering is guaranteed to be accurate. +permission-template-enabled=Permission Template Enabled permission-terms-limit=Permission Terms Limit permission-terms-limit-help=Set this to limit the number of permission search terms that will be added to the search query. If this limit is exceeded, no permission search terms will be added. Instead, permission checking will fall back to the search permission filter. permissions=Permissions diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_en_AU.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_en_AU.properties index 4e71bd1ff4dc27..7ea8aa42636f09 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_en_AU.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_en_AU.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Address (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Company=Company (Automatic Copy) @@ -12932,6 +12933,7 @@ permission-checking-configurable=Permission Checking Configurable (Automatic Cop permission-checking-configurable-key-description=Check this box to bypass permission checking for Most Viewed and Highest Ranked assets in the Asset Publisher. This enables users to view them in the Asset Publisher even if they do not have permission to view those assets. (Automatic Copy) permission-filtered-search-result-accurate-count-threshold=Permission Filtered Search Result Accurate Count Threshold (Automatic Copy) permission-filtered-search-result-accurate-count-threshold-help=If a search query returns search results with a count that is within this threshold, the total count after permission filtering is guaranteed to be accurate. (Automatic Copy) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Permission Terms Limit (Automatic Copy) permission-terms-limit-help=Set this to limit the number of permission search terms that will be added to the search query. If this limit is exceeded, no permission search terms will be added. Instead, permission checking will fall back to the search permission filter. (Automatic Copy) permissions=Permissions (Automatic Copy) diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_en_GB.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_en_GB.properties index 42d8c8c5ff9888..a58739f4412ccd 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_en_GB.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_en_GB.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Address (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Company=Company (Automatic Copy) @@ -12932,6 +12933,7 @@ permission-checking-configurable=Permission Checking Configurable (Automatic Cop permission-checking-configurable-key-description=Check this box to bypass permission checking for Most Viewed and Highest Ranked assets in the Asset Publisher. This enables users to view them in the Asset Publisher even if they do not have permission to view those assets. (Automatic Copy) permission-filtered-search-result-accurate-count-threshold=Permission Filtered Search Result Accurate Count Threshold (Automatic Copy) permission-filtered-search-result-accurate-count-threshold-help=If a search query returns search results with a count that is within this threshold, the total count after permission filtering is guaranteed to be accurate. (Automatic Copy) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Permission Terms Limit (Automatic Copy) permission-terms-limit-help=Set this to limit the number of permission search terms that will be added to the search query. If this limit is exceeded, no permission search terms will be added. Instead, permission checking will fall back to the search permission filter. (Automatic Copy) permissions=Permissions (Automatic Copy) diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_es.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_es.properties index 02971923d68f95..54cd0357d84507 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_es.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_es.properties @@ -11026,6 +11026,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Diseño de objeto model.resource.com.liferay.object.model.ObjectRelationship=Relación de objeto model.resource.com.liferay.object.model.ObjectValidationRule=Regla de validación de objeto model.resource.com.liferay.object.model.ObjectView=Vista de objeto +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal model.resource.com.liferay.portal.kernel.model.Address=Dirección model.resource.com.liferay.portal.kernel.model.Company=Compañia @@ -12934,6 +12935,7 @@ permission-checking-configurable=Comprobación de permisos configurable permission-checking-configurable-key-description=Marcar esta casilla para evitar la comprobación de permisos para los Más Vistos y los Mejor Calificados, en el Publicador de Activos. Esto da la posibilidad a los usuarios de verlos en el Publicador de Activos, incluso si no tienen permiso para verlos. permission-filtered-search-result-accurate-count-threshold=Umbral de número preciso de resultados de la búsqueda filtrados de permisos permission-filtered-search-result-accurate-count-threshold-help=Si una consulta de búsqueda devuelve resultados de la búsqueda con un número que se encuentra dentro de este umbral, se garantiza la precisión del número total después de filtrar el permiso. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Límite de términos de permiso permission-terms-limit-help=Establezca esto para limitar el número de términos de búsqueda de permiso que se añadirán a la consulta de búsqueda. Si se supera este límite, no se añadirá ningún término de búsqueda de permiso. En su lugar, la comprobación de permisos se revertirá al filtro de permisos de búsqueda. permissions=Permisos diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_es_AR.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_es_AR.properties index 8c791f168b776a..a65c9929e0d437 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_es_AR.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_es_AR.properties @@ -11026,6 +11026,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Dirección model.resource.com.liferay.portal.kernel.model.Company=Compañia @@ -12934,6 +12935,7 @@ permission-checking-configurable=Comprobación de permisos configurable permission-checking-configurable-key-description=Marcar esta casilla para evitar la comprobación de permisos para los Más Vistos y los Mejor Calificados, en el Publicador de Activos. Esto da la posibilidad a los usuarios de verlos en el Publicador de Activos, incluso si no tienen permiso para verlos. permission-filtered-search-result-accurate-count-threshold=Umbral de número preciso de resultados de la búsqueda filtrados de permisos permission-filtered-search-result-accurate-count-threshold-help=Si una consulta de búsqueda devuelve resultados de la búsqueda con un número que se encuentra dentro de este umbral, se garantiza la precisión del número total después de filtrar el permiso. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Límite de términos de permiso permission-terms-limit-help=Establezca esto para limitar el número de términos de búsqueda de permiso que se añadirán a la consulta de búsqueda. Si se supera este límite, no se añadirá ningún término de búsqueda de permiso. En su lugar, la comprobación de permisos se revertirá al filtro de permisos de búsqueda. permissions=Permisos diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_es_CO.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_es_CO.properties index 8c791f168b776a..a65c9929e0d437 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_es_CO.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_es_CO.properties @@ -11026,6 +11026,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Dirección model.resource.com.liferay.portal.kernel.model.Company=Compañia @@ -12934,6 +12935,7 @@ permission-checking-configurable=Comprobación de permisos configurable permission-checking-configurable-key-description=Marcar esta casilla para evitar la comprobación de permisos para los Más Vistos y los Mejor Calificados, en el Publicador de Activos. Esto da la posibilidad a los usuarios de verlos en el Publicador de Activos, incluso si no tienen permiso para verlos. permission-filtered-search-result-accurate-count-threshold=Umbral de número preciso de resultados de la búsqueda filtrados de permisos permission-filtered-search-result-accurate-count-threshold-help=Si una consulta de búsqueda devuelve resultados de la búsqueda con un número que se encuentra dentro de este umbral, se garantiza la precisión del número total después de filtrar el permiso. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Límite de términos de permiso permission-terms-limit-help=Establezca esto para limitar el número de términos de búsqueda de permiso que se añadirán a la consulta de búsqueda. Si se supera este límite, no se añadirá ningún término de búsqueda de permiso. En su lugar, la comprobación de permisos se revertirá al filtro de permisos de búsqueda. permissions=Permisos diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_es_MX.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_es_MX.properties index 8c791f168b776a..a65c9929e0d437 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_es_MX.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_es_MX.properties @@ -11026,6 +11026,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Dirección model.resource.com.liferay.portal.kernel.model.Company=Compañia @@ -12934,6 +12935,7 @@ permission-checking-configurable=Comprobación de permisos configurable permission-checking-configurable-key-description=Marcar esta casilla para evitar la comprobación de permisos para los Más Vistos y los Mejor Calificados, en el Publicador de Activos. Esto da la posibilidad a los usuarios de verlos en el Publicador de Activos, incluso si no tienen permiso para verlos. permission-filtered-search-result-accurate-count-threshold=Umbral de número preciso de resultados de la búsqueda filtrados de permisos permission-filtered-search-result-accurate-count-threshold-help=Si una consulta de búsqueda devuelve resultados de la búsqueda con un número que se encuentra dentro de este umbral, se garantiza la precisión del número total después de filtrar el permiso. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Límite de términos de permiso permission-terms-limit-help=Establezca esto para limitar el número de términos de búsqueda de permiso que se añadirán a la consulta de búsqueda. Si se supera este límite, no se añadirá ningún término de búsqueda de permiso. En su lugar, la comprobación de permisos se revertirá al filtro de permisos de búsqueda. permissions=Permisos diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_et.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_et.properties index ad308145726f92..cd1e35ddcacfc5 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_et.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_et.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portaal model.resource.com.liferay.portal.kernel.model.Address=Aadress model.resource.com.liferay.portal.kernel.model.Company=Ettevõte @@ -12932,6 +12933,7 @@ permission-checking-configurable=Õiguste kontrollimine konfigureeritav (Automat permission-checking-configurable-key-description=Märkige see ruut, kui soovite varaväljaandja enim vaadatud ja kõrgeima järgu varade õigustest mööda hiilida. See võimaldab kasutajatel neid varaväljaandjas vaadata ka siis, kui neil pole õigust neid varasid vaadata. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=Õiguste filtreeritud otsingutulemite täpne loenduslävi (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Kui otsingupäring tagastab otsingutulemid, mille arv jääb sellesse läve, on koguarvumine pärast õiguste filtreerimist garanteeritud. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Õiguste tingimuste limiit (Automatic Translation) permission-terms-limit-help=Seadke see nii, et see piiraks otsingupäringule lisatavate õiguste otsinguterminite arvu. Kui see limiit on ületatud, siis õiguste otsingutermineid ei lisata. Selle asemel langeb õiguste kontrollimine tagasi otsinguõiguste filtrisse. (Automatic Translation) permissions=Õigused diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_eu.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_eu.properties index d58da33ce4102b..1e216fdc2057d9 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_eu.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_eu.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portala model.resource.com.liferay.portal.kernel.model.Address=Helbidea model.resource.com.liferay.portal.kernel.model.Company=Konpainia @@ -12932,6 +12933,7 @@ permission-checking-configurable=Permission Checking Configurable (Automatic Cop permission-checking-configurable-key-description=Check this box to bypass permission checking for Most Viewed and Highest Ranked assets in the Asset Publisher. This enables users to view them in the Asset Publisher even if they do not have permission to view those assets. (Automatic Copy) permission-filtered-search-result-accurate-count-threshold=Permission Filtered Search Result Accurate Count Threshold (Automatic Copy) permission-filtered-search-result-accurate-count-threshold-help=If a search query returns search results with a count that is within this threshold, the total count after permission filtering is guaranteed to be accurate. (Automatic Copy) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Permission Terms Limit (Automatic Copy) permission-terms-limit-help=Set this to limit the number of permission search terms that will be added to the search query. If this limit is exceeded, no permission search terms will be added. Instead, permission checking will fall back to the search permission filter. (Automatic Copy) permissions=Baimenak diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_fa.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_fa.properties index da0c935cb8198d..49d37a367ef819 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_fa.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_fa.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=پورتال model.resource.com.liferay.portal.kernel.model.Address=آدرس model.resource.com.liferay.portal.kernel.model.Company=شرکت @@ -12932,6 +12933,7 @@ permission-checking-configurable=چک کننده اجازه دسترسی به ص permission-checking-configurable-key-description=این جعبه را بررسی کنید تا چک کردن مجوز بیشترین مشاهده شده و بالاترین دارایی های رتبه بندی شده در ناشر دارایی را دور بزند. این کار کاربران را قادر می سازد تا آنها را در ناشر دارایی مشاهده کنند حتی اگر اجازه مشاهده آن دارایی ها را داشته باشند. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=اجازه فیلتر نتیجه جستجو آستانه شمارش دقیق (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=اگر یک پرس و جو جستجو نتایج جستجو را با شمارشی که درون این آستانه است برگرداند، شمارش کل پس از فیلتر کردن اجازه تضمین می شود که دقیق باشد. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=محدودیت شرایط اجازه (Automatic Translation) permission-terms-limit-help=این را برای محدود کردن تعداد اصطلاحات جستجوی مجوز که به پرس و جو جستجو اضافه خواهد شد، تنظیم کنید. اگر از این حد تجاوز شود، هیچ اصطلاح جستجوی مجوزی اضافه نخواهد شد. در عوض، چک کردن مجوز دوباره به فیلتر مجوز جستجو سقوط خواهد کرد. (Automatic Translation) permissions=اجازه های دسترسی diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_fi.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_fi.properties index 3f718a099292fa..40b8c920bc211e 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_fi.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_fi.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Objektin asettelu model.resource.com.liferay.object.model.ObjectRelationship=Objektin suhde model.resource.com.liferay.object.model.ObjectValidationRule=Objektin validointisääntö model.resource.com.liferay.object.model.ObjectView=Objektinäkymä +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portaali model.resource.com.liferay.portal.kernel.model.Address=Osoite model.resource.com.liferay.portal.kernel.model.Company=Yritys @@ -12931,6 +12932,7 @@ permission-checking-configurable=Käyttöoikeuksien Tarkastus Määritettäviss permission-checking-configurable-key-description=Valitse tämä ruutu ohittaaksesi käyttöoikeuksien tarkastus Katselluimmille ja Korkeimmalle luokitelluille sisällöille sisällönjulkaisijassa. Tämä mahdollistaa käyttäjille katsella niitä Sisällön julkaisijassa vaikka heillä ei olisi oikeutta katsella ko. sisältöjä. permission-filtered-search-result-accurate-count-threshold=Käyttöoikeus-suodatetut Hakutulokset Tarkan Määrän Kynnys permission-filtered-search-result-accurate-count-threshold-help=Jos hakukyselyn palauttaa hakutuloksia määrän, joka on tämän kynnyksen sisällä, kokonaismäärän taataan käyttöoikeuksien suodattamisen jälkeen olevan oikea. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Käyttöoikeusehtojen Raja permission-terms-limit-help=Aseta tämä rajoittamaan niiden käyttöoikeuksien hakuehtojen määrää, jotka lisätään hakulausekeeseen. Jos tämä raja ylittyy, ei käyttöoikeuksien hakuehtoja lisätä. Sen sijaan luvan tarkistus putoaa takaisin käyttöoikeuksien hakusuodattimeen. permissions=Oikeudet diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_fr.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_fr.properties index 51a7e97b9d3609..484f0dd38e0237 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_fr.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_fr.properties @@ -11026,6 +11026,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Disposition d'objet model.resource.com.liferay.object.model.ObjectRelationship=Relation d'objet model.resource.com.liferay.object.model.ObjectValidationRule=Règle de validation d'objet model.resource.com.liferay.object.model.ObjectView=Vue d'objet +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portail model.resource.com.liferay.portal.kernel.model.Address=Adresse model.resource.com.liferay.portal.kernel.model.Company=Entreprise @@ -12934,6 +12935,7 @@ permission-checking-configurable=Vérification de permission configurable permission-checking-configurable-key-description=Cochez cette option pour contourner la vérification de permission pour les actifs Le plus de vues et Meilleur classement de l'Éditeur d'actif. Cela permet aux utilisateurs de les voir dans l'Éditeur d'actif même sans permission de lecture. permission-filtered-search-result-accurate-count-threshold=Seuil de décompte de la précision des résultats de recherche filtrée par autorisation permission-filtered-search-result-accurate-count-threshold-help=Si une requête de recherche renvoie des résultats dont le décompte est dans le cadre de ce seuil, le décompte total après filtrage par autorisation est garanti d'être précis. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Limite des conditions d'autorisation permission-terms-limit-help=Définissez ce paramètre pour limiter le nombre de conditions de recherche d'autorisation qui seront ajoutés à la requête de recherche. Si cette limite est dépassée, aucun terme de recherche d'autorisation ne sera ajouté. À la place, la vérification des permissions renverra au filtre d'autorisation de la recherche. permissions=Droits d'accès diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_fr_CA.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_fr_CA.properties index e3c7ddc0e9eec2..014cd1b86a3a81 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_fr_CA.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_fr_CA.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portail model.resource.com.liferay.portal.kernel.model.Address=Adresse model.resource.com.liferay.portal.kernel.model.Company=Entreprise @@ -12932,6 +12933,7 @@ permission-checking-configurable=Vérification de permission configurable permission-checking-configurable-key-description=Cochez cette option pour contourner la vérification de permission pour les actifs Le plus de vues et Meilleur classement de l'Éditeur d'actif. Cela permet aux utilisateurs de les voir dans l'Éditeur d'actif même sans permission de lecture. permission-filtered-search-result-accurate-count-threshold=Seuil de décompte de la précision des résultats de recherche filtrée par autorisation permission-filtered-search-result-accurate-count-threshold-help=Si une requête de recherche renvoie des résultats dont le décompte est dans le cadre de ce seuil, le décompte total après filtrage par autorisation est garanti d'être précis. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Limite des conditions d'autorisation permission-terms-limit-help=Définissez ce paramètre pour limiter le nombre de conditions de recherche d'autorisation qui seront ajoutés à la requête de recherche. Si cette limite est dépassée, aucun terme de recherche d'autorisation ne sera ajouté. À la place, la vérification des permissions renverra au filtre d'autorisation de la recherche. permissions=Droits d'accès diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_gl.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_gl.properties index 823d9d05aa6bdc..a42de3d06eb357 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_gl.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_gl.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal model.resource.com.liferay.portal.kernel.model.Address=Enderezo model.resource.com.liferay.portal.kernel.model.Company=Compañia @@ -12932,6 +12933,7 @@ permission-checking-configurable=Permission Checking Configurable (Automatic Cop permission-checking-configurable-key-description=Check this box to bypass permission checking for Most Viewed and Highest Ranked assets in the Asset Publisher. This enables users to view them in the Asset Publisher even if they do not have permission to view those assets. (Automatic Copy) permission-filtered-search-result-accurate-count-threshold=Permission Filtered Search Result Accurate Count Threshold (Automatic Copy) permission-filtered-search-result-accurate-count-threshold-help=If a search query returns search results with a count that is within this threshold, the total count after permission filtering is guaranteed to be accurate. (Automatic Copy) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Permission Terms Limit (Automatic Copy) permission-terms-limit-help=Set this to limit the number of permission search terms that will be added to the search query. If this limit is exceeded, no permission search terms will be added. Instead, permission checking will fall back to the search permission filter. (Automatic Copy) permissions=Permisos diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_hi_IN.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_hi_IN.properties index 515da13f4c3205..deec9f6112703d 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_hi_IN.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_hi_IN.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=पोर्टल model.resource.com.liferay.portal.kernel.model.Address=पता model.resource.com.liferay.portal.kernel.model.Company=कंपनी @@ -12932,6 +12933,7 @@ permission-checking-configurable=अनुमति जाँच कॉन्फ permission-checking-configurable-key-description=एसेट पब्लिशर में मोस्ट व्यूएड और हाईएस्ट रैंक वाली एसेट्स के लिए अनुमति जांचने के लिए इस बॉक्स को चेक करें। यह उपयोगकर्ताओं को एसेट प्रकाशक में देखने में सक्षम बनाता है, भले ही उनके पास उन एसेट को देखने की अनुमति न हो। permission-filtered-search-result-accurate-count-threshold=फ़िल्टर किए गए खोज परिणाम सटीक गणना सीमा की अनुमति (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=अगर कोई खोज क्वेरी खोज परिणामों को इस सीमा के भीतर की गणना के साथ लौटाती है, तो अनुमति फ़िल्टरिंग के बाद कुल गणना सटीक होने की गारंटी है. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=अनुमति शर्तों की सीमा (Automatic Translation) permission-terms-limit-help=खोज क्वेरी में जोड़े जाने वाले अनुमति खोज शब्दों की संख्या को सीमित करने के लिए इसे सेट करें। यदि यह सीमा पार हो जाती है, तो कोई अनुमति खोज शर्तें नहीं जोड़ी जाएंगी। इसके बजाय, अनुमति की जांच खोज अनुमति फिल्टर करने के लिए वापस गिर जाएगी । (Automatic Translation) permissions=अनुमतियाँ diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_hr.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_hr.properties index 55f4a3b0b690e6..9fbbe601505cf3 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_hr.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_hr.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Adresa model.resource.com.liferay.portal.kernel.model.Company=Tvrtka @@ -12932,6 +12933,7 @@ permission-checking-configurable=Permission Checking Configurable (Automatic Cop permission-checking-configurable-key-description=Check this box to bypass permission checking for Most Viewed and Highest Ranked assets in the Asset Publisher. This enables users to view them in the Asset Publisher even if they do not have permission to view those assets. (Automatic Copy) permission-filtered-search-result-accurate-count-threshold=Permission Filtered Search Result Accurate Count Threshold (Automatic Copy) permission-filtered-search-result-accurate-count-threshold-help=If a search query returns search results with a count that is within this threshold, the total count after permission filtering is guaranteed to be accurate. (Automatic Copy) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Permission Terms Limit (Automatic Copy) permission-terms-limit-help=Set this to limit the number of permission search terms that will be added to the search query. If this limit is exceeded, no permission search terms will be added. Instead, permission checking will fall back to the search permission filter. (Automatic Copy) permissions=Odobrenja diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_hu.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_hu.properties index 74391382707eaa..f9db1c04269cd0 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_hu.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_hu.properties @@ -11027,6 +11027,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Objektumelrendezés model.resource.com.liferay.object.model.ObjectRelationship=Objektum kapcsolata model.resource.com.liferay.object.model.ObjectValidationRule=Objektumérvényesítés szabálya model.resource.com.liferay.object.model.ObjectView=Objektumnézet +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portál model.resource.com.liferay.portal.kernel.model.Address=Cím model.resource.com.liferay.portal.kernel.model.Company=Cég @@ -12935,6 +12936,7 @@ permission-checking-configurable=A jogosultságok ellenőrzése konfigurálható permission-checking-configurable-key-description=Jelölje be ezt a mezőt, ha a Legnézettebb és a Legjobb értékelésű tartalmak esetében meg kívánja kerülni a jogosultságok ellenőrzését a Tartalomkiadónál. Ez lehetővé teszi, hogy a felhasználók megtekinthessék a Tartalomkiadóban, még akkor is, ha a tartalom megtekintésére nincs jogosultságuk. permission-filtered-search-result-accurate-count-threshold=Szűrt jogosultság keresési eredmények pontos számának küszöbértéke permission-filtered-search-result-accurate-count-threshold-help=Ha a keresési lekérdezés által visszaadott keresési eredmények száma a küszöbértéken belül van, az engedély szűrése után a szám garantáltan pontos. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Jogosultságok kifejezéseinek korlátozásai permission-terms-limit-help=Állítsa be, ha korlátozni kívánja a jogosultságok keresési kifejezéseit, amelyek a keresési lekérdezésbe kerülnek. Ha túllépi ezt a határt, nem kerül be semmilyen jogosultságkeresési kifejezés. Az engedély ellenőrzése visszaállítja az engedélykeresés szűrőjét. permissions=Jogosultságok diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_in.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_in.properties index 20ba2284f78665..75858ac291c7d8 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_in.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_in.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Alamat model.resource.com.liferay.portal.kernel.model.Company=Perusahaan @@ -12932,6 +12933,7 @@ permission-checking-configurable=Pemeriksaan Izin Bisa Dikonfigurasi (Automatic permission-checking-configurable-key-description=Centang kotak ini untuk melewati pemeriksaan izin untuk Aset Berperingkat Paling Banyak Dilihat dan Berperingkat Tertinggi di Penerbit Aset. Ini memungkinkan pengguna untuk menampilkannya di Penerbit Aset meskipun mereka tidak memiliki izin untuk melihat aset tersebut. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=Ambang Batas Penghitungan Akurat Hasil Pencarian Yang Difilter Izin (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Jika kueri pencarian mengembalikan hasil pencarian dengan hitungan yang berada dalam ambang batas ini, jumlah total setelah pemfilteran izin dijamin akurat. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Batas Ketentuan Izin (Automatic Translation) permission-terms-limit-help=Atur ini untuk membatasi jumlah istilah pencarian izin yang akan ditambahkan ke kueri pencarian. Jika batas ini terlampaui, tidak ada persyaratan pencarian izin yang akan ditambahkan. Sebagai gantinya, pemeriksaan izin akan jatuh kembali ke filter izin pencarian. (Automatic Translation) permissions=Perizinan diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_it.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_it.properties index 15636f6d5b6fb0..7f57376119f432 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_it.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_it.properties @@ -11025,6 +11025,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portale model.resource.com.liferay.portal.kernel.model.Address=Indirizzo model.resource.com.liferay.portal.kernel.model.Company=Azienda @@ -12933,6 +12934,7 @@ permission-checking-configurable=Controllo delle autorizzazioni configurabile (A permission-checking-configurable-key-description=Selezionare questa opzione per ignorare il controllo dei permessi per le risorse più viste e più votate nell'aggregatore risorse. Questo consente agli utenti di visualizzarli nell'aggregatore risorse, anche se non hanno l'autorizzazione per visualizzare tali risorse. permission-filtered-search-result-accurate-count-threshold=Soglia conteggio accurato risultati di ricerca filtrati autorizzazione (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Se una query di ricerca restituisce risultati di ricerca con un conteggio che si trova entro questa soglia, il conteggio totale dopo il filtro autorizzazioni è garantito per essere accurato. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Limite termini autorizzazione (Automatic Translation) permission-terms-limit-help=Impostare questa proprietà per limitare il numero di termini di ricerca delle autorizzazioni che verranno aggiunti alla query di ricerca. Se questo limite viene superato, non verranno aggiunti termini di ricerca delle autorizzazioni. Al contrario, il controllo delle autorizzazioni tornerà al filtro delle autorizzazioni di ricerca. (Automatic Translation) permissions=Permessi diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_iw.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_iw.properties index 670c4b7e0356f7..4da01ac458539d 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_iw.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_iw.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=פורטל model.resource.com.liferay.portal.kernel.model.Address=כתובת model.resource.com.liferay.portal.kernel.model.Company=חברה @@ -12932,6 +12933,7 @@ permission-checking-configurable=בדיקת הרשאות ניתנת להגדרה permission-checking-configurable-key-description=סמן תיבה זו כדי לעקוף את בדיקת ההרשאות עבור הנכסים הנצפים ביותר ובדירוג הגבוה ביותר במפרסם הנכסים. פעולה זו מאפשרת למשתמשים להציג אותם במפרסם הנכסים גם אם אין להם הרשאה להציג את הנכסים האלה. permission-filtered-search-result-accurate-count-threshold=תוצאת חיפוש הרשאות מסוננת סף ספירה מדויק permission-filtered-search-result-accurate-count-threshold-help=אם שאילתת חיפוש מחזירה תוצאות חיפוש עם ספירה הנמצא בתחום סף זה, הספירה הכוללת לאחר סינון הרשאות בהכרח מדויקת. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=מגבלת תנאי הרשאה permission-terms-limit-help=הגדר זאת כדי להגביל את מספר מונחי חיפוש ההרשאות אשר יתווספו לשאילתת החיפוש. אם יש חריגה ממגבלה זו, לא יתווספו מונחי חיפוש הרשאות. במקום זאת, הבדיקות תשובנה להיות בהתאם למסנן ההרשאות של החיפוש. permissions=הרשאות diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ja.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ja.properties index c1425f594a14fa..02b50908913da1 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ja.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ja.properties @@ -11026,6 +11026,7 @@ model.resource.com.liferay.object.model.ObjectLayout=オブジェクトレイア model.resource.com.liferay.object.model.ObjectRelationship=オブジェクトリレーション model.resource.com.liferay.object.model.ObjectValidationRule=オブジェクト検証ルール model.resource.com.liferay.object.model.ObjectView=オブジェクトビュー +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=ポータル model.resource.com.liferay.portal.kernel.model.Address=住所 model.resource.com.liferay.portal.kernel.model.Company=会社 @@ -12934,6 +12935,7 @@ permission-checking-configurable=設定可能な権限チェック permission-checking-configurable-key-description=ここをチェックすると、アセットパブリッシャー内の、最も見られている記事と、一番評価が高いアセットの権限チェックを迂回できます。この機能が有効だとアセットにのアクセス権限がなくても、ユーザーはアセットパブリッシャー上にアセットを閲覧できます。 permission-filtered-search-result-accurate-count-threshold=パーミッションフィルター済み検索結果精度のカウンターしきい値 permission-filtered-search-result-accurate-count-threshold-help=検索クエリの検索結果がしきい値以下の場合、パーミッションフィルター後の検索結果数が正確であることが保証されます。 +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=パーミッションタームの最大値 permission-terms-limit-help=検索クエリに追加される、検索パーミッションタームの数を制限に設定します。この制限を超えた場合、検索パーミッションタームは追加されません。代わりに、検索パーミッションフィルターのチェックにフォールバックします。 permissions=権限の設定 diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_kk.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_kk.properties index c05637a38c38ed..3bad9c69e1a232 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_kk.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_kk.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Address (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Company=Company (Automatic Copy) @@ -12932,6 +12933,7 @@ permission-checking-configurable=Permission Checking Configurable (Automatic Cop permission-checking-configurable-key-description=Check this box to bypass permission checking for Most Viewed and Highest Ranked assets in the Asset Publisher. This enables users to view them in the Asset Publisher even if they do not have permission to view those assets. (Automatic Copy) permission-filtered-search-result-accurate-count-threshold=Permission Filtered Search Result Accurate Count Threshold (Automatic Copy) permission-filtered-search-result-accurate-count-threshold-help=If a search query returns search results with a count that is within this threshold, the total count after permission filtering is guaranteed to be accurate. (Automatic Copy) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Permission Terms Limit (Automatic Copy) permission-terms-limit-help=Set this to limit the number of permission search terms that will be added to the search query. If this limit is exceeded, no permission search terms will be added. Instead, permission checking will fall back to the search permission filter. (Automatic Copy) permissions=Permissions (Automatic Copy) diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_km.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_km.properties index 1eb61c249b4035..aa8bad8548d0b0 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_km.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_km.properties @@ -11030,6 +11030,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Address (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Company=Company @@ -12938,6 +12939,7 @@ permission-checking-configurable=Permission Checking Configurable permission-checking-configurable-key-description=Check this box to bypass permission checking for Most Viewed and Highest Ranked assets in the Asset Publisher. This enables users to view them in the Asset Publisher even if they do not have permission to view those assets. permission-filtered-search-result-accurate-count-threshold=Permission Filtered Search Result Accurate Count Threshold permission-filtered-search-result-accurate-count-threshold-help=If a search query returns search results with a count that is within this threshold, the total count after permission filtering is guaranteed to be accurate. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Permission Terms Limit permission-terms-limit-help=Set this to limit the number of permission search terms that will be added to the search query. If this limit is exceeded, no permission search terms will be added. Instead, permission checking will fall back to the search permission filter. permissions=Permissions diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ko.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ko.properties index 2b4f49d3c5aa66..8e03502882b549 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ko.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ko.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=문맥 model.resource.com.liferay.portal.kernel.model.Address=주소 model.resource.com.liferay.portal.kernel.model.Company=회사 @@ -12932,6 +12933,7 @@ permission-checking-configurable=권한 체크 설정가능 permission-checking-configurable-key-description=자산 게시자에서 가장 많이 본 자산과 가장 높은 순위 자산에 대한 권한 검사를 무시하려면 이 확인란을 선택합니다. 이를 통해 사용자는 자산을 볼 수 있는 권한이 없더라도 자산 게시자에서 자산을 볼 수 있습니다. permission-filtered-search-result-accurate-count-threshold=권한 필터링된 검색 결과 정확한 개수 임계값 permission-filtered-search-result-accurate-count-threshold-help=검색 쿼리가 이 임계값 내에 있는 개수의 검색 결과를 반환하는 경우 권한 필터링 후의 총 개수는 정확합니다. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=권한 조건 제한 permission-terms-limit-help=검색어에 추가할 권한 검색어의 수를 제한하려면 이를 설정하십시오. 이 제한을 초과하면 권한 검색어가 추가되지 않습니다. 대신 권한 검사는 검색 권한 필터로 대체됩니다. permissions=허가 diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_lo.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_lo.properties index d7ceb50433cb86..38bf5ef3d8b78a 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_lo.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_lo.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=ພ໋ອດອອນ model.resource.com.liferay.portal.kernel.model.Address=ທີ່ຢູ່ model.resource.com.liferay.portal.kernel.model.Company=ບໍລິສັດ @@ -12932,6 +12933,7 @@ permission-checking-configurable=Permission Checking Configurable (Automatic Cop permission-checking-configurable-key-description=Check this box to bypass permission checking for Most Viewed and Highest Ranked assets in the Asset Publisher. This enables users to view them in the Asset Publisher even if they do not have permission to view those assets. (Automatic Copy) permission-filtered-search-result-accurate-count-threshold=Permission Filtered Search Result Accurate Count Threshold (Automatic Copy) permission-filtered-search-result-accurate-count-threshold-help=If a search query returns search results with a count that is within this threshold, the total count after permission filtering is guaranteed to be accurate. (Automatic Copy) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Permission Terms Limit (Automatic Copy) permission-terms-limit-help=Set this to limit the number of permission search terms that will be added to the search query. If this limit is exceeded, no permission search terms will be added. Instead, permission checking will fall back to the search permission filter. (Automatic Copy) permissions=ສິດທິ diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_lt.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_lt.properties index b538b532da9159..34bce6dce75084 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_lt.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_lt.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Address (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Company=Company (Automatic Copy) @@ -12932,6 +12933,7 @@ permission-checking-configurable=Teisių tikrinimas konfigūruojamas (Automatic permission-checking-configurable-key-description=Pažymėkite šį žymės langelį, jei norite apeiti turto leidėjo peržiūrėto ir aukščiausio rango turto teisių tikrinimą. Tai leidžia vartotojams peržiūrėti juos turto leidykloje, net jei jie neturi teisės peržiūrėti šio turto. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=Teisių filtruotas ieškos rezultato tikslaus skaičiavimo slenkstis (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Jei ieškos užklausa pateikia ieškos rezultatus su skaičiumi, kuris atitinka šį slenkstį, garantuojama, kad bendras skaičius po teisių filtravimo bus tikslus. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Teisių sąlygų limitas (Automatic Translation) permission-terms-limit-help=Nustatykite tai, kad apribotumėte teisių ieškos terminų, kurie bus įtraukti į ieškos užklausą, skaičių. Jei šis limitas bus viršytas, teisių ieškos terminai nebus pridėti. Vietoj to teisių tikrinimas bus grąžintas į ieškos teisių filtrą. (Automatic Translation) permissions=Teises (Automatic Translation) diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ms.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ms.properties index 0ea31ec0f60955..24fd6c8db700f1 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ms.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ms.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Address (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Company=Company (Automatic Copy) @@ -12932,6 +12933,7 @@ permission-checking-configurable=Konfigurasi Semakan Keizinan (Automatic Transla permission-checking-configurable-key-description=Semak kotak ini untuk memintas keizinan menyemak aset Paling Banyak Dilihat dan Kedudukan Tertinggi dalam Penerbit Aset. Ini membolehkan pengguna melihatnya dalam Penerbit Aset walaupun mereka tidak mempunyai keizinan untuk melihat aset tersebut. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=Ambang Kiraan Kiraan Tepat Hasil Carian Keizinan (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Jika pertanyaan carian mengembalikan hasil carian dengan kiraan yang berada dalam ambang ini, jumlah kiraan selepas penapisan kebenaran dijamin tepat. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Had Terma Keizinan (Automatic Translation) permission-terms-limit-help=Setkan ini untuk mengehadkan bilangan istilah carian keizinan yang akan ditambah ke pertanyaan carian. Jika had ini melebihi, tiada istilah carian keizinan akan ditambah. Sebaliknya, pemeriksaan keizinan akan jatuh kembali ke penapis keizinan carian. (Automatic Translation) permissions=Keizinan (Automatic Translation) diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_nb.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_nb.properties index d7ddacdae06d5e..ed0d99eca30176 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_nb.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_nb.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Adresse model.resource.com.liferay.portal.kernel.model.Company=Firma @@ -12932,6 +12933,7 @@ permission-checking-configurable=Tilgangskontrollkonfigurering permission-checking-configurable-key-description=Huk av her for å ikke bruke tilgangskontroll på flest visninger og høyest rangerte ressurser i Ressurspublisering. Dette lar brukerne se dem i Ressurspublisering selv om de ikke har tilgang til å se disse ressursene. permission-filtered-search-result-accurate-count-threshold=Terskel for nøyaktig antall for filtrerte søkeresultater for tillatelser (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Hvis en søkespørring returnerer søkeresultater med et antall som er innenfor denne terskelen, vil det totale antallet etter tillatelsesfiltrering garantert være nøyaktig. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Grense for vilkår for tillatelse (Automatic Translation) permission-terms-limit-help=Angi dette for å begrense antall søketermer for tillatelser som skal legges til i søkespørringen. Hvis denne grensen overskrides, legges det ikke til noen søkeord for tillatelse. I stedet vil tillatelseskontroll gå tilbake til søketillatelsesfilteret. (Automatic Translation) permissions=Rettigheter diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_nl.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_nl.properties index 2ada2056f18bd5..84331a092bdc0c 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_nl.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_nl.properties @@ -11027,6 +11027,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Objectlay-out model.resource.com.liferay.object.model.ObjectRelationship=Objectrelatie model.resource.com.liferay.object.model.ObjectValidationRule=Objectvalidatieregel model.resource.com.liferay.object.model.ObjectView=Objectweergave +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portaal model.resource.com.liferay.portal.kernel.model.Address=Adres model.resource.com.liferay.portal.kernel.model.Company=Bedrijf @@ -12935,6 +12936,7 @@ permission-checking-configurable=Machtigingcontrole configureerbaar permission-checking-configurable-key-description=Vink dit vakje aan om machtigingcontrole over te slaan voor de assets 'Meest bekeken' en 'Hoogste rangschikking' in de assetuitgever. Zo kunnen gebruikers ze ook zonder weergavemachtiging bekijken in de assetuitgever. permission-filtered-search-result-accurate-count-threshold=Machtigingfilter drempel precies aantal zoekresultaten permission-filtered-search-result-accurate-count-threshold-help=Als een zoekopdracht een aantal zoekresultaten oplevert dat binnen deze drempel valt, is het totale aantal na machtigingsfiltering gegarandeerd accuraat. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Limiet machtigingsvoorwaarden permission-terms-limit-help=Stel dit in om het aantal zoektermen voor machtigingen te beperken dat toegevoegd zal worden aan de zoekquery. Bij overschrijding van deze limiet worden geen zoektermen voor machtigingen toegevoegd. De machtigingcontrole zal in dat geval gebruikmaken van de filter 'machtiging zoeken'. permissions=Rechten diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_nl_BE.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_nl_BE.properties index edd89789553029..61cfbd59206730 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_nl_BE.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_nl_BE.properties @@ -11027,6 +11027,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portaal model.resource.com.liferay.portal.kernel.model.Address=Adres model.resource.com.liferay.portal.kernel.model.Company=Bedrijf @@ -12935,6 +12936,7 @@ permission-checking-configurable=Permission Checking Configurable (Automatic Cop permission-checking-configurable-key-description=Check this box to bypass permission checking for Most Viewed and Highest Ranked assets in the Asset Publisher. This enables users to view them in the Asset Publisher even if they do not have permission to view those assets. (Automatic Copy) permission-filtered-search-result-accurate-count-threshold=Permission Filtered Search Result Accurate Count Threshold (Automatic Copy) permission-filtered-search-result-accurate-count-threshold-help=If a search query returns search results with a count that is within this threshold, the total count after permission filtering is guaranteed to be accurate. (Automatic Copy) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Permission Terms Limit (Automatic Copy) permission-terms-limit-help=Set this to limit the number of permission search terms that will be added to the search query. If this limit is exceeded, no permission search terms will be added. Instead, permission checking will fall back to the search permission filter. (Automatic Copy) permissions=Rechten diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_pl.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_pl.properties index e312865d855634..42befd85760e0c 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_pl.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_pl.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Adres model.resource.com.liferay.portal.kernel.model.Company=Firma @@ -12932,6 +12933,7 @@ permission-checking-configurable=Sprawdzanie uprawnień Konfigurowalne (Automati permission-checking-configurable-key-description=Zaznacz to pole wyboru, aby pominąć sprawdzanie uprawnień dla najczęściej oglądanych i najwyżej ocenianych zasobów w Wydawcy zasobów. Dzięki temu użytkownicy mogą wyświetlać je w Wydawcy zasobów, nawet jeśli nie mają uprawnień do wyświetlania tych zasobów. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=Próg dokładnej liczby wyników wyszukiwania filtrowanego uprawnień (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Jeśli kwerenda wyszukiwania zwraca wyniki wyszukiwania z liczbą, która mieści się w tym progu, całkowita liczba po filtrowaniu uprawnień jest gwarantowana jako dokładna. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Limit warunków uprawnień (Automatic Translation) permission-terms-limit-help=Ustaw to, aby ograniczyć liczbę wyszukiwanych terminów uprawnień, które zostaną dodane do zapytania wyszukiwania. Jeśli ten limit zostanie przekroczony, nie zostaną dodane żadne terminy wyszukiwania uprawnień. Zamiast tego sprawdzanie uprawnień powróci do filtru uprawnień wyszukiwania. (Automatic Translation) permissions=Uprawnienia diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_pt_BR.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_pt_BR.properties index e5a6a6fcca26d1..a14ed21ee46538 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_pt_BR.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_pt_BR.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Layout do objeto model.resource.com.liferay.object.model.ObjectRelationship=Relacionamento do objeto model.resource.com.liferay.object.model.ObjectValidationRule=Regra de validação de objeto model.resource.com.liferay.object.model.ObjectView=Visualizar objeto +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal model.resource.com.liferay.portal.kernel.model.Address=Endereço model.resource.com.liferay.portal.kernel.model.Company=Empresa @@ -12932,6 +12933,7 @@ permission-checking-configurable=Verificação da Permissão Configurável permission-checking-configurable-key-description=Marcar está caixa para ignorar a verificação de permissão para conteúdos Mais Visualizados e Mais Bem Classificados no Publicador de Conteúdos. Isto permite que os usuários visualizem eles no Publicador de Conteúdos mesmo se eles não possuam permissões para visualizá-los. permission-filtered-search-result-accurate-count-threshold=Limite de contagem precisa do resultado da busca filtrada por permissão permission-filtered-search-result-accurate-count-threshold-help=Se a consulta de busca devolver resultados de busca com uma contagem que está dentro deste limite, a contagem total após a filtragem por permissão tem a precisão garantida. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Limite de termos de permissão permission-terms-limit-help=Definir ele para limitar o número de termos de busca por permissão que serão adicionados à consulta de busca. Se este limite for excedido, nenhum termo de busca por permissão será adicionado. Em vez disso, a verificação por permissão voltará para o filtro de permissão de busca. permissions=Permissões diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_pt_PT.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_pt_PT.properties index 7221c92eb22d97..463f0fb22b9ae5 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_pt_PT.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_pt_PT.properties @@ -11026,6 +11026,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Endereço model.resource.com.liferay.portal.kernel.model.Company=Empresa @@ -12934,6 +12935,7 @@ permission-checking-configurable=Verificação de permissão configurável (Auto permission-checking-configurable-key-description=Verifique esta caixa para ignorar a verificação de permissões para os ativos mais visualizados e classificados no Editor de Ativos. Isso permite que os usuários os visualizem no Asset Publisher mesmo que não tenham permissão para visualizar esses ativos. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=Limite preciso de contagem precisa do resultado de pesquisa filtrado (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Se uma consulta de pesquisa retornar os resultados da pesquisa com uma contagem que está dentro desse limite, a contagem total após a filtragem da permissão é garantida como precisa. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Limite de termos de permissão (Automatic Translation) permission-terms-limit-help=Defina isso para limitar o número de termos de pesquisa de permissão que serão adicionados à consulta de pesquisa. Se esse limite for excedido, nenhum termo de pesquisa de permissão será adicionado. Em vez disso, a verificação de permissão cairá de volta para o filtro de permissão de pesquisa. (Automatic Translation) permissions=Permissões diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ro.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ro.properties index 70395669c1e2ea..21d6c6486ce7e6 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ro.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ro.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Adresă model.resource.com.liferay.portal.kernel.model.Company=Companie @@ -12932,6 +12933,7 @@ permission-checking-configurable=Verificare permisiune configurabilă (Automatic permission-checking-configurable-key-description=Bifați această casetă pentru a ocoli verificarea permisiunii pentru majoritatea activelor vizualizate și cele mai bine clasate din Editorul de active. Acest lucru permite utilizatorilor să le vizualizeze în Editorul de active, chiar dacă nu au permisiunea de a vizualiza acele active. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=Prag de numărare exactă a rezultatelor căutării filtrate cu permisiune (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Dacă o interogare de căutare returnează rezultatele căutării cu un număr care se află în acest prag, numărul total după filtrarea permisiunii este garantat a fi corect. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Limită termeni permisiune (Automatic Translation) permission-terms-limit-help=Setați acest lucru pentru a limita numărul de termeni de căutare a permisiunilor care vor fi adăugați la interogarea de căutare. Dacă această limită este depășită, nu se vor adăuga termeni de căutare a permisiunii. În schimb, verificarea permisiunilor va reveni la filtrul de permisiuni de căutare. (Automatic Translation) permissions=Permisiuni diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ru.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ru.properties index 812609ec49a176..a051e67f869652 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ru.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ru.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Портал model.resource.com.liferay.portal.kernel.model.Address=Адрес model.resource.com.liferay.portal.kernel.model.Company=Компания @@ -12932,6 +12933,7 @@ permission-checking-configurable=Проверка разрешения Наст permission-checking-configurable-key-description=Проверьте это поле, чтобы обойти проверку разрешений для большинства просмотренных и самых высоких рейтинговых активов в издателе активов. Это позволяет пользователям просматривать их в Издателе активов, даже если у них нет разрешения на просмотр этих активов. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=Разрешение Фильтрованный результат поиска Точный порог подсчета (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Если поисковый запрос возвращает результаты поиска с числом, которое находится в пределах этого порога, общее количество после фильтрации разрешения гарантированно будет точным. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Ограничение сроков разрешения (Automatic Translation) permission-terms-limit-help=Установите это, чтобы ограничить количество терминов поиска разрешений, которые будут добавлены в поисковый запрос. Если этот предел превышен, условия поиска разрешений не будут добавлены. Вместо этого проверка разрешений возвращается к фильтру разрешения поиска. (Automatic Translation) permissions=Права доступа diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sk.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sk.properties index 690f89e6905418..6b41a6c3f1e9e2 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sk.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sk.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portál model.resource.com.liferay.portal.kernel.model.Address=Adresa model.resource.com.liferay.portal.kernel.model.Company=Spoločnosť @@ -12932,6 +12933,7 @@ permission-checking-configurable=Konfigurovateľná kontrola povolení (Automati permission-checking-configurable-key-description=Začiarknutím tohto políčka obídete kontrolu povolení pre najszerovanejšie a najvyššie hodnotené aktíva v publisheri majetku. To umožňuje používateľom zobraziť ich v programe Asset Publisher, aj keď nemajú povolenie na zobrazenie týchto aktív. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=Povolenie Filtrovaný presný prah počtu výsledkov vyhľadávania (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Ak vyhľadávací dotaz vráti výsledky vyhľadávania s počtom, ktorý je v rámci tohto prahu, celkový počet po filtrovaní povolení je zaručene presný. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Limit podmienok povolenia (Automatic Translation) permission-terms-limit-help=Túto hodnotu nastavte tak, aby sa obmedzil počet hľadaných výrazov povolení, ktoré sa pridajú do vyhľadávacieho dotazu. Ak sa tento limit prekročí, nebudú pridané žiadne hľadané výrazy povolení. Namiesto toho kontrola povolení klesne späť na filter povolení vyhľadávania. (Automatic Translation) permissions=Oprávnenia diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sl.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sl.properties index 72f2d1a05db1bd..9edab10b158511 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sl.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sl.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Naslov model.resource.com.liferay.portal.kernel.model.Company=Podjetje @@ -12932,6 +12933,7 @@ permission-checking-configurable=Preverjanje dovoljenj Nastavljivo (Automatic Tr permission-checking-configurable-key-description=Potrdite to polje, če želite zaobiti preverjanje dovoljenj za najbolj ogledana in najvišja razvrščena sredstva v založniku sredstev. To omogoča uporabnikom, da si jih ogledajo v programu Asset Publisher, tudi če nimajo dovoljenja za ogled teh sredstev. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=Prag natančnega štetja rezultatov iskanja filtriranega dovoljenja (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Če iskalna poizvedba vrne rezultate iskanja s številom, ki je znotraj tega praga, je skupno število po filtriranju dovoljenj zagotovljeno natančno. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Omejitev pogojev za dovoljenje (Automatic Translation) permission-terms-limit-help=Nastavite to, da omejite število iskalnih izrazov za dovoljenja, ki bodo dodani iskalni poizvedbi. Če je ta omejitev presegana, ne bodo dodani nobeni iskalni izrazi za dovoljenje. Namesto tega bo preverjanje dovoljenj padlo nazaj na filter dovoljenja za iskanje. (Automatic Translation) permissions=Pravice diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sr_RS.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sr_RS.properties index 09ae0413c8e0e9..a209a46ffa2e3f 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sr_RS.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sr_RS.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Портал model.resource.com.liferay.portal.kernel.model.Address=Адреса model.resource.com.liferay.portal.kernel.model.Company=Компанија @@ -12932,6 +12933,7 @@ permission-checking-configurable=Permission Checking Configurable (Automatic Cop permission-checking-configurable-key-description=Check this box to bypass permission checking for Most Viewed and Highest Ranked assets in the Asset Publisher. This enables users to view them in the Asset Publisher even if they do not have permission to view those assets. (Automatic Copy) permission-filtered-search-result-accurate-count-threshold=Permission Filtered Search Result Accurate Count Threshold (Automatic Copy) permission-filtered-search-result-accurate-count-threshold-help=If a search query returns search results with a count that is within this threshold, the total count after permission filtering is guaranteed to be accurate. (Automatic Copy) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Permission Terms Limit (Automatic Copy) permission-terms-limit-help=Set this to limit the number of permission search terms that will be added to the search query. If this limit is exceeded, no permission search terms will be added. Instead, permission checking will fall back to the search permission filter. (Automatic Copy) permissions=Дозволе diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sr_RS_latin.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sr_RS_latin.properties index d174fe2819408d..bbc15c32b00773 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sr_RS_latin.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sr_RS_latin.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Adresa model.resource.com.liferay.portal.kernel.model.Company=Kompanija @@ -12932,6 +12933,7 @@ permission-checking-configurable=Permission Checking Configurable (Automatic Cop permission-checking-configurable-key-description=Check this box to bypass permission checking for Most Viewed and Highest Ranked assets in the Asset Publisher. This enables users to view them in the Asset Publisher even if they do not have permission to view those assets. (Automatic Copy) permission-filtered-search-result-accurate-count-threshold=Permission Filtered Search Result Accurate Count Threshold (Automatic Copy) permission-filtered-search-result-accurate-count-threshold-help=If a search query returns search results with a count that is within this threshold, the total count after permission filtering is guaranteed to be accurate. (Automatic Copy) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Permission Terms Limit (Automatic Copy) permission-terms-limit-help=Set this to limit the number of permission search terms that will be added to the search query. If this limit is exceeded, no permission search terms will be added. Instead, permission checking will fall back to the search permission filter. (Automatic Copy) permissions=Dozvole diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sv.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sv.properties index 75f9fc99dbdbaf..091f7e89a47943 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sv.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_sv.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Objektlayout model.resource.com.liferay.object.model.ObjectRelationship=Objektets relation model.resource.com.liferay.object.model.ObjectValidationRule=Regel för validering av objekt model.resource.com.liferay.object.model.ObjectView=Objektvy +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal model.resource.com.liferay.portal.kernel.model.Address=Adress model.resource.com.liferay.portal.kernel.model.Company=Företag @@ -12932,6 +12933,7 @@ permission-checking-configurable=Behörighetskontroll kan konfigureras permission-checking-configurable-key-description=Markera den här rutan för att kringgå behörighetskontroll för mest visade och högst rankade tillgångar i innehållspubliceraren. Detta gör det möjligt för användare att visa dem i innehållspubliceraren även om de saknar behörighet att visa dessa tillgångar. permission-filtered-search-result-accurate-count-threshold=Tröskelvärde för korrekt antal behörighetsfiltrerade sökresultat permission-filtered-search-result-accurate-count-threshold-help=Om en sökfråga returnerar sökresultat med ett antal inom tröskelvärdet, kommer det antalet garanterat att vara korrekt efter behörighetsfiltrering. +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Gräns för behörighetsvillkor permission-terms-limit-help=Ange detta för att begränsa antalet söktermer för behörighet som läggs till i sökfrågan. Om den här gränsen överskrids läggs inga söktermer för behörighet till. Istället återgår behörighetskontroll till filtret för sökbehörighet. permissions=Rättigheter diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ta_IN.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ta_IN.properties index f9f109a06f9206..6dbfd8f826f40b 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ta_IN.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_ta_IN.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=இணையதளம் model.resource.com.liferay.portal.kernel.model.Address=முகவரி model.resource.com.liferay.portal.kernel.model.Company=நிறுவனம் @@ -12932,6 +12933,7 @@ permission-checking-configurable=பெர்மிஷன் செக்கி permission-checking-configurable-key-description=Asset Publisher-ரில் அதிகமான பார்வையிடப்பட்ட மற்றும் மிக உயர்ந்த தரவரிசைப்படுத்தப்பட்ட Assets-களுக்கான Permission Checking-களைத் தடுக்க இந்த பாக்ஸை டிக் செய்யவும். அந்த Assets-களைப் பார்வையிட அவர்களுக்கு அனுமதியும் இல்லாவிட்டாலும், அவற்றை Asset Publisher-ரிடமிருந்து பார்வையாளர்கள் பார்வையிட இது உதவுகிறது. permission-filtered-search-result-accurate-count-threshold=Permission Filtered Search Result Accurate Count Threshold (Automatic Copy) permission-filtered-search-result-accurate-count-threshold-help=If a search query returns search results with a count that is within this threshold, the total count after permission filtering is guaranteed to be accurate. (Automatic Copy) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Permission Terms Limit (Automatic Copy) permission-terms-limit-help=Set this to limit the number of permission search terms that will be added to the search query. If this limit is exceeded, no permission search terms will be added. Instead, permission checking will fall back to the search permission filter. (Automatic Copy) permissions=அனுமதிகள் diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_th.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_th.properties index bbefbaa5ec85c6..9cb8a338cbb6af 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_th.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_th.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Address (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Company=Company (Automatic Copy) @@ -12932,6 +12933,7 @@ permission-checking-configurable=การตรวจสอบสิทธิ permission-checking-configurable-key-description=ทำเครื่องหมายที่ช่องนี้เพื่อหลีกเลี่ยงการตรวจสอบสิทธิ์สำหรับแอสเสทที่มีผู้ชมมากที่สุดและอันดับสูงสุดในผู้เผยแพร่แอสเสท สิ่งนี้ช่วยให้ผู้ใช้สามารถดูพวกเขาในผู้เผยแพร่แอสเสทแม้ว่าพวกเขาจะไม่ได้รับอนุญาตให้ดูเนื้อหาเหล่านั้น permission-filtered-search-result-accurate-count-threshold=สิทธิ์ในการกรองผลการค้นหา เกณฑ์การนับที่ถูกต้อง permission-filtered-search-result-accurate-count-threshold-help=หากคำค้นหาแสดงผลการค้นหาโดยมีจำนวนที่อยู่ภายในเกณฑ์นี้ จำนวนรวมหลังจากการกรองสิทธิ์จะรับประกันว่าถูกต้อง +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=ขีดจำกัดเงื่อนไขการอนุญาต permission-terms-limit-help=ตั้งค่านี้เพื่อจำกัดจำนวนคำค้นหาสิทธิ์ที่จะเพิ่มลงในคำค้นหา หากเกินขีดจำกัดนี้ จะไม่มีการเพิ่มคำค้นหาที่อนุญาต การตรวจสอบสิทธิ์จะถอยกลับไปที่ตัวกรองสิทธิ์ในการค้นหาแทน permissions=สิทธิ์ diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_tr.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_tr.properties index e006a78955ff6c..b7378b180e7d27 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_tr.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_tr.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal (Automatic Copy) model.resource.com.liferay.portal.kernel.model.Address=Adres model.resource.com.liferay.portal.kernel.model.Company=Şirket @@ -12932,6 +12933,7 @@ permission-checking-configurable=Yapılandırılabilir İzin Denetimi (Automatic permission-checking-configurable-key-description=Varlık Yayımcısı'ndaki En Çok Görüntülenen ve En Yüksek Dereceli varlıklar için izin denetimini atlamak için bu kutuyu işaretleyin. Bu, kullanıcıların bu varlıkları görüntüleme izni olmasa bile bunları Varlık Yayımcısı'nda görüntülemelerini sağlar. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=İzin Filtre Uygulanmış Arama Sonucu Doğru Sayım Eşiği (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Arama sorgusu arama sonuçlarını bu eşik içinde bir sayıyla döndürürse, izin filtrelemeden sonraki toplam sayımın doğru olduğu garanti edilir. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=İzin Şartları Sınırı (Automatic Translation) permission-terms-limit-help=Bunu, arama sorgusuna eklenecek izin arama terimlerinin sayısını sınırlamak için ayarlayın. Bu sınır aşılırsa, izin arama terimleri eklenmez. Bunun yerine, izin denetimi arama izni filtresine geri döner. (Automatic Translation) permissions=İzinler diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_uk.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_uk.properties index 72ed725eb9663c..36c2d5da0bb301 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_uk.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_uk.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Портал model.resource.com.liferay.portal.kernel.model.Address=Адреса model.resource.com.liferay.portal.kernel.model.Company=Компанія @@ -12932,6 +12933,7 @@ permission-checking-configurable=Настроювана перевірка до permission-checking-configurable-key-description=Установіть цей прапорець, щоб обійти перевірку дозволів для найбільш переглянутих і найактивніших активів у програмі Publisher. Це дає змогу користувачам переглядати їх у програмі Publisher, навіть якщо вони не мають дозволу на перегляд цих активів. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=Граничне значення точної кількості відфільтрованих результатів пошуку з дозволами (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Якщо пошуковий запит повертає результати пошуку з кількістю, яка знаходиться в межах цього граничного значення, загальна кількість після фільтрування дозволів гарантовано буде точною. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Обмеження термінів дозволів (Automatic Translation) permission-terms-limit-help=Установіть цей параметр, щоб обмежити кількість пошукових термінів дозволів, які буде додано до пошукового запиту. Якщо це обмеження перевищено, умови пошуку дозволів не додаються. Натомість перевірка дозволів повернеться до фільтра дозволів пошуку. (Automatic Translation) permissions=Права diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_vi.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_vi.properties index 9ae9c3e28a0e50..3c8b20533ee70c 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_vi.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_vi.properties @@ -11024,6 +11024,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Cổng thông tin điện tử model.resource.com.liferay.portal.kernel.model.Address=Địa chỉ model.resource.com.liferay.portal.kernel.model.Company=Công ty @@ -12932,6 +12933,7 @@ permission-checking-configurable=Kiểm tra quyền có thể cấu hình (Autom permission-checking-configurable-key-description=Chọn hộp này để bỏ qua quyền kiểm tra tài sản Được xem nhiều nhất và Được xếp hạng cao nhất trong Nhà xuất bản Tài sản. Điều này cho phép người dùng xem chúng trong Nhà xuất bản nội dung ngay cả khi họ không có quyền xem các tài sản đó. (Automatic Translation) permission-filtered-search-result-accurate-count-threshold=Ngưỡng đếm chính xác kết quả tìm kiếm được lọc quyền (Automatic Translation) permission-filtered-search-result-accurate-count-threshold-help=Nếu truy vấn tìm kiếm trả về kết quả tìm kiếm có số đếm nằm trong ngưỡng này, tổng số sau khi lọc quyền được đảm bảo là chính xác. (Automatic Translation) +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=Giới hạn điều khoản cấp phép (Automatic Translation) permission-terms-limit-help=Đặt tùy chọn này để giới hạn số cụm từ tìm kiếm quyền sẽ được thêm vào truy vấn tìm kiếm. Nếu vượt quá giới hạn này, sẽ không có cụm từ tìm kiếm quyền nào được thêm vào. Thay vào đó, kiểm tra quyền sẽ quay lại bộ lọc quyền tìm kiếm. (Automatic Translation) permissions=Quyền hạn diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_zh_CN.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_zh_CN.properties index 479f01bfee3930..a03b61c9069796 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_zh_CN.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_zh_CN.properties @@ -11026,6 +11026,7 @@ model.resource.com.liferay.object.model.ObjectLayout=对象布局 model.resource.com.liferay.object.model.ObjectRelationship=对象关系 model.resource.com.liferay.object.model.ObjectValidationRule=对象验证规则 model.resource.com.liferay.object.model.ObjectView=对象视图 +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=Portal model.resource.com.liferay.portal.kernel.model.Address=地址 model.resource.com.liferay.portal.kernel.model.Company=公司 @@ -12934,6 +12935,7 @@ permission-checking-configurable=权限检查可配置 permission-checking-configurable-key-description=选中此复选框可以在资产发布器中绕过查看最多和排名最高资产的权限检查。这让用户可以在资产发布器中查看这些资产,即使他们没有查看权限。 permission-filtered-search-result-accurate-count-threshold=权限过滤搜索结果准确计数阈值 permission-filtered-search-result-accurate-count-threshold-help=如果搜索查询结果低于阈值,则确保权限筛选器后的搜索结果的数量是准确的。 +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=权限条款限制 permission-terms-limit-help=将限制设置为添加到搜索查询的搜索许可条款的数量。如果超过此限制,则不会添加权限搜索条款。相反,权限检查将会回到搜索权限筛选器。 permissions=权限 diff --git a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_zh_TW.properties b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_zh_TW.properties index ea28ffa36ee191..6135af881926a7 100644 --- a/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_zh_TW.properties +++ b/modules/apps/portal-language/portal-language-lang/src/main/resources/content/Language_zh_TW.properties @@ -11025,6 +11025,7 @@ model.resource.com.liferay.object.model.ObjectLayout=Object Layout (Automatic Co model.resource.com.liferay.object.model.ObjectRelationship=Object Relationship (Automatic Copy) model.resource.com.liferay.object.model.ObjectValidationRule=Object Validation Rule (Automatic Copy) model.resource.com.liferay.object.model.ObjectView=Object View (Automatic Copy) +model.resource.com.liferay.permission.template.model.PermissionTemplate=Permission Template (Automatic Copy) model.resource.com.liferay.portal.kernel=入口網 model.resource.com.liferay.portal.kernel.model.Address=地址 model.resource.com.liferay.portal.kernel.model.Company=公司 @@ -12933,6 +12934,7 @@ permission-checking-configurable=權限檢查可配置 permission-checking-configurable-key-description=選中此核取方塊可以在資產出版器中繞過查看最多和排名最高資產的許可權檢查。這讓使用者可以在資產出版器中查看這些資產,即使他們沒有查看許可權。 permission-filtered-search-result-accurate-count-threshold=權限篩選搜尋結果準確計數門檻值 permission-filtered-search-result-accurate-count-threshold-help=如果搜尋查詢結果低於門檻值,則確保權限篩選器後的搜尋結果的數量是準確的。 +permission-template-enabled=Permission Template Enabled (Automatic Copy) permission-terms-limit=權限條款限制 permission-terms-limit-help=將限制設置為添加到搜尋查詢的搜索許可條款的數量。如果超過此限制,則不會添加許可權搜索條款。反之,許可權檢查將會回到搜尋權限篩選器。 permissions=權限 diff --git a/modules/modules.properties b/modules/modules.properties index 789f4a39a507e5..fefc0c9c9b6662 100644 --- a/modules/modules.properties +++ b/modules/modules.properties @@ -3434,6 +3434,8 @@ project.name[com.liferay.password.policies.admin.test]=:apps:password-policies-a project.name[com.liferay.password.policies.admin.uad.test]=:apps:password-policies-admin:password-policies-admin-uad-test project.name[com.liferay.password.policies.admin.uad]=:apps:password-policies-admin:password-policies-admin-uad project.name[com.liferay.password.policies.admin.web]=:apps:password-policies-admin:password-policies-admin-web +project.name[com.liferay.permission.template.api]=:apps:permission-template:permission-template-api +project.name[com.liferay.permission.template.service]=:apps:permission-template:permission-template-service project.name[com.liferay.persistence.test]=:test:persistence-test project.name[com.liferay.petra.concurrent]=:core:petra:petra-concurrent project.name[com.liferay.petra.executor]=:core:petra:petra-executor diff --git a/portal-impl/src/portal.properties b/portal-impl/src/portal.properties index 28244e711c9d5c..044a8abe126e60 100644 --- a/portal-impl/src/portal.properties +++ b/portal-impl/src/portal.properties @@ -6348,6 +6348,11 @@ # feature.flag.COMMERCE-12754=false + # + # Env: LIFERAY_FEATURE_PERIOD_FLAG_PERIOD__UPPERCASEL__UPPERCASEP__UPPERCASES__MINUS__NUMBER8__NUMBER7__NUMBER8__NUMBER0__NUMBER6_ + # + feature.flag.LPS-87806=false + # # Env: LIFERAY_FEATURE_PERIOD_FLAG_PERIOD__UPPERCASEL__UPPERCASEP__UPPERCASES__MINUS__NUMBER9__NUMBER6__NUMBER8__NUMBER4__NUMBER5_ #