@Entity public class JpaAuthorizationServer extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
Constructor and Description |
---|
JpaAuthorizationServer() |
public Class<?> getBusinessDomainType()
getBusinessDomainType
in interface com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
public org.modelmapper.ModelMapper fromMe()
fromMe
in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
protected AuthorizationServer fromMePostConverter(org.modelmapper.spi.MappingContext<JpaAuthorizationServer,AuthorizationServer> mappingContext)
TypeMap.setPostConverter(Converter)
for fromMe()
.
JPA will eagerly fetch defaultUserRoles
and defaultUserPermissions
if they
exist in the data store, but we have a soft-deletion concept that JPA does not account for.
This ensures that any references to entities that have been archived are pruned before being
mapped to the business domain. This protects against those entities being usable despite
being archived.
In addition, handles mapping optional boolean values
mappingContext
- the model mapper mapping contextpublic org.modelmapper.ModelMapper toMe()
toMe
in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
@NotNull protected @NotNull org.modelmapper.Converter<AuthorizationServer,JpaAuthorizationServer> toMePostConverter()
public String getId()
public String getTenantId()
public String getName()
public String getFriendlyName()
public Integer getInactivityTimeoutSeconds()
public Integer getRequireLoginTimeoutSeconds()
public String getTemplatePath()
public boolean isSsoEnabled()
public boolean isCrossOrigin()
public Set<JpaUserRole> getDefaultUserRoles()
public Set<JpaUserPermission> getDefaultUserPermissions()
public String getDefaultRedirectUri()
public Integer getFailedLoginAttemptsAllowed()
public Long getLockoutDurationMinutes()
public Long getLoginFailDecayMinutes()
public boolean isEmbeddedLoginEnabled()
public Boolean getResetPasswordUnlocksUser()
public Boolean getLockedUserCanResetPassword()
public void setId(String id)
public void setTenantId(String tenantId)
public void setName(String name)
public void setFriendlyName(String friendlyName)
public void setInactivityTimeoutSeconds(Integer inactivityTimeoutSeconds)
public void setRequireLoginTimeoutSeconds(Integer requireLoginTimeoutSeconds)
public void setTemplatePath(String templatePath)
public void setSsoEnabled(boolean ssoEnabled)
public void setCrossOrigin(boolean crossOrigin)
public void setDefaultUserRoles(Set<JpaUserRole> defaultUserRoles)
public void setDefaultUserPermissions(Set<JpaUserPermission> defaultUserPermissions)
public void setDefaultRedirectUri(String defaultRedirectUri)
public void setFailedLoginAttemptsAllowed(Integer failedLoginAttemptsAllowed)
public void setLockoutDurationMinutes(Long lockoutDurationMinutes)
public void setLoginFailDecayMinutes(Long loginFailDecayMinutes)
public void setEmbeddedLoginEnabled(boolean embeddedLoginEnabled)
public void setResetPasswordUnlocksUser(Boolean resetPasswordUnlocksUser)
public void setLockedUserCanResetPassword(Boolean lockedUserCanResetPassword)
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.