Interface Scope

All Superinterfaces:
com.google.gwt.user.client.rpc.IsSerializable, Serializable

public interface Scope extends com.google.gwt.user.client.rpc.IsSerializable, Serializable
Scope of the objects. It can be global, project group or project, but in future more specific scopes might be added, so don't expect that there are only this 3.

Instances can be created using SharedContext.createScope().

Methods Object.equals(Object) and Object.hashCode() are implemented, so instances can be used with collections
Since:
3.9.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Returns: / for global scope (when isGlobal() returns true) /[group_path] for project group [project_id] for project (when projectId() returns not null value)
     
  • Method Details

    • projectId

      @Nullable String projectId()
    • path

      @NotNull String path()
      Returns:
      • / for global scope (when isGlobal() returns true)
      • /[group_path] for project group
      • [project_id] for project (when projectId() returns not null value)
    • isGlobal

      boolean isGlobal()