Class UserPortalContentEntityHelper
- java.lang.Object
-
- de.xima.fc.gui.helper.user_portal.content.UserPortalContentEntityHelper
-
public final class UserPortalContentEntityHelper extends Object
Helper for operations related to tenant resources and templates for user portal content entities, such as name normalization and uniqueness checks.- Since:
- 8.6.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringnormalizeTenantResourceName(IEntityContext entityContext, Mandant tenant, String requestedName, boolean createNewContentEntity, UUID currentTenantResourceUuid)Returns a unique tenant resource name for the requested value.static StringnormalizeTenantTemplateName(IEntityContext entityContext, Mandant tenant, String requestedName, boolean createNewContentEntity, UUID currentTenantTemplateUuid)Returns a unique tenant template name for the requested value.
-
-
-
Method Detail
-
normalizeTenantResourceName
public static String normalizeTenantResourceName(IEntityContext entityContext, Mandant tenant, String requestedName, boolean createNewContentEntity, UUID currentTenantResourceUuid)
Returns a unique tenant resource name for the requested value.- Parameters:
entityContext- entity context used for lookupstenant- selected tenantrequestedName- requested resource namecreateNewContentEntity- whether the selected content entity is currently created from scratchcurrentTenantResourceUuid- UUID of the currently edited tenant resource- Returns:
- normalized unique resource name, or
nullwhen no valid input is available
-
normalizeTenantTemplateName
public static String normalizeTenantTemplateName(IEntityContext entityContext, Mandant tenant, String requestedName, boolean createNewContentEntity, UUID currentTenantTemplateUuid)
Returns a unique tenant template name for the requested value.- Parameters:
entityContext- entity context used for lookupstenant- selected tenantrequestedName- requested template namecreateNewContentEntity- whether the selected content entity is currently created from scratchcurrentTenantTemplateUuid- UUID of the currently edited tenant template- Returns:
- normalized unique template name, or
nullwhen no valid input is available
-
-