Codota Logo
IdentityObjectRelationship.getToIdentityObject
Code IndexAdd Codota to your IDE (free)

How to use
getToIdentityObject
method
in
org.jboss.identity.idm.spi.model.IdentityObjectRelationship

Best Java code snippets using org.jboss.identity.idm.spi.model.IdentityObjectRelationship.getToIdentityObject (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.jboss.identity.idm/idm-hibernate

public Map<String, String> getRelationshipProperties(IdentityStoreInvocationContext ctx, IdentityObjectRelationship relationship) throws IdentityException, OperationNotSupportedException
 HibernateIdentityObject toIO = safeGet(ctx, relationship.getToIdentityObject());
 HibernateIdentityObjectRelationshipType type = getHibernateIdentityObjectRelationshipType(ctx, relationship.getType());
origin: org.jboss.identity.idm/idm-hibernate

public void setRelationshipProperties(IdentityStoreInvocationContext ctx, IdentityObjectRelationship relationship, Map<String, String> properties) throws IdentityException, OperationNotSupportedException
 HibernateIdentityObject toIO = safeGet(ctx, relationship.getToIdentityObject());
 HibernateIdentityObjectRelationshipType type = getHibernateIdentityObjectRelationshipType(ctx, relationship.getType());
origin: org.jboss.identity.idm/idm-hibernate

public void removeRelationshipProperties(IdentityStoreInvocationContext ctx, IdentityObjectRelationship relationship, Set<String> properties) throws IdentityException, OperationNotSupportedException
 HibernateIdentityObject toIO = safeGet(ctx, relationship.getToIdentityObject());
 HibernateIdentityObjectRelationshipType type = getHibernateIdentityObjectRelationshipType(ctx, relationship.getType());
origin: org.jboss.identity.idm/idm-core

public void removeRelationshipProperties(IdentityStoreInvocationContext ctx, IdentityObjectRelationship relationship, Set<String> properties) throws IdentityException, OperationNotSupportedException
{
 IdentityStore fromStore = resolveIdentityStore(relationship.getFromIdentityObject());
 IdentityStore toStore = resolveIdentityStore(relationship.getToIdentityObject());
 if (fromStore == toStore && toStore.getSupportedFeatures().isNamedRelationshipsSupported())
 {
   fromStore.removeRelationshipProperties(resolveInvocationContext(fromStore, ctx), relationship, properties);
   return;
 }
 defaultIdentityStore.removeRelationshipProperties(resolveInvocationContext(defaultIdentityStore, ctx), relationship, properties);
}
origin: org.jboss.identity.idm/idm-core

public Map<String, String> getRelationshipProperties(IdentityStoreInvocationContext ctx, IdentityObjectRelationship relationship) throws IdentityException, OperationNotSupportedException
{
 IdentityStore fromStore = resolveIdentityStore(relationship.getFromIdentityObject());
 IdentityStore toStore = resolveIdentityStore(relationship.getToIdentityObject());
 if (fromStore == toStore && toStore.getSupportedFeatures().isNamedRelationshipsSupported())
 {
   return fromStore.getRelationshipProperties(resolveInvocationContext(fromStore, ctx), relationship);
 }
 return defaultIdentityStore.getRelationshipProperties(resolveInvocationContext(defaultIdentityStore, ctx), relationship);
}
origin: org.jboss.identity.idm/idm-core

public void setRelationshipProperties(IdentityStoreInvocationContext ctx, IdentityObjectRelationship relationship, Map<String, String> properties) throws IdentityException, OperationNotSupportedException
{
 IdentityStore fromStore = resolveIdentityStore(relationship.getFromIdentityObject());
 IdentityStore toStore = resolveIdentityStore(relationship.getToIdentityObject());
 if (fromStore == toStore && toStore.getSupportedFeatures().isNamedRelationshipsSupported())
 {
   fromStore.setRelationshipProperties(resolveInvocationContext(fromStore, ctx), relationship, properties);
   return;
 }
 defaultIdentityStore.setRelationshipProperties(resolveInvocationContext(defaultIdentityStore, ctx), relationship, properties);
}
origin: org.jboss.identity.idm/idm-core

  roles.add(new SimpleRole(new SimpleRoleType(relationship.getName()), createUser(relationship.getToIdentityObject()), createGroup(relationship.getFromIdentityObject())));
roles.add(new SimpleRole(new SimpleRoleType(relationship.getName()), createUser(relationship.getToIdentityObject()), createGroup(relationship.getFromIdentityObject())));
origin: org.jboss.identity.idm/idm-core

public Role getRole(RoleType roleType, User user, Group group) throws IdentityException
{
 checkNotNullArgument(roleType, "RoleType");
 checkNotNullArgument(user, "User");
 checkNotNullArgument(group, "Group");
 //TODO: does separate hasRelationship method in IdentityStore makes sense?
 Set<IdentityObjectRelationship> rels = getRepository().resolveRelationships(getInvocationContext(), createIdentityObject(group), createIdentityObject(user), ROLE);
 if (rels.size() == 0)
 {
   return null;
 }
 for (IdentityObjectRelationship relationship : rels)
 {
   if (roleType.getName().equals(relationship.getName()))
   {
    return new SimpleRole(new SimpleRoleType(relationship.getName()),
      createUser(relationship.getToIdentityObject()),
      createGroup(relationship.getFromIdentityObject()));
   }
 }
 return null;
}
origin: org.jboss.identity.idm/idm-core

public Role createRole(RoleType roleType, User user, Group group) throws IdentityException
{
 checkNotNullArgument(roleType, "RoleType");
 checkNotNullArgument(user, "User");
 checkNotNullArgument(group, "Group");
 //TODO: add createRoleType switch to the API
 IdentityObjectRelationship rel = getRepository().createRelationship(getInvocationContext(), createIdentityObject(group), createIdentityObject(user), ROLE, roleType.getName(), false);
 //TODO: null id - IdentityObjectRelationship doesn't have id
 return new SimpleRole(new SimpleRoleType(rel.getName()), createUser(rel.getToIdentityObject()), createGroup(rel.getFromIdentityObject()));
}
org.jboss.identity.idm.spi.modelIdentityObjectRelationshipgetToIdentityObject

Popular methods of IdentityObjectRelationship

  • getFromIdentityObject
  • getName
  • getType

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now