Class ResourceAdapter
java.lang.Object
org.keycloak.authorization.model.AbstractAuthorizationModel
org.keycloak.authorization.jpa.store.ResourceAdapter
- All Implemented Interfaces:
Resource,JpaModel<ResourceEntity>
public class ResourceAdapter
extends AbstractAuthorizationModel
implements Resource, JpaModel<ResourceEntity>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.authorization.model.Resource
Resource.FilterOption -
Constructor Summary
ConstructorsConstructorDescriptionResourceAdapter(ResourceEntity entity, jakarta.persistence.EntityManager em, StoreFactory storeFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttribute(String name) getId()getName()getOwner()getSingleAttribute(String name) getType()getUris()inthashCode()booleanvoidremoveAttribute(String name) voidsetAttribute(String name, List<String> values) voidsetDisplayName(String name) voidsetIconUri(String iconUri) voidvoidsetOwnerManagedAccess(boolean ownerManagedAccess) voidstatic ResourceEntityvoidupdateScopes(Set<Scope> toUpdate) voidupdateUris(Set<String> uri) Methods inherited from class org.keycloak.authorization.model.AbstractAuthorizationModel
throwExceptionIfReadonly
-
Constructor Details
-
ResourceAdapter
public ResourceAdapter(ResourceEntity entity, jakarta.persistence.EntityManager em, StoreFactory storeFactory)
-
-
Method Details
-
getEntity
- Specified by:
getEntityin interfaceJpaModel<ResourceEntity>
-
getId
-
getName
-
getDisplayName
- Specified by:
getDisplayNamein interfaceResource
-
setDisplayName
- Specified by:
setDisplayNamein interfaceResource
-
getUris
-
updateUris
- Specified by:
updateUrisin interfaceResource
-
setName
-
getType
-
setType
-
getScopes
-
getIconUri
- Specified by:
getIconUriin interfaceResource
-
setIconUri
- Specified by:
setIconUriin interfaceResource
-
getResourceServer
- Specified by:
getResourceServerin interfaceResource
-
getOwner
-
isOwnerManagedAccess
public boolean isOwnerManagedAccess()- Specified by:
isOwnerManagedAccessin interfaceResource
-
setOwnerManagedAccess
public void setOwnerManagedAccess(boolean ownerManagedAccess) - Specified by:
setOwnerManagedAccessin interfaceResource
-
updateScopes
- Specified by:
updateScopesin interfaceResource
-
getAttributes
- Specified by:
getAttributesin interfaceResource
-
getSingleAttribute
- Specified by:
getSingleAttributein interfaceResource
-
getAttribute
- Specified by:
getAttributein interfaceResource
-
setAttribute
- Specified by:
setAttributein interfaceResource
-
removeAttribute
- Specified by:
removeAttributein interfaceResource
-
toEntity
-
equals
-
hashCode
public int hashCode()
-