Class JpaAuthorizationServer
java.lang.Object
com.broadleafcommerce.auth.server.provider.jpa.domain.JpaAuthorizationServer
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
,com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
,Serializable
@Entity
public class JpaAuthorizationServer
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.modelmapper.ModelMapper
fromMe()
protected AuthorizationServer
fromMePostConverter
(org.modelmapper.spi.MappingContext<JpaAuthorizationServer, AuthorizationServer> mappingContext) Used as theTypeMap.setPostConverter(Converter)
forfromMe()
.Class<?>
getId()
getName()
int
hashCode()
boolean
boolean
boolean
void
setAttributes
(Map<String, Object> attributes) void
setCrossOrigin
(boolean crossOrigin) void
setDefaultRedirectUri
(String defaultRedirectUri) void
setDefaultUserPermissions
(Set<JpaUserPermission> defaultUserPermissions) void
setDefaultUserRoles
(Set<JpaUserRole> defaultUserRoles) void
setEmbeddedLoginEnabled
(boolean embeddedLoginEnabled) void
setFailedLoginAttemptsAllowed
(Integer failedLoginAttemptsAllowed) void
setFriendlyName
(String friendlyName) void
void
setInactivityTimeoutSeconds
(Integer inactivityTimeoutSeconds) void
setLockedUserCanResetPassword
(Boolean lockedUserCanResetPassword) void
setLockoutDurationMinutes
(Long lockoutDurationMinutes) void
setLoginFailDecayMinutes
(Long loginFailDecayMinutes) void
void
setRequireLoginTimeoutSeconds
(Integer requireLoginTimeoutSeconds) void
setResetPasswordUnlocksUser
(Boolean resetPasswordUnlocksUser) void
setSsoEnabled
(boolean ssoEnabled) void
setTemplatePath
(String templatePath) void
setTenantId
(String tenantId) org.modelmapper.ModelMapper
toMe()
protected @NotNull org.modelmapper.Converter<AuthorizationServer,
JpaAuthorizationServer> toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMe
-
Constructor Details
-
JpaAuthorizationServer
public JpaAuthorizationServer()
-
-
Method Details
-
getBusinessDomainType
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
fromMe
public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
fromMePostConverter
protected AuthorizationServer fromMePostConverter(org.modelmapper.spi.MappingContext<JpaAuthorizationServer, AuthorizationServer> mappingContext) Used as theTypeMap.setPostConverter(Converter)
forfromMe()
.JPA will eagerly fetch
defaultUserRoles
anddefaultUserPermissions
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
- Parameters:
mappingContext
- the model mapper mapping context- Returns:
- the business-domain user after removing any references to archived records
-
toMe
public org.modelmapper.ModelMapper toMe()- Specified by:
toMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMePostConverter
@NotNull protected @NotNull org.modelmapper.Converter<AuthorizationServer,JpaAuthorizationServer> toMePostConverter() -
getId
-
getTenantId
-
getName
-
getFriendlyName
-
getInactivityTimeoutSeconds
-
getRequireLoginTimeoutSeconds
-
getTemplatePath
-
isSsoEnabled
public boolean isSsoEnabled() -
isCrossOrigin
public boolean isCrossOrigin() -
getDefaultUserRoles
-
getDefaultUserPermissions
-
getAttributes
-
getDefaultRedirectUri
-
getFailedLoginAttemptsAllowed
-
getLockoutDurationMinutes
-
getLoginFailDecayMinutes
-
isEmbeddedLoginEnabled
public boolean isEmbeddedLoginEnabled() -
getResetPasswordUnlocksUser
-
getLockedUserCanResetPassword
-
setId
-
setTenantId
-
setName
-
setFriendlyName
-
setInactivityTimeoutSeconds
-
setRequireLoginTimeoutSeconds
-
setTemplatePath
-
setSsoEnabled
public void setSsoEnabled(boolean ssoEnabled) -
setCrossOrigin
public void setCrossOrigin(boolean crossOrigin) -
setDefaultUserRoles
-
setDefaultUserPermissions
-
setAttributes
-
setDefaultRedirectUri
-
setFailedLoginAttemptsAllowed
-
setLockoutDurationMinutes
-
setLoginFailDecayMinutes
-
setEmbeddedLoginEnabled
public void setEmbeddedLoginEnabled(boolean embeddedLoginEnabled) -
setResetPasswordUnlocksUser
-
setLockedUserCanResetPassword
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-