Package org.structr.common

Examples of org.structr.common.SecurityContext


    int position      = 0;
    int count      = 0;
    int overallCount    = 0;
    boolean pageFull    = false;

    SecurityContext securityContext = factoryProfile.getSecurityContext();

    // In case of superuser or in public context, don't check the overall result count
    boolean dontCheckCount  = securityContext.isSuperUser() || securityContext.getUser(false) == null;

    for (S node : input) {

      T n = instantiate(node);
View Full Code Here


  @Override
  public void execute(final Map<String, Object> properties) throws FrameworkException {

    final GraphDatabaseService graphDb     = (GraphDatabaseService) arguments.get("graphDb");
    final SecurityContext superUserContext = SecurityContext.getSuperUserInstance();
    final NodeFactory nodeFactory          = new NodeFactory(superUserContext);

    String type    = null;
    final String oldKey  = (String) properties.get("oldKey");
    final String newKey  = (String) properties.get("newKey");
View Full Code Here


  private void migrateDatabase() {

    final GraphDatabaseService graphDb     = getService(NodeService.class).getGraphDb();
    final SecurityContext superUserContext = SecurityContext.getSuperUserInstance();
    final NodeFactory nodeFactory          = new NodeFactory(superUserContext);
    final RelationshipFactory relFactory   = new RelationshipFactory(superUserContext);
    final App app                          = StructrApp.getInstance();
    final StringProperty uuidProperty      = new StringProperty("uuid");
    final int txLimit                      = 2000;
View Full Code Here

  public void execute(Map<String, Object> attributes) throws FrameworkException {

    final String entityType                = (String) attributes.get("type");
    final String relType                   = (String) attributes.get("relType");
    final GraphDatabaseService graphDb     = (GraphDatabaseService) arguments.get("graphDb");
    final SecurityContext superUserContext = SecurityContext.getSuperUserInstance();
    final NodeFactory nodeFactory          = new NodeFactory(superUserContext);
    final RelationshipFactory relFactory   = new RelationshipFactory(superUserContext);

    if (entityType != null) {
View Full Code Here

TOP

Related Classes of org.structr.common.SecurityContext

Copyright © 2018 www.massapicom. 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.