Class Authorization
java.lang.Object
com.evolveum.midpoint.security.api.Authorization
- All Implemented Interfaces:
DebugDumpable
,Serializable
,org.springframework.security.core.GrantedAuthority
public class Authorization
extends Object
implements org.springframework.security.core.GrantedAuthority, DebugDumpable
Parsed form of
AuthorizationType
.- Author:
- semancik
- See Also:
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
static Authorization
create
(@NotNull AuthorizationType authorizationBean, String sourceDescription) debugDump
(int indent) boolean
@NotNull AuthorizationDecisionType
@NotNull List<ItemPathType>
@NotNull PathSet
@NotNull List<ItemPathType>
getItem()
@NotNull PathSet
getItems()
@NotNull List<ValueSelector>
@NotNull List<ValueSelector>
@Nullable AuthorizationPhaseType
getPhase()
int
hashCode()
boolean
boolean
isAllow()
boolean
boolean
matchesAnyAction
(@NotNull List<String> actionUrls) boolean
matchesPhase
(@Nullable AuthorizationPhaseType phase) boolean
void
setSourceDescription
(String sourceDescription) toString()
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Constructor Details
-
Authorization
-
-
Method Details
-
create
public static Authorization create(@NotNull @NotNull AuthorizationType authorizationBean, String sourceDescription) -
getAuthority
- Specified by:
getAuthority
in interfaceorg.springframework.security.core.GrantedAuthority
-
getDescription
-
getSourceDescription
-
setSourceDescription
-
getDecision
-
isAllow
public boolean isAllow() -
getAction
-
getPhase
-
matchesPhase
-
matchesAnyAction
-
getEnforcementStrategy
-
maySkipOnSearch
public boolean maySkipOnSearch() -
keepZoneOfControl
public boolean keepZoneOfControl() -
getParsedObjectSelectors
@NotNull public @NotNull List<ValueSelector> getParsedObjectSelectors() throws ConfigurationException- Throws:
ConfigurationException
-
getParsedTargetSelectors
@NotNull public @NotNull List<ValueSelector> getParsedTargetSelectors() throws ConfigurationException- Throws:
ConfigurationException
-
getItem
-
getExceptItem
-
getItems
-
getExceptItems
-
hasItemSpecification
public boolean hasItemSpecification() -
getRelation
-
getOrderConstraints
-
getLimitations
-
clone
-
getHumanReadableDesc
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
toString
-
equals
-
hashCode
public int hashCode()
-