org.uberfire.security.Identity.getName()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(6.4k)|赞(0)|评价(0)|浏览(170)

本文整理了Java中org.uberfire.security.Identity.getName()方法的一些代码示例,展示了Identity.getName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Identity.getName()方法的具体详情如下:
包路径:org.uberfire.security.Identity
类名称:Identity
方法名:getName

Identity.getName介绍

暂无

代码示例

代码示例来源:origin: org.kie.guvnor/guvnor-inbox-backend

/**
 * This should be called when the user edits or comments on an asset. Simply
 * adds to the list...
 */
public void addToRecentEdited( String itemPath,
                String note ) {
  addToInbox( RECENT_EDITED_ID,
        itemPath,
        note,
        identity.getName(),
        identity.getName() );
}

代码示例来源:origin: org.kie.guvnor/guvnor-guided-rule-editor-backend

private CommentedOption makeCommentedOption( final String commitMessage ) {
  final String name = identity.getName();
  final Date when = new Date();
  final CommentedOption co = new CommentedOption( name,
                          null,
                          commitMessage,
                          when );
  return co;
}

代码示例来源:origin: org.kie.guvnor/guvnor-factmodel-editor-backend

private CommentedOption makeCommentedOption( final String commitMessage ) {
  final String name = identity.getName();
  final Date when = new Date();
  final CommentedOption co = new CommentedOption( name,
                          null,
                          commitMessage,
                          when );
  return co;
}

代码示例来源:origin: org.kie.guvnor/guvnor-guided-scorecard-editor-backend

private CommentedOption makeCommentedOption( final String commitMessage ) {
  final String name = identity.getName();
  final Date when = new Date();
  final CommentedOption co = new CommentedOption( name,
                          null,
                          commitMessage,
                          when );
  return co;
}

代码示例来源:origin: org.kie.workbench.services/kie-wb-common-project-backend

private CommentedOption makeCommentedOption( final String commitMessage ) {
  final String name = identity.getName();
  final Date when = new Date();
  final CommentedOption co = new CommentedOption( name,
                          null,
                          commitMessage,
                          when );
  return co;
}

代码示例来源:origin: org.kie.guvnor/guvnor-drl-text-editor-backend

private CommentedOption makeCommentedOption( final String commitMessage ) {
    final String name = identity.getName();
    final Date when = new Date();
    final CommentedOption co = new CommentedOption( name,
                            null,
                            commitMessage,
                            when );
    return co;
  }
}

代码示例来源:origin: org.kie.guvnor/guvnor-enum-editor-backend

private CommentedOption makeCommentedOption( final String commitMessage ) {
  final String name = identity.getName();
  final Date when = new Date();
  final CommentedOption co = new CommentedOption( name,
                          null,
                          commitMessage,
                          when );
  return co;
}

代码示例来源:origin: org.kie.guvnor/guvnor-scorecard-xls-editor-backend

private CommentedOption makeCommentedOption( final String commitMessage ) {
  final String name = identity.getName();
  final Date when = new Date();
  final CommentedOption co = new CommentedOption( name,
                          null,
                          commitMessage,
                          when );
  return co;
}

代码示例来源:origin: org.kie.guvnor/guvnor-project-backend

private CommentedOption makeCommentedOption( final String commitMessage ) {
  final String name = identity.getName();
  final Date when = new Date();
  final CommentedOption co = new CommentedOption( name,
                          null,
                          commitMessage,
                          when );
  return co;
}

代码示例来源:origin: org.kie.guvnor/guvnor-default-editor-backend

private CommentedOption makeCommentedOption( final String commitMessage ) {
    final String name = identity.getName();
    final Date when = new Date();
    final CommentedOption co = new CommentedOption( name,
                            null,
                            commitMessage,
                            when );
    return co;
  }
}

代码示例来源:origin: org.kie.workbench.services/kie-wb-common-project-backend

private CommentedOption makeCommentedOption( final String commitMessage ) {
  final String name = identity.getName();
  final Date when = new Date();
  final CommentedOption co = new CommentedOption( name,
                          null,
                          commitMessage,
                          when );
  return co;
}

代码示例来源:origin: org.kie.guvnor/guvnor-project-backend

private CommentedOption makeCommentedOption( final String commitMessage ) {
  final String name = identity.getName();
  final Date when = new Date();
  final CommentedOption co = new CommentedOption( name,
                          null,
                          commitMessage,
                          when );
  return co;
}

代码示例来源:origin: org.kie.guvnor/guvnor-project-editor-backend

private CommentedOption makeCommentedOption( final String commitMessage ) {
  final String name = identity.getName();
  final Date when = new Date();
  final CommentedOption co = new CommentedOption( name,
                          null,
                          commitMessage,
                          when );
  return co;
}

代码示例来源:origin: org.kie.guvnor/guvnor-core-services-backend

@Override
public void delete( final Path path,
          final String comment ) {
  System.out.println( "USER:" + identity.getName() + " DELETING asset [" + path.getFileName() + "]" );
  ioService.delete( paths.convert( path ) );
  resourceDeletedEvent.fire( new ResourceDeletedEvent( path ) );
}

代码示例来源:origin: org.uberfire/backend-server

public PerspectiveDefinition load(final String perspectiveName) {
  final String rootURI = bootstrapRoot.toURI();
  final Path path = new PathImpl( rootURI + "/.metadata/.users/" + identity.getName() + "/.perspectives/" + perspectiveName + ".perspective" );
  if ( vfsService.exists( path ) ){
    final String xml = vfsService.readAllString( path );
    return  (PerspectiveDefinition) xs.fromXML( xml );
  }
  return null;
};

代码示例来源:origin: org.kie.guvnor/guvnor-metadata-widget

public void callback( final Long timestamp ) {
    showNewCommentButton();
    metadata.addDiscussion( new DiscussionRecord( timestamp, identity.getName(), text ) );
    makeDirty();
    updateCommentList();
  }
}, AppConfigService.class ).getTimestamp();

代码示例来源:origin: org.uberfire/backend-server

public void save(final PerspectiveDefinition perspective) {
  final String xml = xs.toXML( perspective );
  final String rootURI = bootstrapRoot.toURI();
  vfsService.write( new PathImpl( rootURI + "/.metadata/.users/" + identity.getName() + "/.perspectives/" + perspective.getName() + ".perspective" ), xml );
}

代码示例来源:origin: org.kie.guvnor/guvnor-inbox-backend

/**
 * Helper method to note the event
 */
//@Override
public synchronized void recordUserEditEvent( String itemPath,
                       String itemName ) {
  addToRecentEdited( itemPath, itemName );
  //deliver messages to users inboxes (ie., the edited item is the itme that the current logged in user has edited in the past, or commented on)
  addToIncoming( itemPath, itemName, identity.getName(), MailboxService.MAIL_MAN );
  mailboxService.processOutgoing();
  mailboxService.wakeUp();
}

代码示例来源:origin: org.kie.guvnor/guvnor-core-services-backend

@Override
  public Path restore( final Path _path,
             final String comment ) {
    final org.kie.commons.java.nio.file.Path path = paths.convert( _path );

    final org.kie.commons.java.nio.file.Path target = path.getFileSystem().getPath( path.toString() );

    return paths.convert( ioService.copy( path, target, REPLACE_EXISTING, new CommentedOption( identity.getName(), comment ) ) );
  }
}

代码示例来源:origin: org.kie.guvnor/guvnor-guided-dtable-editor-client

public void onDeleteRow( DeleteRowEvent event ) {
  model.getData().remove( event.getIndex() );
  model.getAnalysisData().remove( event.getIndex() );
  Scheduler.get().scheduleFinally( new Command() {
    public void execute() {
      updateSystemControlledColumnValues();
    }
  } );
  //Log deletion of row
  model.getAuditLog().add( new DeleteRowAuditLogEntry( identity.getName(),
                             event.getIndex() ) );
}

相关文章

Identity类方法