6.3.1.2.9. INGWLayer

public interface INGWLayer

Each NGW layer must implement this interface.

Author:Dmitry Baryshnikov

6.3.1.2.9.1. Methods

6.3.1.2.9.1.1. getAccountName

String getAccountName()

Return the account connected with this layer

Returns:account name

6.3.1.2.9.1.2. getRemoteId

long getRemoteId()

Return the NextGIS Web server identificator - uniq identificator set for layer on server.

Returns:The NextGIS Web server identificator

6.3.1.2.9.1.3. getSyncType

int getSyncType()

Return the sync type (i.e. sync only attributes or the whole feature)

6.3.1.2.9.1.4. setAccountCacheData

void setAccountCacheData()

cache account data for fast access

6.3.1.2.9.1.5. setAccountName

void setAccountName(String account)

Set the account connected with this layer

Parameters:
  • account – Name

6.3.1.2.9.1.6. setRemoteId

void setRemoteId(long remoteId)

Set NextGIS Web server identificator.

Parameters:
  • remoteId – The NextGIS Web server identificator

6.3.1.2.9.1.7. setSyncType

void setSyncType(int syncType)

Set sync type.

Parameters:
  • syncType – The value result of OR different sync types

See also: com.nextgis.maplib.util.Constants.SYNC_ALL

6.3.1.2.9.1.8. sync

void sync(String authority, Pair<Integer, Integer> ver, SyncResult syncResult)

Sync layer data with NextGIS Web

Parameters:
  • authority – the account authority
  • syncResult – object for storing results of operations