Tabnine Logo
ProvisionedIdentifier.getIdentifier
Code IndexAdd Tabnine to your IDE (free)

How to use
getIdentifier
method
in
org.wso2.carbon.identity.provisioning.ProvisionedIdentifier

Best Java code snippets using org.wso2.carbon.identity.provisioning.ProvisionedIdentifier.getIdentifier (Showing top 20 results out of 315)

origin: org.wso2.carbon.identity.framework/org.wso2.carbon.identity.provisioning

/**
 * @param provisionedIdentifier
 * @return
 * @throws CarbonException
 * @throws UserStoreException
 */
protected boolean canUserBeDeProvisioned(ProvisionedIdentifier provisionedIdentifier)
    throws UserStoreException, CarbonException, IdentityApplicationManagementException {
  // check whether we already have the provisioned identifier.current idp is not eligible to
  // provisioning.
  if (provisionedIdentifier != null && provisionedIdentifier.getIdentifier() != null) {
    return true;
  }
  return false;
}
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provisioning

/**
 * @param provisionedIdentifier
 * @return
 * @throws CarbonException
 * @throws UserStoreException
 */
protected boolean canUserBeDeProvisioned(ProvisionedIdentifier provisionedIdentifier)
    throws UserStoreException, CarbonException, IdentityApplicationManagementException {
  // check whether we already have the provisioned identifier.current idp is not eligible to
  // provisioning.
  if (provisionedIdentifier != null && provisionedIdentifier.getIdentifier() != null) {
    return true;
  }
  return false;
}
origin: wso2/carbon-identity-framework

/**
 * @param provisionedIdentifier
 * @return
 * @throws CarbonException
 * @throws UserStoreException
 */
protected boolean canUserBeDeProvisioned(ProvisionedIdentifier provisionedIdentifier)
    throws UserStoreException, CarbonException, IdentityApplicationManagementException {
  // check whether we already have the provisioned identifier.current idp is not eligible to
  // provisioning.
  if (provisionedIdentifier != null && provisionedIdentifier.getIdentifier() != null) {
    return true;
  }
  return false;
}
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provisioning.connector.salesforce

/**
 * @param provisioningEntity
 * @throws IdentityProvisioningException
 */
private void deleteUser(ProvisioningEntity provisioningEntity)
    throws IdentityProvisioningException {
  JSONObject entity = new JSONObject();
  try {
    entity.put(SalesforceConnectorConstants.IS_ACTIVE, false);
    entity.put(SalesforceConnectorConstants.USERNAME_ATTRIBUTE, alterUsername(provisioningEntity));
    update(provisioningEntity.getIdentifier().getIdentifier(), entity);
  } catch (JSONException e) {
    log.error("Error while creating JSON body");
    throw new IdentityProvisioningException(e);
  }
}
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provisioning.connector.google

if (provisionedIdentifier != null && provisionedIdentifier.getIdentifier() != null) {
        provisionedIdentifier.getIdentifier(), updateUser);
    request.execute();
         + " with the primaryEmail : " + provisionedIdentifier.getIdentifier());
origin: org.wso2.carbon.identity.outbound.provisioning.google/org.wso2.carbon.identity.provisioning.connector.google

if (provisionedIdentifier != null && provisionedIdentifier.getIdentifier() != null) {
    request = getDirectoryService().users().delete(provisionedIdentifier.getIdentifier());
    request.execute();
         + " with the primaryEmail : " + provisionedIdentifier.getIdentifier());
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provisioning.connector.google

if (provisionedIdentifier != null && provisionedIdentifier.getIdentifier() != null) {
  User deletingUser = new User();
  deletingUser.setPrimaryEmail(provisionedIdentifier.getIdentifier());
        provisionedIdentifier.getIdentifier());
    request.execute();
         + " with the primaryEmail : " + provisionedIdentifier.getIdentifier());
origin: org.wso2.carbon.identity.outbound.provisioning.google/org.wso2.carbon.identity.provisioning.connector.google

protected void updateUser(ProvisioningEntity provisioningEntity) throws IdentityProvisioningException {
  boolean isDebugEnabled = log.isDebugEnabled();
  if (isDebugEnabled) {
    log.debug("Triggering update operation for Google Provisioning Connector");
  }
  ProvisionedIdentifier provisionedIdentifier = provisioningEntity.getIdentifier();
  if (provisionedIdentifier != null && provisionedIdentifier.getIdentifier() != null) {
    User updateUser = updateGoogleUser(provisioningEntity);
    if (updateUser == null) {
      return;
    }
    Directory.Users.Update request;
    try {
      request = getDirectoryService().users().update(
          provisionedIdentifier.getIdentifier(), updateUser);
      request.execute();
    } catch (IOException e) {
      throw new IdentityProvisioningException("Error while updating Google user : "
                          + provisioningEntity.getEntityName(), e);
    }
    if (isDebugEnabled) {
      log.debug("updating user :" + provisioningEntity.getEntityName()
           + " with the primaryEmail : " + provisionedIdentifier.getIdentifier());
    }
  } else {
    throw new IdentityProvisioningException(
        "Cannot updating Google user, provisionedIdentifier is invalid.");
  }
}
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provisioning.connector.spml

  provisioningIdentifier = provisioningEntity.getIdentifier().getIdentifier();
} else {
  if (isDebugEnabled) {
origin: wso2/carbon-identity-framework

prepStmt.setString(3, IdentityUtil.extractDomainFromName(provisioningEntity.getEntityName()));
prepStmt.setString(4, UserCoreUtil.removeDomainFromName(provisioningEntity.getEntityName()));
prepStmt.setString(5, provisioningEntity.getIdentifier().getIdentifier());
prepStmt.setInt(6, tenantId);
prepStmt.setString(7, localId);
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provisioning.connector.spml

  provisioningIdentifier = provisioningEntity.getIdentifier().getIdentifier();
} else {
  if (isDebugEnabled) {
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provisioning

prepStmt.setString(3, IdentityUtil.extractDomainFromName(provisioningEntity.getEntityName()));
prepStmt.setString(4, UserCoreUtil.removeDomainFromName(provisioningEntity.getEntityName()));
prepStmt.setString(5, provisioningEntity.getIdentifier().getIdentifier());
prepStmt.setInt(6, tenantId);
prepStmt.setString(7, localId);
origin: org.wso2.carbon.identity.framework/org.wso2.carbon.identity.provisioning

prepStmt.setString(3, IdentityUtil.extractDomainFromName(provisioningEntity.getEntityName()));
prepStmt.setString(4, UserCoreUtil.removeDomainFromName(provisioningEntity.getEntityName()));
prepStmt.setString(5, provisioningEntity.getIdentifier().getIdentifier());
prepStmt.setInt(6, tenantId);
prepStmt.setString(7, localId);
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provisioning.connector.google

updateUser.setPrimaryEmail(provisioningEntity.getIdentifier().getIdentifier());
UserName username = new UserName();
origin: org.wso2.carbon.identity.outbound.provisioning.google/org.wso2.carbon.identity.provisioning.connector.google

updateUser.setPrimaryEmail(provisioningEntity.getIdentifier().getIdentifier());
UserName username = new UserName();
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provisioning.connector.salesforce

  provisionedId = createUser(provisioningEntity);
} else if (provisioningEntity.getOperation() == ProvisioningOperation.PUT) {
  update(provisioningEntity.getIdentifier().getIdentifier(),
      buildJsonObject(provisioningEntity));
} else {
origin: org.wso2.carbon.identity.framework/org.wso2.carbon.identity.provisioning

/**
 * @param identityProviderName
 * @param connectorType
 * @param provisioningEntity
 * @param tenantId
 * @throws IdentityApplicationManagementException
 */
public void addProvisioningEntity(String identityProviderName, String connectorType,
                 ProvisioningEntity provisioningEntity, int tenantId, String tenantDomain)
    throws IdentityApplicationManagementException {
  provisioningMgtDAO.addProvisioningEntity(identityProviderName, connectorType, provisioningEntity, tenantId);
  if (log.isDebugEnabled()) {
    log.debug("Caching newly added Provisioning Entity : " +
        "identityProviderName=" + identityProviderName +
        "&& connectorType=" + connectorType +
        "&& provisioningEntityType=" + provisioningEntity.getEntityType() +
        "&& provisioningEntityName=" + provisioningEntity.getEntityName() +
        "&& provisioningIdentifier=" + provisioningEntity.getIdentifier().getIdentifier());
  }
  ProvisioningEntityCacheKey cacheKey = new ProvisioningEntityCacheKey(identityProviderName, connectorType,
      provisioningEntity, tenantDomain);
  ProvisioningEntityCacheEntry entry = new ProvisioningEntityCacheEntry();
  ProvisioningEntity cachedProvisioningEntity = new ProvisioningEntity(provisioningEntity.getEntityType(),
      provisioningEntity.getOperation());
  ProvisionedIdentifier provisionedIdentifier = provisioningEntity.getIdentifier();
  cachedProvisioningEntity.setIdentifier(provisionedIdentifier);
  entry.setProvisioningEntity(cachedProvisioningEntity);
  provisioningEntityCache.addToCache(cacheKey, entry);
}
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provisioning

/**
 * @param identityProviderName
 * @param connectorType
 * @param provisioningEntity
 * @param tenantId
 * @throws IdentityApplicationManagementException
 */
public void addProvisioningEntity(String identityProviderName, String connectorType,
                 ProvisioningEntity provisioningEntity, int tenantId, String tenantDomain)
    throws IdentityApplicationManagementException {
  provisioningMgtDAO.addProvisioningEntity(identityProviderName, connectorType, provisioningEntity, tenantId);
  if (log.isDebugEnabled()) {
    log.debug("Caching newly added Provisioning Entity : " +
        "identityProviderName=" + identityProviderName +
        "&& connectorType=" + connectorType +
        "&& provisioningEntityType=" + provisioningEntity.getEntityType() +
        "&& provisioningEntityName=" + provisioningEntity.getEntityName() +
        "&& provisioningIdentifier=" + provisioningEntity.getIdentifier().getIdentifier());
  }
  ProvisioningEntityCacheKey cacheKey = new ProvisioningEntityCacheKey(identityProviderName, connectorType,
      provisioningEntity, tenantDomain);
  ProvisioningEntityCacheEntry entry = new ProvisioningEntityCacheEntry();
  ProvisioningEntity cachedProvisioningEntity = new ProvisioningEntity(provisioningEntity.getEntityType(),
      provisioningEntity.getOperation());
  ProvisionedIdentifier provisionedIdentifier = provisioningEntity.getIdentifier();
  cachedProvisioningEntity.setIdentifier(provisionedIdentifier);
  entry.setProvisioningEntity(cachedProvisioningEntity);
  provisioningEntityCache.addToCache(cacheKey, entry);
}
origin: wso2/carbon-identity-framework

/**
 * @param identityProviderName
 * @param connectorType
 * @param provisioningEntity
 * @param tenantId
 * @throws IdentityApplicationManagementException
 */
public void addProvisioningEntity(String identityProviderName, String connectorType,
                 ProvisioningEntity provisioningEntity, int tenantId, String tenantDomain)
    throws IdentityApplicationManagementException {
  provisioningMgtDAO.addProvisioningEntity(identityProviderName, connectorType, provisioningEntity, tenantId);
  if (log.isDebugEnabled()) {
    log.debug("Caching newly added Provisioning Entity : " +
        "identityProviderName=" + identityProviderName +
        "&& connectorType=" + connectorType +
        "&& provisioningEntityType=" + provisioningEntity.getEntityType() +
        "&& provisioningEntityName=" + provisioningEntity.getEntityName() +
        "&& provisioningIdentifier=" + provisioningEntity.getIdentifier().getIdentifier());
  }
  ProvisioningEntityCacheKey cacheKey = new ProvisioningEntityCacheKey(identityProviderName, connectorType,
      provisioningEntity, tenantDomain);
  ProvisioningEntityCacheEntry entry = new ProvisioningEntityCacheEntry();
  ProvisioningEntity cachedProvisioningEntity = new ProvisioningEntity(provisioningEntity.getEntityType(),
      provisioningEntity.getOperation());
  ProvisionedIdentifier provisionedIdentifier = provisioningEntity.getIdentifier();
  cachedProvisioningEntity.setIdentifier(provisionedIdentifier);
  entry.setProvisioningEntity(cachedProvisioningEntity);
  provisioningEntityCache.addToCache(cacheKey, entry);
}
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provisioning

} else if (provisioningEntity.getOperation() == ProvisioningOperation.POST) {
  if (provisionedIdentifier == null || provisionedIdentifier.getIdentifier() == null) {
    provisionedIdentifier = new ProvisionedIdentifier();
    provisionedIdentifier.setIdentifier(UUID.randomUUID().toString());
org.wso2.carbon.identity.provisioningProvisionedIdentifiergetIdentifier

Popular methods of ProvisionedIdentifier

  • <init>
  • setIdentifier

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JList (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now