Item - Geodan/cow GitHub Wiki

Classes


Description

Attributes

  • int IID: item identity. Also the primary key. Unique to each item.

  • PID project: project identity of the project to which the item belongs to.

  • timestamp createDate: creation date if the item.

  • GID/UID createdBy: (group) identity of the user who created the item.

  • GID/UID lastUpdatedBy: identity of the last user/group who modified the item.

  • timestamp lastUpdateDate: timestamp of the moment the item was last edited.

  • string Permissions: permissions of the item. Permissions are assigned to groups. Permission types are: view, edit and share.

  • string type: type of the item. Currently, items can be features of type point, line and polygon.

  • xxxx data: data of the item (geometry, icon, etc)

Methods

(Currently under revision)

  • item createItem():

  • item createItem(PID):

  • item createItem(GID):

  • item createItem(UID):

  • item createItem(IID):

  • boolean updateItem(IID):

  • boolean item.removeItem():

  • boolean removeItem(IID):

  • boolean allowViewItem(GID):

  • boolean forbidViewItem(GID):

  • boolean allowEditItem(GID):

  • boolean forbidEditItem(GID):

  • boolean allowShareItem(GID):

  • boolean forbidShareItem(GID):

  • user getOwnerUser():

  • project getOwnerProject():

  • group getOwnerGroup():

  • group [ ] getViewGroups():

  • group [ ] getEditGroups():

  • group [ ] getShareGroups():

  • user getOwnerUser(IID):

  • project getOwnerProject(IID):

  • group getOwnerGroup(IID):

  • group [ ] getViewGroups(IID):

  • group [ ] getEditGroups(IID):

  • group [ ] getShareGroups(IID):

  • boolean exportToProject(PID):