Class RequestAccess
- java.lang.Object
-
- com.evolveum.midpoint.gui.impl.page.self.requestAccess.RequestAccess
-
- All Implemented Interfaces:
Serializable
public class RequestAccess extends Object implements Serializable
Created by Viliam Repan (lazyman).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_MYSELF_IDENTIFIER
static List<ValidityPredefinedValueType>
DEFAULT_VALIDITY_PERIODS
static String
VALIDITY_CUSTOM_LENGTH
-
Constructor Summary
Constructors Constructor Description RequestAccess()
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_VALIDITY_PERIODS
public static final List<ValidityPredefinedValueType> DEFAULT_VALIDITY_PERIODS
-
VALIDITY_CUSTOM_LENGTH
public static final String VALIDITY_CUSTOM_LENGTH
- See Also:
- Constant Field Values
-
DEFAULT_MYSELF_IDENTIFIER
public static final String DEFAULT_MYSELF_IDENTIFIER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSelectedValidity
public Object getSelectedValidity()
-
setSelectedValidity
public void setSelectedValidity(Object selectedValidity)
-
getTemplateAssignments
public Set<AssignmentType> getTemplateAssignments()
-
getComment
public String getComment()
-
setComment
public void setComment(String comment)
-
getPersonOfInterest
public List<ObjectReferenceType> getPersonOfInterest()
-
addPersonOfInterest
public void addPersonOfInterest(ObjectReferenceType ref, List<ObjectReferenceType> existingMemberships)
-
addPersonOfInterest
public void addPersonOfInterest(List<ObjectReferenceType> refs, Map<ObjectReferenceType,List<ObjectReferenceType>> existingMemberships)
-
addAssignments
public void addAssignments(List<AssignmentType> assignments)
- Parameters:
assignments
- list of assignments containing only targetRef and nothing else (without any activation, extension, etc.)
-
removeAssignments
public void removeAssignments(List<AssignmentType> assignments)
- Parameters:
assignments
- list of assignments that may contain items other than targetRef (activation, extension, etc.)
-
getShoppingCartAssignments
public List<AssignmentType> getShoppingCartAssignments()
-
getShoppingCartAssignments
public List<AssignmentType> getShoppingCartAssignments(ObjectReferenceType personOfInterestRef)
-
getShoppingCartItems
public List<ShoppingCartItem> getShoppingCartItems()
-
getRelation
public QName getRelation()
-
setRelation
public void setRelation(QName relation)
-
getDefaultRelation
public QName getDefaultRelation()
-
getWarningCount
public long getWarningCount()
-
getErrorCount
public long getErrorCount()
-
clearCart
public void clearCart()
-
canSubmit
public boolean canSubmit()
-
computeConflicts
public void computeConflicts(PageBase page)
-
computeConflictsForOnePerson
public List<Conflict> computeConflictsForOnePerson(ObjectReferenceType ref, com.evolveum.midpoint.task.api.Task task, PageBase page)
-
solveConflict
public void solveConflict(Conflict conflict, ConflictItem toRemove)
-
isAllConflictsSolved
public boolean isAllConflictsSolved()
-
submitRequest
public OperationResult submitRequest(PageBase page)
-
getValidity
public Duration getValidity()
-
setValidity
public void setValidity(Duration validity)
-
setValidity
public void setValidity(XMLGregorianCalendar from, XMLGregorianCalendar to)
-
getAssignableRolesFilter
public ObjectFilter getAssignableRolesFilter(PageBase page, Class<? extends AbstractRoleType> targetType)
-
getAccessRequestConfiguration
public AccessRequestType getAccessRequestConfiguration(org.apache.wicket.Page page)
-
isAssignedToAll
public boolean isAssignedToAll(String oid)
-
isAssignedToNone
public boolean isAssignedToNone(String oid)
-
updateSelectedAssignment
public void updateSelectedAssignment(AssignmentType updated)
-
-