com.atlassian.jira.user
Class OfbizExternalEntityStore
java.lang.Object
com.atlassian.jira.user.OfbizExternalEntityStore
- All Implemented Interfaces:
- ExternalEntityStore
public class OfbizExternalEntityStore
- extends java.lang.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,
com.atlassian.util.concurrent.ConcurrentOperationMap<java.lang.String,java.lang.Long> concurrentOperationMap)
Creates a new instance of this class, initializing it with generic delegator that is used for user creation |
Method Summary |
java.lang.Long |
createIfDoesNotExist(java.lang.String name)
Checks the user with given name exists using the generic delegator and returns the user ID. |
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 java.lang.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,
com.atlassian.util.concurrent.ConcurrentOperationMap<java.lang.String,java.lang.Long> 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 java.lang.Long createIfDoesNotExist(java.lang.String name)
throws java.lang.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:
java.lang.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-2011 Atlassian. All Rights Reserved.