@Component public class MidpointFunctionsImpl extends Object implements MidpointFunctions
Constructor and Description |
---|
MidpointFunctionsImpl() |
public List<String> toList(String... s)
toList
in interface MidpointFunctions
public Collection<String> getManagersOids(UserType user) throws SchemaException, ObjectNotFoundException
getManagersOids
in interface MidpointFunctions
user
- SchemaException
ObjectNotFoundException
public Collection<String> getManagersOidsExceptUser(UserType user) throws SchemaException, ObjectNotFoundException
getManagersOidsExceptUser
in interface MidpointFunctions
SchemaException
ObjectNotFoundException
public Collection<UserType> getManagers(UserType user) throws SchemaException, ObjectNotFoundException
getManagers
in interface MidpointFunctions
SchemaException
ObjectNotFoundException
public UserType getUserByOid(String oid) throws ObjectNotFoundException, SchemaException
getUserByOid
in interface MidpointFunctions
ObjectNotFoundException
SchemaException
public Collection<String> getOrgUnits(UserType user)
getOrgUnits
in interface MidpointFunctions
public OrgType getOrgByOid(String oid) throws ObjectNotFoundException, SchemaException
getOrgByOid
in interface MidpointFunctions
ObjectNotFoundException
SchemaException
public OrgType getOrgByName(String name) throws ObjectNotFoundException, SchemaException
getOrgByName
in interface MidpointFunctions
ObjectNotFoundException
SchemaException
public Collection<UserType> getManagersOfOrg(String orgOid) throws SchemaException
getManagersOfOrg
in interface MidpointFunctions
SchemaException
public boolean isManagerOf(UserType user, String orgOid)
isManagerOf
in interface MidpointFunctions
public boolean isMemberOf(UserType user, String orgOid)
isMemberOf
in interface MidpointFunctions
public String getPlaintextUserPassword(UserType user) throws EncryptionException
getPlaintextUserPassword
in interface MidpointFunctions
EncryptionException
public String getPlaintextAccountPassword(ShadowType account) throws EncryptionException
getPlaintextAccountPassword
in interface MidpointFunctions
EncryptionException
public String getPlaintextAccountPasswordFromDelta(ObjectDelta<? extends ShadowType> delta) throws EncryptionException
getPlaintextAccountPasswordFromDelta
in interface MidpointFunctions
EncryptionException
public String getPlaintextUserPasswordFromDeltas(List<ObjectDelta<UserType>> objectDeltas) throws EncryptionException
getPlaintextUserPasswordFromDeltas
in interface MidpointFunctions
EncryptionException
public boolean hasLinkedAccount(String resourceOid)
public <O extends ObjectType> O getObject(Class<O> type, String oid) throws ObjectNotFoundException, CommunicationException, SchemaException, ConfigurationException, SecurityViolationException
public <T> int countAccounts(String resourceOid, QName attributeName, T attributeValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
public <T> int countAccounts(ResourceType resourceType, QName attributeName, T attributeValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
public <T> int countAccounts(ResourceType resourceType, String attributeName, T attributeValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
public <T> boolean isUniqueAccountValue(ResourceType resourceType, ShadowType shadowType, String attributeName, T attributeValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException
Copyright © 2013 evolveum. All rights reserved.