2015-07-17 11:45:43 +00:00
|
|
|
package org.keycloak.models;
|
|
|
|
|
|
|
|
import java.util.Set;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
|
|
|
|
* @version $Revision: 1 $
|
|
|
|
*/
|
|
|
|
public interface RoleModel {
|
|
|
|
String getName();
|
|
|
|
|
|
|
|
String getDescription();
|
|
|
|
|
|
|
|
void setDescription(String description);
|
|
|
|
|
|
|
|
String getId();
|
|
|
|
|
|
|
|
void setName(String name);
|
|
|
|
|
2015-09-23 10:52:37 +00:00
|
|
|
boolean isScopeParamRequired();
|
|
|
|
|
|
|
|
void setScopeParamRequired(boolean scopeParamRequired);
|
|
|
|
|
2015-07-17 11:45:43 +00:00
|
|
|
boolean isComposite();
|
|
|
|
|
|
|
|
void addCompositeRole(RoleModel role);
|
|
|
|
|
|
|
|
void removeCompositeRole(RoleModel role);
|
|
|
|
|
|
|
|
Set<RoleModel> getComposites();
|
|
|
|
|
|
|
|
RoleContainerModel getContainer();
|
|
|
|
|
|
|
|
boolean hasRole(RoleModel role);
|
|
|
|
|
|
|
|
}
|