Merge pull request #1591 from larshp/docs

docs: bits on writing serializers
This commit is contained in:
Lars Hvam 2018-07-09 14:06:01 +02:00 committed by GitHub
commit a817c49aeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View File

@ -11,3 +11,5 @@ Building /docs/ locally:
`bundle install` `bundle install`
`bundle exec jekyll serve --incremental --port $PORT --host $IP` `bundle exec jekyll serve --incremental --port $PORT --host $IP`
[Gude for installing bundle](https://help.dreamhost.com/hc/en-us/articles/115001070131-Using-Bundler-to-install-Ruby-gems)

View File

@ -0,0 +1,41 @@
---
title: Serializers
order: 220
---
All object serializers must be named ZCL_ABAPGIT_OBJECT_"type", where type is the corresponding TADIR-OBJECT type
Use SAP Standard APIs for retriving and updating object information where possible.
If not possible try using ZCL_ABAPGIT_OBJECTS_GENERIC
Serializers must implement interface ZIF_ABAPGIT_OBJECT:
``ZIF_ABAPGIT_OBJECT~SERIALIZE``
todo
``ZIF_ABAPGIT_OBJECT~DESERIALIZE``
todo
``ZIF_ABAPGIT_OBJECT~DELETE``
todo
``ZIF_ABAPGIT_OBJECT~EXISTS``
todo
``ZIF_ABAPGIT_OBJECT~IS_LOCKED``
todo
``ZIF_ABAPGIT_OBJECT~CHANGED_BY``
todo
``ZIF_ABAPGIT_OBJECT~JUMP``
todo
``ZIF_ABAPGIT_OBJECT~GET_METADATA``
todo
``ZIF_ABAPGIT_OBJECT~HAS_CHANGED_SINCE``
todo
``ZIF_ABAPGIT_OBJECT~COMPARE_TO_REMOTE_VERSION``
todo