Skip to content

Instantly share code, notes, and snippets.

View zmokhtar's full-sized avatar

Zeki Mokhtarzada zmokhtar

  • Tenovos
  • Silver Spring, MD
View GitHub Profile

Keybase proof

I hereby claim:

  • I am zmokhtar on github.
  • I am zekitm (https://keybase.io/zekitm) on keybase.
  • I have a public key ASApdmyoI6U3egSBf4iOhDjh7QVfaWb5jivQzgFEWBM52wo

To claim this, I am signing this object:

@zmokhtar
zmokhtar / getSiteList
Last active December 26, 2015 11:19 — forked from imrank1webs/getSiteList
Page<ApiMemberSite> getSites(Member member, boolean includeSubscriptions, int pageNum, int pageSize) {
List permissions = [Permission.OWNER,Permission.ADMIN]
if(includeSubscriptions){
permissions.add(Permission.MEMBER)
}
List<ApiMemberSite> sites = new ArrayList<ApiMemberSite>()
Page<Subscription> subscriptions = memberService.getSiteMemberships(member, permissions, pageNum, pageSize)
subscriptions.elements.each {