Examples of Identity


Examples of frost.identities.Identity

            BmarkBAD.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(final java.awt.event.ActionEvent e) {
                    final int[] selRows = getIdentitiesTable().getSelectedRows();
                    for( final int element : selRows ) {
                        final InnerTableMember itm = (InnerTableMember)tableModel.getRow(element);
                        final Identity id = itm.getIdentity();
                        if( id.isBAD() == false ) {
                            id.setBAD();
                        }
                        tableModel.updateRow(itm);
                    }
                }
            });
View Full Code Here

Examples of frost.identities.Identity

                    if( !IdentitiesStorage.inst().beginExclusiveThreadTransaction() ) {
                        return;
                    }
                    for( int x=selRows.length-1; x>=0; x-- ) {
                        final InnerTableMember m = (InnerTableMember)tableModel.getRow(selRows[x]);
                        final Identity id = m.getIdentity();
                        Core.getIdentities().deleteIdentity(id);
                        tableModel.removeRow(selRows[x]);
                    }
                    IdentitiesStorage.inst().endThreadTransaction();
                    updateTitle();
View Full Code Here

Examples of frost.identities.Identity

                    if( !IdentitiesStorage.inst().beginExclusiveThreadTransaction() ) {
                        return;
                    }
                    for( final Integer element : li ) {
                        final InnerTableMember m = (InnerTableMember)tableModel.getRow(element.intValue());
                        final Identity id = m.getIdentity();
                        Core.getIdentities().deleteIdentity(id);
                        tableModel.removeRow(element.intValue());
                    }
                    IdentitiesStorage.inst().endThreadTransaction();
View Full Code Here

Examples of java.security.Identity

    return permissionCollection;
  }

  boolean isTrusted() {
    Identity identities[] = codeSource.identities;

    boolean trusted = false;

    if(identities != null) {
      for(int i = 0; i < identities.length && !trusted; i++)
View Full Code Here

Examples of net.paoding.rose.jade.core.Identity

        } else if (returnType == Double.class) {
            return result.doubleValue();
        } else if (returnType == Float.class) {
            return result.floatValue();
        } else if (returnType == Identity.class) {
            return new Identity((Number) result);
        } else if (Number.class.isAssignableFrom(returnType)) {
            return result;
        } else {
            throw new DataRetrievalFailureException(
                    "The generated key is not of a supported numeric type. " + "Unable to cast ["
View Full Code Here

Examples of net.pterodactylus.sone.freenet.wot.Identity

  /**
   * {@inheritDoc}
   */
  @Override
  public Object get(TemplateContext templateContext, Object object, String member) {
    Identity identity = (Identity) object;
    if ("uniqueNickname".equals(member)) {
      int minLength = -1;
      boolean found = false;
      Set<OwnIdentity> ownIdentities = null;
      ownIdentities = core.getIdentityManager().getAllOwnIdentities();
View Full Code Here

Examples of org.apache.aurora.gen.Identity

public class ThriftBinaryCodecTest {

  @Test
  public void testRoundTrip() throws CodingException {
    Identity original = new Identity("mesos", "jack");
    assertEquals(original,
        ThriftBinaryCodec.decode(Identity.class, ThriftBinaryCodec.encode(original)));
  }
View Full Code Here

Examples of org.apache.cayenne.jpa.itest.ch9.entity.IdEntity

public class _9_1_8_IdAnnotationTest extends EntityManagerCase {

    public void testUserProvidedId() throws Exception {
        getDbHelper().deleteAll("IdEntity");

        IdEntity o1 = new IdEntity();
        o1.setIdValue(15);

        getEntityManager().persist(o1);
        getEntityManager().getTransaction().commit();

        assertEquals(15, getDbHelper().getInt("IdEntity", "id"));
        assertEquals(15, o1.getIdValue());
    }
View Full Code Here

Examples of org.apache.commons.math3.analysis.function.Identity

     * @param initialValue Initial value.
     * @return a collector function.
     */
    public static MultivariateFunction collector(final BivariateFunction combiner,
                                                 final double initialValue) {
        return collector(combiner, new Identity(), initialValue);
    }
View Full Code Here

Examples of org.apache.deltaspike.security.api.Identity

public class DeltaSpikeUserProvider implements UserProvider {

    @Override
    public FeatureUser getCurrentUser() {

        Identity identity = BeanProvider.getContextualReference(Identity.class);
        if (identity == null) {
            throw new IllegalStateException("Could not obtain Identity");
        }

        if (identity.isLoggedIn()) {
            String name = identity.getUser().getId();
            return new SimpleFeatureUser(name, isFeatureAdmin(identity));
        }

        return null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.