com.atlassian.jira.user
Class OfbizExternalEntityStore
java.lang.Object
com.atlassian.jira.user.OfbizExternalEntityStore
- All Implemented Interfaces:
- ExternalEntityStore
public class OfbizExternalEntityStore
- extends Object
- implements ExternalEntityStore
This exists to create entities in the ExternalEntity table which is used to generate system id's for
usernames that exist in external systems.
Constructor Summary |
OfbizExternalEntityStore(org.ofbiz.core.entity.GenericDelegator genericDelegator,
ConcurrentOperationMap concurrentOperationMap)
Creates a new instance of this class, initializing it with generic delegator that is used for user creation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENTITY_NAME_EXTERNAL_ENTITY
public static final String ENTITY_NAME_EXTERNAL_ENTITY
- Name of the entity referenced in the entitymodel.xml
- See Also:
- Constant Field Values
OfbizExternalEntityStore
public OfbizExternalEntityStore(org.ofbiz.core.entity.GenericDelegator genericDelegator,
ConcurrentOperationMap concurrentOperationMap)
- Creates a new instance of this class, initializing it with generic delegator that is used for user creation
- Parameters:
genericDelegator
- generic delegator that will be responsible for finding and creating user records in external_entities table
createIfDoesNotExist
public Long createIfDoesNotExist(String name)
throws IllegalArgumentException,
DataAccessException
- Checks the user with given name exists using the generic delegator and returns the user ID.
If it does not exist it creates it and returns the user ID.
- Specified by:
createIfDoesNotExist
in interface ExternalEntityStore
- Parameters:
name
- profile name to create
- Returns:
- Long id, this is the created or existing id for the name.
- Throws:
IllegalArgumentException
- if the given name is null
DataAccessException
- if data access error occurs or more than one user with given name is found
Copyright © 2002-2007 Atlassian. All Rights Reserved.