Compare commits
No commits in common. "develop-acs7" and "v2.0.x" have entirely different histories.
develop-ac
...
v2.0.x
8
.gitignore
vendored
8
.gitignore
vendored
@ -1,6 +1,6 @@
|
||||
# Maven
|
||||
target
|
||||
pom.xml.versionsBackup
|
||||
target
|
||||
|
||||
# Eclipse
|
||||
.project
|
||||
@ -9,9 +9,7 @@ pom.xml.versionsBackup
|
||||
|
||||
# Visual Studio Code
|
||||
.factorypath
|
||||
.vscode
|
||||
|
||||
# Swagger Codegen
|
||||
src/gen
|
||||
.swagger*
|
||||
|
||||
.swagger-codegen
|
||||
.swagger-codegen-ignore
|
||||
|
@ -1,157 +0,0 @@
|
||||
### GNU LESSER GENERAL PUBLIC LICENSE
|
||||
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
<https://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this
|
||||
license document, but changing it is not allowed.
|
||||
|
||||
This version of the GNU Lesser General Public License incorporates the
|
||||
terms and conditions of version 3 of the GNU General Public License,
|
||||
supplemented by the additional permissions listed below.
|
||||
|
||||
#### 0. Additional Definitions.
|
||||
|
||||
As used herein, "this License" refers to version 3 of the GNU Lesser
|
||||
General Public License, and the "GNU GPL" refers to version 3 of the
|
||||
GNU General Public License.
|
||||
|
||||
"The Library" refers to a covered work governed by this License, other
|
||||
than an Application or a Combined Work as defined below.
|
||||
|
||||
An "Application" is any work that makes use of an interface provided
|
||||
by the Library, but which is not otherwise based on the Library.
|
||||
Defining a subclass of a class defined by the Library is deemed a mode
|
||||
of using an interface provided by the Library.
|
||||
|
||||
A "Combined Work" is a work produced by combining or linking an
|
||||
Application with the Library. The particular version of the Library
|
||||
with which the Combined Work was made is also called the "Linked
|
||||
Version".
|
||||
|
||||
The "Minimal Corresponding Source" for a Combined Work means the
|
||||
Corresponding Source for the Combined Work, excluding any source code
|
||||
for portions of the Combined Work that, considered in isolation, are
|
||||
based on the Application, and not on the Linked Version.
|
||||
|
||||
The "Corresponding Application Code" for a Combined Work means the
|
||||
object code and/or source code for the Application, including any data
|
||||
and utility programs needed for reproducing the Combined Work from the
|
||||
Application, but excluding the System Libraries of the Combined Work.
|
||||
|
||||
#### 1. Exception to Section 3 of the GNU GPL.
|
||||
|
||||
You may convey a covered work under sections 3 and 4 of this License
|
||||
without being bound by section 3 of the GNU GPL.
|
||||
|
||||
#### 2. Conveying Modified Versions.
|
||||
|
||||
If you modify a copy of the Library, and, in your modifications, a
|
||||
facility refers to a function or data to be supplied by an Application
|
||||
that uses the facility (other than as an argument passed when the
|
||||
facility is invoked), then you may convey a copy of the modified
|
||||
version:
|
||||
|
||||
- a) under this License, provided that you make a good faith effort
|
||||
to ensure that, in the event an Application does not supply the
|
||||
function or data, the facility still operates, and performs
|
||||
whatever part of its purpose remains meaningful, or
|
||||
- b) under the GNU GPL, with none of the additional permissions of
|
||||
this License applicable to that copy.
|
||||
|
||||
#### 3. Object Code Incorporating Material from Library Header Files.
|
||||
|
||||
The object code form of an Application may incorporate material from a
|
||||
header file that is part of the Library. You may convey such object
|
||||
code under terms of your choice, provided that, if the incorporated
|
||||
material is not limited to numerical parameters, data structure
|
||||
layouts and accessors, or small macros, inline functions and templates
|
||||
(ten or fewer lines in length), you do both of the following:
|
||||
|
||||
- a) Give prominent notice with each copy of the object code that
|
||||
the Library is used in it and that the Library and its use are
|
||||
covered by this License.
|
||||
- b) Accompany the object code with a copy of the GNU GPL and this
|
||||
license document.
|
||||
|
||||
#### 4. Combined Works.
|
||||
|
||||
You may convey a Combined Work under terms of your choice that, taken
|
||||
together, effectively do not restrict modification of the portions of
|
||||
the Library contained in the Combined Work and reverse engineering for
|
||||
debugging such modifications, if you also do each of the following:
|
||||
|
||||
- a) Give prominent notice with each copy of the Combined Work that
|
||||
the Library is used in it and that the Library and its use are
|
||||
covered by this License.
|
||||
- b) Accompany the Combined Work with a copy of the GNU GPL and this
|
||||
license document.
|
||||
- c) For a Combined Work that displays copyright notices during
|
||||
execution, include the copyright notice for the Library among
|
||||
these notices, as well as a reference directing the user to the
|
||||
copies of the GNU GPL and this license document.
|
||||
- d) Do one of the following:
|
||||
- 0) Convey the Minimal Corresponding Source under the terms of
|
||||
this License, and the Corresponding Application Code in a form
|
||||
suitable for, and under terms that permit, the user to
|
||||
recombine or relink the Application with a modified version of
|
||||
the Linked Version to produce a modified Combined Work, in the
|
||||
manner specified by section 6 of the GNU GPL for conveying
|
||||
Corresponding Source.
|
||||
- 1) Use a suitable shared library mechanism for linking with
|
||||
the Library. A suitable mechanism is one that (a) uses at run
|
||||
time a copy of the Library already present on the user's
|
||||
computer system, and (b) will operate properly with a modified
|
||||
version of the Library that is interface-compatible with the
|
||||
Linked Version.
|
||||
- e) Provide Installation Information, but only if you would
|
||||
otherwise be required to provide such information under section 6
|
||||
of the GNU GPL, and only to the extent that such information is
|
||||
necessary to install and execute a modified version of the
|
||||
Combined Work produced by recombining or relinking the Application
|
||||
with a modified version of the Linked Version. (If you use option
|
||||
4d0, the Installation Information must accompany the Minimal
|
||||
Corresponding Source and Corresponding Application Code. If you
|
||||
use option 4d1, you must provide the Installation Information in
|
||||
the manner specified by section 6 of the GNU GPL for conveying
|
||||
Corresponding Source.)
|
||||
|
||||
#### 5. Combined Libraries.
|
||||
|
||||
You may place library facilities that are a work based on the Library
|
||||
side by side in a single library together with other library
|
||||
facilities that are not Applications and are not covered by this
|
||||
License, and convey such a combined library under terms of your
|
||||
choice, if you do both of the following:
|
||||
|
||||
- a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities, conveyed under the terms of this License.
|
||||
- b) Give prominent notice with the combined library that part of it
|
||||
is a work based on the Library, and explaining where to find the
|
||||
accompanying uncombined form of the same work.
|
||||
|
||||
#### 6. Revised Versions of the GNU Lesser General Public License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions
|
||||
of the GNU Lesser General Public License from time to time. Such new
|
||||
versions will be similar in spirit to the present version, but may
|
||||
differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
as you received it specifies that a certain numbered version of the
|
||||
GNU Lesser General Public License "or any later version" applies to
|
||||
it, you have the option of following the terms and conditions either
|
||||
of that published version or of any later version published by the
|
||||
Free Software Foundation. If the Library as you received it does not
|
||||
specify a version number of the GNU Lesser General Public License, you
|
||||
may choose any version of the GNU Lesser General Public License ever
|
||||
published by the Free Software Foundation.
|
||||
|
||||
If the Library as you received it specifies that a proxy can decide
|
||||
whether future versions of the GNU Lesser General Public License shall
|
||||
apply, that proxy's public statement of acceptance of any version is
|
||||
permanent authorization for you to choose that version for the
|
||||
Library.
|
675
COPYING.md
675
COPYING.md
@ -1,675 +0,0 @@
|
||||
### GNU GENERAL PUBLIC LICENSE
|
||||
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
<https://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this
|
||||
license document, but changing it is not allowed.
|
||||
|
||||
### Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom
|
||||
to share and change all versions of a program--to make sure it remains
|
||||
free software for all its users. We, the Free Software Foundation, use
|
||||
the GNU General Public License for most of our software; it applies
|
||||
also to any other work released this way by its authors. You can apply
|
||||
it to your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you
|
||||
have certain responsibilities if you distribute copies of the
|
||||
software, or if you modify it: responsibilities to respect the freedom
|
||||
of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the
|
||||
manufacturer can do so. This is fundamentally incompatible with the
|
||||
aim of protecting users' freedom to change the software. The
|
||||
systematic pattern of such abuse occurs in the area of products for
|
||||
individuals to use, which is precisely where it is most unacceptable.
|
||||
Therefore, we have designed this version of the GPL to prohibit the
|
||||
practice for those products. If such problems arise substantially in
|
||||
other domains, we stand ready to extend this provision to those
|
||||
domains in future versions of the GPL, as needed to protect the
|
||||
freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish
|
||||
to avoid the special danger that patents applied to a free program
|
||||
could make it effectively proprietary. To prevent this, the GPL
|
||||
assures that patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
### TERMS AND CONDITIONS
|
||||
|
||||
#### 0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds
|
||||
of works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of
|
||||
an exact copy. The resulting work is called a "modified version" of
|
||||
the earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user
|
||||
through a computer network, with no transfer of a copy, is not
|
||||
conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices" to
|
||||
the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
#### 1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work for
|
||||
making modifications to it. "Object code" means any non-source form of
|
||||
a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users can
|
||||
regenerate automatically from other parts of the Corresponding Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that same
|
||||
work.
|
||||
|
||||
#### 2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not convey,
|
||||
without conditions so long as your license otherwise remains in force.
|
||||
You may convey covered works to others for the sole purpose of having
|
||||
them make modifications exclusively for you, or provide you with
|
||||
facilities for running those works, provided that you comply with the
|
||||
terms of this License in conveying all material for which you do not
|
||||
control copyright. Those thus making or running the covered works for
|
||||
you must do so exclusively on your behalf, under your direction and
|
||||
control, on terms that prohibit them from making any copies of your
|
||||
copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under the
|
||||
conditions stated below. Sublicensing is not allowed; section 10 makes
|
||||
it unnecessary.
|
||||
|
||||
#### 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such
|
||||
circumvention is effected by exercising rights under this License with
|
||||
respect to the covered work, and you disclaim any intention to limit
|
||||
operation or modification of the work as a means of enforcing, against
|
||||
the work's users, your or third parties' legal rights to forbid
|
||||
circumvention of technological measures.
|
||||
|
||||
#### 4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
#### 5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these
|
||||
conditions:
|
||||
|
||||
- a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
- b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under
|
||||
section 7. This requirement modifies the requirement in section 4
|
||||
to "keep intact all notices".
|
||||
- c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
- d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
#### 6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms of
|
||||
sections 4 and 5, provided that you also convey the machine-readable
|
||||
Corresponding Source under the terms of this License, in one of these
|
||||
ways:
|
||||
|
||||
- a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
- b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the Corresponding
|
||||
Source from a network server at no charge.
|
||||
- c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
- d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
- e) Convey the object code using peer-to-peer transmission,
|
||||
provided you inform other peers where the object code and
|
||||
Corresponding Source of the work are being offered to the general
|
||||
public at no charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal,
|
||||
family, or household purposes, or (2) anything designed or sold for
|
||||
incorporation into a dwelling. In determining whether a product is a
|
||||
consumer product, doubtful cases shall be resolved in favor of
|
||||
coverage. For a particular product received by a particular user,
|
||||
"normally used" refers to a typical or common use of that class of
|
||||
product, regardless of the status of the particular user or of the way
|
||||
in which the particular user actually uses, or expects or is expected
|
||||
to use, the product. A product is a consumer product regardless of
|
||||
whether the product has substantial commercial, industrial or
|
||||
non-consumer uses, unless such uses represent the only significant
|
||||
mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to
|
||||
install and execute modified versions of a covered work in that User
|
||||
Product from a modified version of its Corresponding Source. The
|
||||
information must suffice to ensure that the continued functioning of
|
||||
the modified object code is in no case prevented or interfered with
|
||||
solely because modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or
|
||||
updates for a work that has been modified or installed by the
|
||||
recipient, or for the User Product in which it has been modified or
|
||||
installed. Access to a network may be denied when the modification
|
||||
itself materially and adversely affects the operation of the network
|
||||
or violates the rules and protocols for communication across the
|
||||
network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
#### 7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders
|
||||
of that material) supplement the terms of this License with terms:
|
||||
|
||||
- a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
- b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
- c) Prohibiting misrepresentation of the origin of that material,
|
||||
or requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
- d) Limiting the use for publicity purposes of names of licensors
|
||||
or authors of the material; or
|
||||
- e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
- f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions
|
||||
of it) with contractual assumptions of liability to the recipient,
|
||||
for any liability that these contractual assumptions directly
|
||||
impose on those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions; the
|
||||
above requirements apply either way.
|
||||
|
||||
#### 8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your license
|
||||
from a particular copyright holder is reinstated (a) provisionally,
|
||||
unless and until the copyright holder explicitly and finally
|
||||
terminates your license, and (b) permanently, if the copyright holder
|
||||
fails to notify you of the violation by some reasonable means prior to
|
||||
60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
#### 9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or run
|
||||
a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
#### 10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
#### 11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims owned
|
||||
or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within the
|
||||
scope of its coverage, prohibits the exercise of, or is conditioned on
|
||||
the non-exercise of one or more of the rights that are specifically
|
||||
granted under this License. You may not convey a covered work if you
|
||||
are a party to an arrangement with a third party that is in the
|
||||
business of distributing software, under which you make payment to the
|
||||
third party based on the extent of your activity of conveying the
|
||||
work, and under which the third party grants, to any of the parties
|
||||
who would receive the covered work from you, a discriminatory patent
|
||||
license (a) in connection with copies of the covered work conveyed by
|
||||
you (or copies made from those copies), or (b) primarily for and in
|
||||
connection with specific products or compilations that contain the
|
||||
covered work, unless you entered into that arrangement, or that patent
|
||||
license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
#### 12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under
|
||||
this License and any other pertinent obligations, then as a
|
||||
consequence you may not convey it at all. For example, if you agree to
|
||||
terms that obligate you to collect a royalty for further conveying
|
||||
from those to whom you convey the Program, the only way you could
|
||||
satisfy both those terms and this License would be to refrain entirely
|
||||
from conveying the Program.
|
||||
|
||||
#### 13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
#### 14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions
|
||||
of the GNU General Public License from time to time. Such new versions
|
||||
will be similar in spirit to the present version, but may differ in
|
||||
detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies that a certain numbered version of the GNU General Public
|
||||
License "or any later version" applies to it, you have the option of
|
||||
following the terms and conditions either of that numbered version or
|
||||
of any later version published by the Free Software Foundation. If the
|
||||
Program does not specify a version number of the GNU General Public
|
||||
License, you may choose any version ever published by the Free
|
||||
Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future versions
|
||||
of the GNU General Public License can be used, that proxy's public
|
||||
statement of acceptance of a version permanently authorizes you to
|
||||
choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
#### 15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
|
||||
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
|
||||
PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
|
||||
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
|
||||
CORRECTION.
|
||||
|
||||
#### 16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR
|
||||
CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
|
||||
ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
|
||||
NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR
|
||||
LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM
|
||||
TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
|
||||
PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
#### 17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
### How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these
|
||||
terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to
|
||||
attach them to the start of each source file to most effectively state
|
||||
the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper
|
||||
mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands \`show w' and \`show c' should show the
|
||||
appropriate parts of the General Public License. Of course, your
|
||||
program's commands might be different; for a GUI interface, you would
|
||||
use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. For more information on this, and how to apply and follow
|
||||
the GNU GPL, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your
|
||||
program into proprietary programs. If your program is a subroutine
|
||||
library, you may consider it more useful to permit linking proprietary
|
||||
applications with the library. If this is what you want to do, use the
|
||||
GNU Lesser General Public License instead of this License. But first,
|
||||
please read <https://www.gnu.org/licenses/why-not-lgpl.html>.
|
595
pom.xml
595
pom.xml
@ -2,90 +2,50 @@
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>com.inteligr8.alfresco</groupId>
|
||||
<artifactId>acs-public-rest-api</artifactId>
|
||||
<version>3.0-SNAPSHOT-acs7</version>
|
||||
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
<name>Alfresco Content Services ReST API for Java</name>
|
||||
<description>A library for building ACS v7.x JAX-RS REST API clients</description>
|
||||
<url>https://bitbucket.org/inteligr8/acs-public-rest-api</url>
|
||||
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007</name>
|
||||
<url>https://www.gnu.org/licenses/lgpl-3.0.txt</url>
|
||||
</license>
|
||||
</licenses>
|
||||
|
||||
<scm>
|
||||
<connection>scm:git:https://bitbucket.org/inteligr8/acs-public-rest-api.git</connection>
|
||||
<developerConnection>scm:git:git@bitbucket.org:inteligr8/acs-public-rest-api.git</developerConnection>
|
||||
<url>https://bitbucket.org/inteligr8/acs-public-rest-api</url>
|
||||
</scm>
|
||||
<organization>
|
||||
<name>Inteligr8</name>
|
||||
<url>https://www.inteligr8.com</url>
|
||||
</organization>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>brian.long</id>
|
||||
<name>Brian Long</name>
|
||||
<email>brian@inteligr8.com</email>
|
||||
<url>https://twitter.com/brianmlong</url>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>11</maven.compiler.source>
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
<maven.compiler.debuglevel>lines,vars,source</maven.compiler.debuglevel>
|
||||
|
||||
<!-- If you want to build for your specific version, point to your own
|
||||
installation -->
|
||||
<acs.baseUrl>http://localhost:8080/alfresco</acs.baseUrl>
|
||||
<acs.platform.tag>acs7</acs.platform.tag>
|
||||
<swagger.basePackage>com.inteligr8.alfresco.acs</swagger.basePackage>
|
||||
|
||||
<alfresco.platform.version>7.3.0</alfresco.platform.version>
|
||||
|
||||
<jersey.version>3.1.8</jersey.version>
|
||||
<cxf.version>4.0.2</cxf.version>
|
||||
<jackson.version>2.17.2</jackson.version>
|
||||
<jersey.version>2.35</jersey.version>
|
||||
<cxf.version>3.4.7</cxf.version>
|
||||
|
||||
<api.model.disabled>false</api.model.disabled>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-annotations</artifactId>
|
||||
<version>1.6.11</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.swagger.core.v3</groupId>
|
||||
<artifactId>swagger-annotations</artifactId>
|
||||
<version>2.2.11</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jakarta.activation</groupId>
|
||||
<artifactId>jakarta.activation-api</artifactId>
|
||||
<version>2.1.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>2.0.7</version>
|
||||
<artifactId>swagger-jaxrs</artifactId>
|
||||
<version>1.6.2</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>javax.ws.rs</groupId>
|
||||
<artifactId>jsr311-api</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jakarta.ws.rs</groupId>
|
||||
<artifactId>jakarta.ws.rs-api</artifactId>
|
||||
<version>3.1.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jakarta.xml.bind</groupId>
|
||||
<artifactId>jakarta.xml.bind-api</artifactId>
|
||||
<version>4.0.1</version>
|
||||
<version>2.1.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.module</groupId>
|
||||
<artifactId>jackson-module-jaxb-annotations</artifactId>
|
||||
<version>${jackson.version}</version>
|
||||
<version>2.12.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.cxf</groupId>
|
||||
@ -103,218 +63,6 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-clean-plugin</artifactId>
|
||||
<version>3.1.0</version>
|
||||
<configuration>
|
||||
<filesets>
|
||||
<fileset>
|
||||
<directory>src/gen/java</directory>
|
||||
<includes>
|
||||
<include>com/inteligr8/alfresco/acs/**/*</include>
|
||||
</includes>
|
||||
</fileset>
|
||||
</filesets>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<version>3.3.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>download-api-explorer</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals><goal>unpack</goal></goals>
|
||||
<configuration>
|
||||
<artifact>org.alfresco:api-explorer:${alfresco.platform.version}:war</artifact>
|
||||
<includes>definitions/**/*</includes>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>io.swagger.codegen.v3</groupId>
|
||||
<artifactId>swagger-codegen-maven-plugin</artifactId>
|
||||
<version>3.0.61</version>
|
||||
<configuration>
|
||||
<language>jaxrs-cxf-client</language>
|
||||
<configOptions>
|
||||
<jakarta>true</jakarta>
|
||||
</configOptions>
|
||||
<output>${basedir}</output>
|
||||
<apiPackage>${swagger.basePackage}.api</apiPackage>
|
||||
<modelPackage>${swagger.basePackage}.model</modelPackage>
|
||||
<invokerPackage>${swagger.basePackage}.invoker</invokerPackage>
|
||||
<generateApiTests>false</generateApiTests>
|
||||
<generateApiDocumentation>false</generateApiDocumentation>
|
||||
<generateModelTests>false</generateModelTests>
|
||||
<generateModelDocumentation>false</generateModelDocumentation>
|
||||
</configuration>
|
||||
<executions>
|
||||
<!-- search before core, as ContentInfo is incorrect in search -->
|
||||
<execution>
|
||||
<id>swagger-search-codegen</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-search.yaml</inputSpec>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>swagger-core-codegen</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-core.yaml</inputSpec>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>swagger-workflow-codegen</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-workflow.yaml</inputSpec>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>swagger-auth-codegen</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-auth.yaml</inputSpec>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>swagger-discovery-codegen</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-discovery.yaml</inputSpec>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>swagger-model-codegen</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<inputSpec>${project.build.directory}/dependency/definitions/alfresco-model.yaml</inputSpec>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.inteligr8</groupId>
|
||||
<artifactId>regex-maven-plugin</artifactId>
|
||||
<version>1.0.5</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>fix-baseUrl</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>replace-file</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<filesets>
|
||||
<fileset>
|
||||
<directory>${basedir}/src/gen/java/com/inteligr8/alfresco/acs/api</directory>
|
||||
<outputDirectory>${basedir}/src/gen/java/com/inteligr8/alfresco/acs/api</outputDirectory>
|
||||
</fileset>
|
||||
</filesets>
|
||||
<allowMultiLineMatch>true</allowMultiLineMatch>
|
||||
<regexes>
|
||||
<regex>
|
||||
<pattern>import org\.apache\.cxf\.jaxrs\.ext\.multipart\.\*;.*</pattern>
|
||||
<replacement></replacement>
|
||||
</regex>
|
||||
<regex>
|
||||
<pattern>public NodeEntry createNode\(@Multipart.*</pattern>
|
||||
<previousPattern>/\*\*</previousPattern>
|
||||
</regex>
|
||||
<regex>
|
||||
<pattern>(\*\*Core API\*\*[^@]*)@Path\("/"\)</pattern>
|
||||
<replacement>$1@Path("/api/-default-/public/alfresco/versions/1")</replacement>
|
||||
</regex>
|
||||
<regex>
|
||||
<pattern>(\*\*Workflow API\*\*[^@]*)@Path\("/"\)</pattern>
|
||||
<replacement>$1@Path("/api/-default-/public/workflow/versions/1")</replacement>
|
||||
</regex>
|
||||
<regex>
|
||||
<pattern>(\*\*Authentication API\*\*[^@]*)@Path\("/"\)</pattern>
|
||||
<replacement>$1@Path("/api/-default-/public/authentication/versions/1")</replacement>
|
||||
</regex>
|
||||
<regex>
|
||||
<pattern>(\*\*Discovery API\*\*[^@]*)@Path\("/"\)</pattern>
|
||||
<replacement>$1@Path("/api")</replacement>
|
||||
</regex>
|
||||
<regex>
|
||||
<pattern>(\*\*Search API\*\*[^@]*)@Path\("/"\)</pattern>
|
||||
<replacement>$1@Path("/api/-default-/public/search/versions/1")</replacement>
|
||||
</regex>
|
||||
<regex>
|
||||
<pattern>(\*\*Model API\*\*[^@]*)@Path\("/"\)</pattern>
|
||||
<replacement>$1@Path("/api/-default-/public/alfresco/versions/1")</replacement>
|
||||
</regex>
|
||||
</regexes>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>add-ignoreUnknown</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>replace-file</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<filesets>
|
||||
<fileset>
|
||||
<directory>${basedir}/src/gen/java/com/inteligr8/alfresco/acs/model</directory>
|
||||
<outputDirectory>${basedir}/src/gen/java/com/inteligr8/alfresco/acs/model</outputDirectory>
|
||||
</fileset>
|
||||
</filesets>
|
||||
<allowMultiLineMatch>true</allowMultiLineMatch>
|
||||
<regexes>
|
||||
<regex>
|
||||
<pattern>(\npublic class [A-Za-z][A-Za-z0-9]* )</pattern>
|
||||
<replacement>@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)$1</replacement>
|
||||
</regex>
|
||||
</regexes>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>net.revelc.code</groupId>
|
||||
<artifactId>impsort-maven-plugin</artifactId>
|
||||
<version>1.6.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>organize-imports</id>
|
||||
<phase>process-sources</phase>
|
||||
<goals><goal>sort</goal></goals>
|
||||
<configuration>
|
||||
<directories>
|
||||
<directory>${basedir}/src/gen/java</directory>
|
||||
</directories>
|
||||
<includes>
|
||||
<include>**/*.java</include>
|
||||
</includes>
|
||||
<removeUnused>true</removeUnused>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
@ -322,7 +70,7 @@
|
||||
<executions>
|
||||
<execution>
|
||||
<id>add-gensrc</id>
|
||||
<phase>process-sources</phase>
|
||||
<phase>initialize</phase>
|
||||
<goals>
|
||||
<goal>add-source</goal>
|
||||
</goals>
|
||||
@ -334,66 +82,272 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<configuration>
|
||||
<classifier>${acs.platform.tag}</classifier>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>3.3.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>javadoc</id>
|
||||
<phase>package</phase>
|
||||
<goals><goal>jar</goal></goals>
|
||||
<configuration>
|
||||
<show>public</show>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<!-- Implement when descriptor is available -->
|
||||
<profile>
|
||||
<id>ossrh-release</id>
|
||||
<id>swagger-codegen</id>
|
||||
<properties>
|
||||
<maven.deploy.skip>true</maven.deploy.skip>
|
||||
<acs.defs.baseUrl>${acs.baseUrl}/definitions</acs.defs.baseUrl>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>source</id>
|
||||
<phase>package</phase>
|
||||
<goals><goal>jar-no-fork</goal></goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<artifactId>maven-clean-plugin</artifactId>
|
||||
<version>3.1.0</version>
|
||||
<configuration>
|
||||
<filesets>
|
||||
<fileset>
|
||||
<directory>src/gen/java</directory>
|
||||
<includes>
|
||||
<include>com/inteligr8/alfresco/acs/**/*</include>
|
||||
</includes>
|
||||
</fileset>
|
||||
</filesets>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>3.3.2</version>
|
||||
<groupId>com.googlecode.maven-download-plugin</groupId>
|
||||
<artifactId>download-maven-plugin</artifactId>
|
||||
<version>1.6.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>javadoc</id>
|
||||
<phase>package</phase>
|
||||
<goals><goal>jar</goal></goals>
|
||||
<id>download-acs-core-defs</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>wget</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<show>public</show>
|
||||
<additionalJOption>-Xdoclint:none</additionalJOption>
|
||||
<url>${acs.defs.baseUrl}/alfresco-core.yaml</url>
|
||||
<outputDirectory>${project.build.directory}/downloads</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>download-acs-search-defs</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>wget</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<url>${acs.defs.baseUrl}/alfresco-search.yaml</url>
|
||||
<outputDirectory>${project.build.directory}/downloads</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>download-acs-auth-defs</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>wget</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<url>${acs.defs.baseUrl}/alfresco-auth.yaml</url>
|
||||
<outputDirectory>${project.build.directory}/downloads</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>download-acs-discovery-defs</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>wget</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<url>${acs.defs.baseUrl}/alfresco-discovery.yaml</url>
|
||||
<outputDirectory>${project.build.directory}/downloads</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>download-acs-model-defs</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>wget</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<url>${acs.defs.baseUrl}/alfresco-model.yaml</url>
|
||||
<outputDirectory>${project.build.directory}/downloads</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-codegen-maven-plugin</artifactId>
|
||||
<version>2.4.21</version>
|
||||
<configuration>
|
||||
<language>jaxrs-cxf-client</language>
|
||||
<output>${basedir}</output>
|
||||
<apiPackage>${swagger.basePackage}.api</apiPackage>
|
||||
<modelPackage>${swagger.basePackage}.model</modelPackage>
|
||||
<invokerPackage>${swagger.basePackage}.invoker</invokerPackage>
|
||||
<generateApiTests>false</generateApiTests>
|
||||
<generateApiDocumentation>false</generateApiDocumentation>
|
||||
<generateModelTests>false</generateModelTests>
|
||||
<generateModelDocumentation>false</generateModelDocumentation>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sign</id>
|
||||
<phase>verify</phase>
|
||||
<goals><goal>sign</goal></goals>
|
||||
<id>swagger-core-codegen</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<inputSpec>${project.build.directory}/downloads/alfresco-core.yaml</inputSpec>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>swagger-search-codegen</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<inputSpec>${project.build.directory}/downloads/alfresco-search.yaml</inputSpec>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>swagger-auth-codegen</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<inputSpec>${project.build.directory}/downloads/alfresco-auth.yaml</inputSpec>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>swagger-discovery-codegen</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<inputSpec>${project.build.directory}/downloads/alfresco-discovery.yaml</inputSpec>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>swagger-model-codegen</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<skip>${api.model.disabled}</skip>
|
||||
<inputSpec>${project.build.directory}/downloads/alfresco-model.yaml</inputSpec>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.sonatype.plugins</groupId>
|
||||
<artifactId>nexus-staging-maven-plugin</artifactId>
|
||||
<version>1.6.13</version>
|
||||
<configuration>
|
||||
<serverId>ossrh</serverId>
|
||||
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
|
||||
<autoReleaseAfterClose>true</autoReleaseAfterClose>
|
||||
</configuration>
|
||||
<groupId>com.inteligr8</groupId>
|
||||
<artifactId>regex-maven-plugin</artifactId>
|
||||
<version>1.0.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>ossrh-deploy</id>
|
||||
<phase>deploy</phase>
|
||||
<goals><goal>deploy</goal></goals>
|
||||
<id>fix-baseUrl</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>replace-file</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<filesets>
|
||||
<fileset>
|
||||
<directory>${basedir}/src/gen/java/com/inteligr8/alfresco/acs/api</directory>
|
||||
<outputDirectory>${basedir}/src/gen/java/com/inteligr8/alfresco/acs/api</outputDirectory>
|
||||
</fileset>
|
||||
</filesets>
|
||||
<allowMultiLineMatch>true</allowMultiLineMatch>
|
||||
<regexes>
|
||||
<regex>
|
||||
<pattern>import org\.apache\.cxf\.jaxrs\.ext\.multipart\.\*;.*</pattern>
|
||||
<replacement></replacement>
|
||||
</regex>
|
||||
<regex>
|
||||
<pattern>(\*\*Core API\*\*[^@]*)@Path\("/"\)([^@]*)@Api\(value = "/"</pattern>
|
||||
<replacement>$1@Path("/api/-default-/public/alfresco/versions/1")$2@Api(value = "/api/-default-/public/alfresco/versions/1"</replacement>
|
||||
</regex>
|
||||
<regex>
|
||||
<pattern>(\*\*Search API\*\*[^@]*)@Path\("/"\)([^@]*)@Api\(value = "/"</pattern>
|
||||
<replacement>$1@Path("/api/-default-/public/search/versions/1")$2@Api(value = "/api/-default-/public/search/versions/1"</replacement>
|
||||
</regex>
|
||||
<regex>
|
||||
<pattern>(\*\*Model API\*\*[^@]*)@Path\("/"\)([^@]*)@Api\(value = "/"</pattern>
|
||||
<replacement>$1@Path("/api/-default-/public/alfresco/versions/1")$2@Api(value = "/api/-default-/public/alfresco/versions/1"</replacement>
|
||||
</regex>
|
||||
<regex>
|
||||
<pattern>(\*\*Authentication API\*\*[^@]*)@Path\("/"\)([^@]*)@Api\(value = "/"</pattern>
|
||||
<replacement>$1@Path("/api/-default-/public/authentication/versions/1")$2@Api(value = "/api/-default-/public/authentication/versions/1"</replacement>
|
||||
</regex>
|
||||
<regex>
|
||||
<pattern>(\*\*Discovery API\*\*[^@]*)@Path\("/"\)([^@]*)@Api\(value = "/"</pattern>
|
||||
<replacement>$1@Path("/api")$2@Api(value = "/api"</replacement>
|
||||
</regex>
|
||||
</regexes>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>add-ignoreUnknown</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>replace-file</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<filesets>
|
||||
<fileset>
|
||||
<directory>${basedir}/src/gen/java/com/inteligr8/alfresco/acs/model</directory>
|
||||
<outputDirectory>${basedir}/src/gen/java/com/inteligr8/alfresco/acs/model</outputDirectory>
|
||||
</fileset>
|
||||
</filesets>
|
||||
<allowMultiLineMatch>true</allowMultiLineMatch>
|
||||
<regexes>
|
||||
<regex>
|
||||
<pattern>(\npublic class [A-Za-z][A-Za-z0-9]* \{)</pattern>
|
||||
<replacement>@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)$1</replacement>
|
||||
</regex>
|
||||
</regexes>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>net.revelc.code</groupId>
|
||||
<artifactId>impsort-maven-plugin</artifactId>
|
||||
<version>1.6.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>organize-imports</id>
|
||||
<phase>process-sources</phase>
|
||||
<goals><goal>sort</goal></goals>
|
||||
<configuration>
|
||||
<directories>
|
||||
<directory>${basedir}/src/gen/java</directory>
|
||||
</directories>
|
||||
<includes>
|
||||
<include>**/*.java</include>
|
||||
</includes>
|
||||
<removeUnused>true</removeUnused>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
@ -401,11 +355,19 @@
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>alfresco-public</id>
|
||||
<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
|
||||
<id>inteligr8-releases</id>
|
||||
<url>https://repos.inteligr8.com/nexus/repository/inteligr8-public</url>
|
||||
<releases><enabled>true</enabled></releases>
|
||||
<snapshots><enabled>false</enabled></snapshots>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>inteligr8-snapshots</id>
|
||||
<url>https://repos.inteligr8.com/nexus/repository/inteligr8-snapshots</url>
|
||||
<releases><enabled>false</enabled></releases>
|
||||
<snapshots><enabled>true</enabled></snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
@ -414,5 +376,20 @@
|
||||
<id>mulesoft-releases</id>
|
||||
<url>https://repository.mulesoft.org/releases</url>
|
||||
</pluginRepository>
|
||||
<pluginRepository>
|
||||
<id>inteligr8-public</id>
|
||||
<url>https://repos.inteligr8.com/nexus/repository/inteligr8-public</url>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>inteligr8-releases</id>
|
||||
<url>https://repos.inteligr8.com/nexus/repository/inteligr8-public</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>inteligr8-snapshots</id>
|
||||
<url>https://repos.inteligr8.com/nexus/repository/inteligr8-snapshots</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
</project>
|
||||
|
99
src/gen/java/com/inteligr8/alfresco/acs/api/ActionsApi.java
Normal file
99
src/gen/java/com/inteligr8/alfresco/acs/api/ActionsApi.java
Normal file
@ -0,0 +1,99 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.ActionBodyExec;
|
||||
import com.inteligr8.alfresco.acs.model.ActionDefinitionEntry;
|
||||
import com.inteligr8.alfresco.acs.model.ActionDefinitionList;
|
||||
import com.inteligr8.alfresco.acs.model.ActionExecResultEntry;
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface ActionsApi {
|
||||
|
||||
/**
|
||||
* Retrieve the details of an action definition
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Retrieve the details of the action denoted by **actionDefinitionId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/action-definitions/{actionDefinitionId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Retrieve the details of an action definition", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = ActionDefinitionEntry.class),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**actionDefinitionId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public ActionDefinitionEntry actionDetails(@PathParam("actionDefinitionId") String actionDefinitionId);
|
||||
|
||||
/**
|
||||
* Execute an action
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Executes an action An action may be executed against a node specified by **targetId**. For example: ``` { \"actionDefinitionId\": \"copy\", \"targetId\": \"4c4b3c43-f18b-43ff-af84-751f16f1ddfd\", \"params\": { \"destination-folder\": \"34219f79-66fa-4ebf-b371-118598af898c\" } } ``` Performing a POST with the request body shown above will result in the node identified by ```targetId``` being copied to the destination folder specified in the ```params``` object by the key ```destination-folder```. **targetId** is optional, however, currently **targetId** must be a valid node ID. In the future, actions may be executed against different entity types or executed without the need for the context of an entity. Parameters supplied to the action within the ```params``` object will be converted to the expected type, where possible using the DefaultTypeConverter class. In addition: * Node IDs may be supplied in their short form (implicit workspace://SpacesStore prefix) * Aspect names may be supplied using their short form, e.g. cm:versionable or cm:auditable In this example, we add the aspect ```cm:versionable``` to a node using the QName resolution mentioned above: ``` { \"actionDefinitionId\": \"add-features\", \"targetId\": \"16349e3f-2977-44d1-93f2-73c12b8083b5\", \"params\": { \"aspect-name\": \"cm:versionable\" } } ``` The ```actionDefinitionId``` is the ```id``` of an action definition as returned by the _list actions_ operations (e.g. GET /action-definitions). The action will be executed **asynchronously** with a `202` HTTP response signifying that the request has been accepted successfully. The response body contains the unique ID of the action pending execution. The ID may be used, for example to correlate an execution with output in the server logs.
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/action-executions")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Execute an action", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 202, message = "Action execution request accepted and pending execution. ", response = ActionExecResultEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **actionDefinitionId** missing but required by the action "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**actionDefinitionId** or **targetId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public ActionExecResultEntry actionExec(ActionBodyExec actionBodyExec);
|
||||
|
||||
/**
|
||||
* Retrieve list of available actions
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Gets a list of all available actions The default sort order for the returned list is for actions to be sorted by ascending name. You can override the default by using the **orderBy** parameter. You can use any of the following fields to order the results: * name * title
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/action-definitions")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Retrieve list of available actions", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = ActionDefinitionList.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems**, **skipCount** or **orderBy** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public ActionDefinitionList listActions(@QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("orderBy")List<String> orderBy, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Retrieve actions for a node
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Retrieve the list of actions that may be executed against the given **nodeId**. The default sort order for the returned list is for actions to be sorted by ascending name. You can override the default by using the **orderBy** parameter. You can use any of the following fields to order the results: * name * title
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/nodes/{nodeId}/action-definitions")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Retrieve actions for a node", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = ActionDefinitionList.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems**, **skipCount** or **orderBy** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public ActionDefinitionList nodeActions(@PathParam("nodeId") String nodeId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("orderBy")List<String> orderBy, @QueryParam("fields")List<String> fields);
|
||||
}
|
||||
|
@ -0,0 +1,42 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.ActivityPaging;
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface ActivitiesApi {
|
||||
|
||||
/**
|
||||
* List activities
|
||||
*
|
||||
* Gets a list of activities for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people/{personId}/activities")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List activities", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = ActivityPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems**, **skipCount**, or **who** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have access to the activities for **personId**"),
|
||||
@ApiResponse(code = 404, message = "**personId** or **siteId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public ActivityPaging listActivitiesForPerson(@PathParam("personId") String personId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("who")String who, @QueryParam("siteId")String siteId, @QueryParam("fields")List<String> fields);
|
||||
}
|
||||
|
59
src/gen/java/com/inteligr8/alfresco/acs/api/AspectsApi.java
Normal file
59
src/gen/java/com/inteligr8/alfresco/acs/api/AspectsApi.java
Normal file
@ -0,0 +1,59 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.AspectEntry;
|
||||
import com.inteligr8.alfresco.acs.model.AspectPaging;
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Model API** Provides access to the model features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface AspectsApi {
|
||||
|
||||
/**
|
||||
* Get an aspect
|
||||
*
|
||||
* **Note:** This is available in Alfresco 7.0.0 and newer versions. Get information for aspect **aspectId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/aspects/{aspectId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get an aspect", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = AspectEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: unknown aspectId scheme specified "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**aspectId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public AspectEntry getAspect(@PathParam("aspectId") String aspectId);
|
||||
|
||||
/**
|
||||
* List aspects
|
||||
*
|
||||
* **Note:** This is available in Alfresco 7.0.0 and newer versions. Gets a list of aspects from the data dictionary. The System aspects will be ignored by default. ```JSON { \"list\": { \"pagination\": { \"count\": 0, \"hasMoreItems\": true, \"totalItems\": 0, \"skipCount\": 0, \"maxItems\": 0 }, \"entries\": [ { \"entry\": { \"associations\": [], \"mandatoryAspects\": [], \"includedInSupertypeQuery\": true, \"description\": \"Titled\", \"isContainer\": false, \"model\": { \"id\": \"cm:contentmodel\", \"author\": \"Alfresco\", \"description\": \"Alfresco Content Domain Model\", \"namespaceUri\": \"http://www.alfresco.org/model/content/1.0\", \"namespacePrefix\": \"cm\" }, \"id\": \"cm:titled\", \"title\": \"Titled\", \"properties\": [ { \"id\": \"cm:title\", \"title\": \"Title\", \"description\": \"Content Title\", \"dataType\": \"d:mltext\", \"isMultiValued\": false, \"isMandatory\": false, \"isMandatoryEnforced\": false, \"isProtected\": false }, { ... } ] } }, { \"entry\": { ... } }, { \"entry\": { ... } }, ] } } ```
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/aspects")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List aspects", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = AspectPaging.class),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public AspectPaging listAspects(@QueryParam("where")String where, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("include")List<String> include);
|
||||
}
|
||||
|
193
src/gen/java/com/inteligr8/alfresco/acs/api/AuditApi.java
Normal file
193
src/gen/java/com/inteligr8/alfresco/acs/api/AuditApi.java
Normal file
@ -0,0 +1,193 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.AuditApp;
|
||||
import com.inteligr8.alfresco.acs.model.AuditAppPaging;
|
||||
import com.inteligr8.alfresco.acs.model.AuditBodyUpdate;
|
||||
import com.inteligr8.alfresco.acs.model.AuditEntryEntry;
|
||||
import com.inteligr8.alfresco.acs.model.AuditEntryPaging;
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface AuditApi {
|
||||
|
||||
/**
|
||||
* Permanently delete audit entries for an audit application
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Permanently delete audit entries for an audit application **auditApplicationId**. The **where** clause must be specified, either with an inclusive time period or for an inclusive range of ids. The delete is within the context of the given audit application. For example: * ```where=(createdAt BETWEEN ('2017-06-02T12:13:51.593+01:00' , '2017-06-04T10:05:16.536+01:00')``` * ```where=(id BETWEEN ('1234', '4321')``` You must have admin rights to delete audit information.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/audit-applications/{auditApplicationId}/audit-entries")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Permanently delete audit entries for an audit application", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **auditApplicationId** is not a valid format or invalid **where** "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to delete audit information"),
|
||||
@ApiResponse(code = 404, message = "**auditApplicationId** does not exist "),
|
||||
@ApiResponse(code = 501, message = "Audit is disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteAuditEntriesForAuditApp(@PathParam("auditApplicationId") String auditApplicationId, @QueryParam("where")String where);
|
||||
|
||||
/**
|
||||
* Permanently delete an audit entry
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Permanently delete a single audit entry **auditEntryId**. You must have admin rights to delete audit information.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/audit-applications/{auditApplicationId}/audit-entries/{auditEntryId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Permanently delete an audit entry", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **auditApplicationId** or **auditEntryId** is not a valid format "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to delete audit information"),
|
||||
@ApiResponse(code = 404, message = "**auditApplicationId** or **auditEntryId** does not exist "),
|
||||
@ApiResponse(code = 501, message = "Audit is disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteAuditEntry(@PathParam("auditApplicationId") String auditApplicationId, @PathParam("auditEntryId") String auditEntryId);
|
||||
|
||||
/**
|
||||
* Get audit application info
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Get status of an audit application **auditApplicationId**. You must have admin rights to retrieve audit information. You can use the **include** parameter to return the minimum and/or maximum audit record id for the application.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/audit-applications/{auditApplicationId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get audit application info", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = AuditApp.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: invalid **auditApplicationId** "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to retrieve audit information"),
|
||||
@ApiResponse(code = 404, message = "**applicationId** does not exist "),
|
||||
@ApiResponse(code = 501, message = "Audit is disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public AuditApp getAuditApp(@PathParam("auditApplicationId") String auditApplicationId, @QueryParam("fields")List<String> fields, @QueryParam("include")List<String> include);
|
||||
|
||||
/**
|
||||
* Get audit entry
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Gets audit entry **auditEntryId**. You must have admin rights to access audit information.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/audit-applications/{auditApplicationId}/audit-entries/{auditEntryId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get audit entry", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = AuditEntryEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **auditApplicationId** or **auditEntryId** is not a valid format "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to retrieve audit information"),
|
||||
@ApiResponse(code = 404, message = "**auditApplicationId** or **auditEntryId** does not exist "),
|
||||
@ApiResponse(code = 501, message = "Audit is disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public AuditEntryEntry getAuditEntry(@PathParam("auditApplicationId") String auditApplicationId, @PathParam("auditEntryId") String auditEntryId, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List audit applications
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Gets a list of audit applications in this repository. This list may include pre-configured audit applications, if enabled, such as: * alfresco-access * CMISChangeLog * Alfresco Tagging Service * Alfresco Sync Service (used by Enterprise Cloud Sync) You must have admin rights to retrieve audit information.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/audit-applications")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List audit applications", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = AuditAppPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to retrieve audit information"),
|
||||
@ApiResponse(code = 501, message = "Audit is disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public AuditAppPaging listAuditApps(@QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List audit entries for an audit application
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Gets a list of audit entries for audit application **auditApplicationId**. You can use the **include** parameter to return additional **values** information. The list can be filtered by one or more of: * **createdByUser** person id * **createdAt** inclusive time period * **id** inclusive range of ids * **valuesKey** audit entry values contains the exact matching key * **valuesValue** audit entry values contains the exact matching value The default sort order is **createdAt** ascending, but you can use an optional **ASC** or **DESC** modifier to specify an ascending or descending sort order. For example, specifying ```orderBy=createdAt DESC``` returns audit entries in descending **createdAt** order. You must have admin rights to retrieve audit information.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/audit-applications/{auditApplicationId}/audit-entries")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List audit entries for an audit application", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = AuditEntryPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: *auditApplicationId** is not a valid format, value of **maxItems** or **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to retrieve audit information"),
|
||||
@ApiResponse(code = 404, message = "**applicationId** does not exist "),
|
||||
@ApiResponse(code = 501, message = "Audit is disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public AuditEntryPaging listAuditEntriesForAuditApp(@PathParam("auditApplicationId") String auditApplicationId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("omitTotalItems")@DefaultValue("false") Boolean omitTotalItems, @QueryParam("orderBy")List<String> orderBy, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("where")String where, @QueryParam("include")List<String> include, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List audit entries for a node
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Gets a list of audit entries for node **nodeId**. The list can be filtered by **createdByUser** and for a given inclusive time period. The default sort order is **createdAt** ascending, but you can use an optional **ASC** or **DESC** modifier to specify an ascending or descending sort order. For example, specifying ```orderBy=createdAt DESC``` returns audit entries in descending **createdAt** order. This relies on the pre-configured 'alfresco-access' audit application.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/nodes/{nodeId}/audit-entries")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List audit entries for a node", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = AuditEntryPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: *nodeId** is not a valid format, value of **maxItems** or **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to retrieve audit information"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
|
||||
@ApiResponse(code = 501, message = "Audit is disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public AuditEntryPaging listAuditEntriesForNode(@PathParam("nodeId") String nodeId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("orderBy")List<String> orderBy, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("where")String where, @QueryParam("include")List<String> include, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Update audit application info
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Disable or re-enable the audit application **auditApplicationId**. New audit entries will not be created for a disabled audit application until it is re-enabled (and system-wide auditing is also enabled). Note, it is still possible to query &/or delete any existing audit entries even if auditing is disabled for the audit application. You must have admin rights to update audit application.
|
||||
*
|
||||
*/
|
||||
@PUT
|
||||
@Path("/audit-applications/{auditApplicationId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Update audit application info", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = AuditApp.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **auditApplicationId** is not a valid format or **auditAppBodyUpdate** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to update audit application"),
|
||||
@ApiResponse(code = 404, message = "**auditApplicationId** does not exist "),
|
||||
@ApiResponse(code = 501, message = "Audit is disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public AuditApp updateAuditApp(@PathParam("auditApplicationId") String auditApplicationId, AuditBodyUpdate auditAppBodyUpdate, @QueryParam("fields")List<String> fields);
|
||||
}
|
||||
|
@ -0,0 +1,79 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.TicketBody;
|
||||
import com.inteligr8.alfresco.acs.model.TicketEntry;
|
||||
import com.inteligr8.alfresco.acs.model.ValidTicketEntry;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Authentication API** Provides access to the authentication features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/authentication/versions/1")
|
||||
@Api(value = "/api/-default-/public/authentication/versions/1", description = "")
|
||||
public interface AuthenticationApi {
|
||||
|
||||
/**
|
||||
* Create ticket (login)
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Logs in and returns the new authentication ticket. The userId and password properties are mandatory in the request body. For example: ```JSON { \"userId\": \"jbloggs\", \"password\": \"password\" } ``` To use the ticket in future requests you should pass it in the request header. For example using Javascript: ```Javascript request.setRequestHeader (\"Authorization\", \"Basic \" + btoa(ticket)); ```
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/tickets")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create ticket (login)", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 201, message = "Successful response", response = TicketEntry.class),
|
||||
@ApiResponse(code = 400, message = "**userId** or **password** is not provided "),
|
||||
@ApiResponse(code = 403, message = "Login failed"),
|
||||
@ApiResponse(code = 501, message = "SAML is enabled and enforced"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public TicketEntry createTicket(TicketBody ticketBodyCreate);
|
||||
|
||||
/**
|
||||
* Delete ticket (logout)
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Deletes logged in ticket (logout).
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/tickets/-me-")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Delete ticket (logout)", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 400, message = "URL path does not include **-me-** or the ticket is not provided by the Authorization header"),
|
||||
@ApiResponse(code = 404, message = "Status of the user has changed (for example, the user is locked or the account is disabled) or the ticket has expired"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteTicket();
|
||||
|
||||
/**
|
||||
* Validate ticket
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Validates the specified ticket (derived from Authorization header) is still valid. For example, you can pass the Authorization request header using Javascript: ```Javascript request.setRequestHeader (\"Authorization\", \"Basic \" + btoa(ticket)); ```
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/tickets/-me-")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Validate ticket", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = ValidTicketEntry.class),
|
||||
@ApiResponse(code = 400, message = "URL path does not include **-me-** or the ticket is not provided by the Authorization header"),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "The request is authorized correctly but the status of the user (of the supplied ticket) has changed (for example, the user is locked or the account is disabled) or the ticket has expired"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public ValidTicketEntry validateTicket();
|
||||
}
|
||||
|
107
src/gen/java/com/inteligr8/alfresco/acs/api/CommentsApi.java
Normal file
107
src/gen/java/com/inteligr8/alfresco/acs/api/CommentsApi.java
Normal file
@ -0,0 +1,107 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.CommentBody;
|
||||
import com.inteligr8.alfresco.acs.model.CommentEntry;
|
||||
import com.inteligr8.alfresco.acs.model.CommentPaging;
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface CommentsApi {
|
||||
|
||||
/**
|
||||
* Create a comment
|
||||
*
|
||||
* Creates a comment on node **nodeId**. You specify the comment in a JSON body like this: ```JSON { \"content\": \"This is a comment\" } ``` **Note:** You can create more than one comment by specifying a list of comments in the JSON body like this: ```JSON [ { \"content\": \"This is a comment\" }, { \"content\": \"This is another comment\" } ] ``` If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: ```JSON { \"list\": { \"pagination\": { \"count\": 2, \"hasMoreItems\": false, \"totalItems\": 2, \"skipCount\": 0, \"maxItems\": 100 }, \"entries\": [ { \"entry\": { ... } }, { \"entry\": { ... } } ] } } ```
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/nodes/{nodeId}/comments")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create a comment", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 201, message = "Successful response", response = CommentEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **commentBodyCreate** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to create a comment"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
|
||||
@ApiResponse(code = 405, message = "Cannot comment on a node of this type"),
|
||||
@ApiResponse(code = 409, message = "**nodeId** is locked and you are not the lock owner "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public CommentEntry createComment(@PathParam("nodeId") String nodeId, CommentBody commentBodyCreate, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Delete a comment
|
||||
*
|
||||
* Deletes the comment **commentId** from node **nodeId**.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/nodes/{nodeId}/comments/{commentId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Delete a comment", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to delete a comment"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** or **commentId** does not exist "),
|
||||
@ApiResponse(code = 409, message = "**nodeId** is locked and you are not the lock owner "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteComment(@PathParam("nodeId") String nodeId, @PathParam("commentId") String commentId);
|
||||
|
||||
/**
|
||||
* List comments
|
||||
*
|
||||
* Gets a list of comments for the node **nodeId**, sorted chronologically with the newest comment first.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/nodes/{nodeId}/comments")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List comments", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = CommentPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** exists but does not identify a file or a folder, or the value of **maxItems** is invalid, or the value of **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission read comments on the node"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public CommentPaging listComments(@PathParam("nodeId") String nodeId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Update a comment
|
||||
*
|
||||
* Updates an existing comment **commentId** on node **nodeId**.
|
||||
*
|
||||
*/
|
||||
@PUT
|
||||
@Path("/nodes/{nodeId}/comments/{commentId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Update a comment", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = CommentEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **commentBodyUpdate** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to update a comment"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** or **commentId** does not exist "),
|
||||
@ApiResponse(code = 409, message = "**nodeId** is locked and you are not the lock owner "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public CommentEntry updateComment(@PathParam("nodeId") String nodeId, @PathParam("commentId") String commentId, CommentBody commentBodyUpdate, @QueryParam("fields")List<String> fields);
|
||||
}
|
||||
|
@ -0,0 +1,37 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.DiscoveryEntry;
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Discovery API** Provides access to information about Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api")
|
||||
@Api(value = "/api", description = "")
|
||||
public interface DiscoveryApi {
|
||||
|
||||
/**
|
||||
* Get repository information
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Retrieves the capabilities and detailed version information from the repository.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/discovery")
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get repository information", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = DiscoveryEntry.class),
|
||||
@ApiResponse(code = 501, message = "Discovery is disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public DiscoveryEntry getRepositoryInformation();
|
||||
}
|
||||
|
@ -0,0 +1,80 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.DownloadBodyCreate;
|
||||
import com.inteligr8.alfresco.acs.model.DownloadEntry;
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface DownloadsApi {
|
||||
|
||||
/**
|
||||
* Cancel a download
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Cancels the creation of a download request. **Note:** The download node can be deleted using the **DELETE /nodes/{downloadId}** endpoint By default, if the download node is not deleted it will be picked up by a cleaner job which removes download nodes older than a configurable amount of time (default is 1 hour) Information about the existing progress at the time of cancelling can be retrieved by calling the **GET /downloads/{downloadId}** endpoint The cancel operation is done asynchronously.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/downloads/{downloadId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Cancel a download", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 202, message = "The request to cancel a download was accepted"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **downloadId** is invalid, or **downloadId** does not point to a node of download type "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission cancel the **downloadId** node"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void cancelDownload(@PathParam("downloadId") String downloadId);
|
||||
|
||||
/**
|
||||
* Create a new download
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Creates a new download node asynchronously, the content of which will be the zipped content of the **nodeIds** specified in the JSON body like this: ```JSON { \"nodeIds\": [ \"c8bb482a-ff3c-4704-a3a3-de1c83ccd84c\", \"cffa62db-aa01-493d-9594-058bc058eeb1\" ] } ``` **Note:** The content of the download node can be obtained using the **GET /nodes/{downloadId}/content** endpoint
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/downloads")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create a new download", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 202, message = "The request to create a download node was accepted", response = DownloadEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **DownloadBodyCreate** is invalid due to incorrect syntax, or **nodeIds** is empty, or **nodeIds** contains a duplicate **nodeId** "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to add a certain **nodeId** to the zip"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public DownloadEntry createDownload(DownloadBodyCreate downloadBodyCreate, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Get a download
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Retrieve status information for download node **downloadId**
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/downloads/{downloadId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get a download", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Download node information", response = DownloadEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **downloadId** is invalid, or **downloadId** does not point to a node of download type "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to get information about **downloadId** node"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public DownloadEntry getDownload(@PathParam("downloadId") String downloadId, @QueryParam("fields")List<String> fields);
|
||||
}
|
||||
|
182
src/gen/java/com/inteligr8/alfresco/acs/api/FavoritesApi.java
Normal file
182
src/gen/java/com/inteligr8/alfresco/acs/api/FavoritesApi.java
Normal file
@ -0,0 +1,182 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.FavoriteBodyCreate;
|
||||
import com.inteligr8.alfresco.acs.model.FavoriteEntry;
|
||||
import com.inteligr8.alfresco.acs.model.FavoritePaging;
|
||||
import com.inteligr8.alfresco.acs.model.FavoriteSiteBodyCreate;
|
||||
import com.inteligr8.alfresco.acs.model.FavoriteSiteEntry;
|
||||
import com.inteligr8.alfresco.acs.model.SiteEntry;
|
||||
import com.inteligr8.alfresco.acs.model.SitePaging;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface FavoritesApi {
|
||||
|
||||
/**
|
||||
* Create a favorite
|
||||
*
|
||||
* Favorite a **site**, **file**, or **folder** in the repository. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. **Note:** You can favorite more than one entity by specifying a list of objects in the JSON body like this: ```JSON [ { \"target\": { \"file\": { \"guid\": \"abcde-01234-....\" } } }, { \"target\": { \"file\": { \"guid\": \"abcde-09863-....\" } } }, ] ``` If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: ```JSON { \"list\": { \"pagination\": { \"count\": 2, \"hasMoreItems\": false, \"totalItems\": 2, \"skipCount\": 0, \"maxItems\": 100 }, \"entries\": [ { \"entry\": { ... } }, { \"entry\": { ... } } ] } } ```
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/people/{personId}/favorites")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create a favorite", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 201, message = "Successful response", response = FavoriteEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **favoriteBodyCreate** invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** does not exist, or the target entity does not exist, or a favorite already exists with the specified id, or an entity exists with the id of the posted object but is not of the same type of the posted object "),
|
||||
@ApiResponse(code = 409, message = "The target **guid** has already been favorited"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public FavoriteEntry createFavorite(@PathParam("personId") String personId, FavoriteBodyCreate favoriteBodyCreate, @QueryParam("include")List<String> include, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Create a site favorite
|
||||
*
|
||||
* **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future. Use `/people/{personId}/favorites` instead. Create a site favorite for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. **Note:** You can favorite more than one site by specifying a list of sites in the JSON body like this: ```JSON [ { \"id\": \"test-site-1\" }, { \"id\": \"test-site-2\" } ] ``` If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: ```JSON { \"list\": { \"pagination\": { \"count\": 2, \"hasMoreItems\": false, \"totalItems\": 2, \"skipCount\": 0, \"maxItems\": 100 }, \"entries\": [ { \"entry\": { ... } }, { \"entry\": { ... } } ] } } ```
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/people/{personId}/favorite-sites")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create a site favorite", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 201, message = "Successful response", response = FavoriteSiteEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **favoriteSiteBodyCreate** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have access to the favorite sites for **personId**"),
|
||||
@ApiResponse(code = 404, message = "**personId** does not exist "),
|
||||
@ApiResponse(code = 409, message = "**id** is already a site favorite "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public FavoriteSiteEntry createSiteFavorite(@PathParam("personId") String personId, FavoriteSiteBodyCreate favoriteSiteBodyCreate, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Delete a favorite
|
||||
*
|
||||
* Deletes **favoriteId** as a favorite of person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/people/{personId}/favorites/{favoriteId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Delete a favorite", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** or **favoriteId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteFavorite(@PathParam("personId") String personId, @PathParam("favoriteId") String favoriteId);
|
||||
|
||||
/**
|
||||
* Delete a site favorite
|
||||
*
|
||||
* **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future. Use `/people/{personId}/favorites/{favoriteId}` instead. Deletes site **siteId** from the favorite site list of person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/people/{personId}/favorite-sites/{siteId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Delete a site favorite", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have access to the favorite sites for **personId**"),
|
||||
@ApiResponse(code = 404, message = "**personId** or **siteId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteSiteFavorite(@PathParam("personId") String personId, @PathParam("siteId") String siteId);
|
||||
|
||||
/**
|
||||
* Get a favorite
|
||||
*
|
||||
* Gets favorite **favoriteId** for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people/{personId}/favorites/{favoriteId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get a favorite", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = FavoriteEntry.class),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** or **favoriteId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public FavoriteEntry getFavorite(@PathParam("personId") String personId, @PathParam("favoriteId") String favoriteId, @QueryParam("include")List<String> include, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Get a favorite site
|
||||
*
|
||||
* **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future. Use `/people/{personId}/favorites/{favoriteId}` instead. Gets information on favorite site **siteId** of person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people/{personId}/favorite-sites/{siteId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get a favorite site", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteEntry.class),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have access to the favorite sites for **personId**"),
|
||||
@ApiResponse(code = 404, message = "**personId** or **siteId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteEntry getFavoriteSite(@PathParam("personId") String personId, @PathParam("siteId") String siteId, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List favorite sites
|
||||
*
|
||||
* **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future. Use `/people/{personId}/favorites` instead. Gets a list of a person's favorite sites. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people/{personId}/favorite-sites")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List favorite sites", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SitePaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have access to the favorite sites for **personId**"),
|
||||
@ApiResponse(code = 404, message = "**personId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SitePaging listFavoriteSitesForPerson(@PathParam("personId") String personId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List favorites
|
||||
*
|
||||
* Gets a list of favorites for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. The default sort order for the returned list of favorites is type ascending, createdAt descending. You can override the default by using the **orderBy** parameter. You can use any of the following fields to order the results: * `type` * `createdAt` * `title` You can use the **where** parameter to restrict the list in the response to entries of a specific kind. The **where** parameter takes a value. The value is a single predicate that can include one or more **EXISTS** conditions. The **EXISTS** condition uses a single operand to limit the list to include entries that include that one property. The property values are: * `target/file` * `target/folder` * `target/site` For example, the following **where** parameter restricts the returned list to the file favorites for a person: ```SQL (EXISTS(target/file)) ``` You can specify more than one condition using **OR**. The predicate must be enclosed in parentheses. For example, the following **where** parameter restricts the returned list to the file and folder favorites for a person: ```SQL (EXISTS(target/file) OR EXISTS(target/folder)) ```
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people/{personId}/favorites")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List favorites", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = FavoritePaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems**, **skipCount**, **orderBy**, or **where** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** does not exist or the current user does not have permission to access the favorites of **personId** "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public FavoritePaging listFavorites(@PathParam("personId") String personId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("orderBy")List<String> orderBy, @QueryParam("where")String where, @QueryParam("include")List<String> include, @QueryParam("fields")List<String> fields);
|
||||
}
|
||||
|
209
src/gen/java/com/inteligr8/alfresco/acs/api/GroupsApi.java
Normal file
209
src/gen/java/com/inteligr8/alfresco/acs/api/GroupsApi.java
Normal file
@ -0,0 +1,209 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.GroupBodyCreate;
|
||||
import com.inteligr8.alfresco.acs.model.GroupBodyUpdate;
|
||||
import com.inteligr8.alfresco.acs.model.GroupEntry;
|
||||
import com.inteligr8.alfresco.acs.model.GroupMemberEntry;
|
||||
import com.inteligr8.alfresco.acs.model.GroupMemberPaging;
|
||||
import com.inteligr8.alfresco.acs.model.GroupMembershipBodyCreate;
|
||||
import com.inteligr8.alfresco.acs.model.GroupPaging;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface GroupsApi {
|
||||
|
||||
/**
|
||||
* Create a group
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Create a group. The group id must start with \"GROUP\\_\". If this is omitted it will be added automatically. This format is also returned when listing groups or group memberships. It should be noted that the other group-related operations also expect the id to start with \"GROUP\\_\". If one or more parentIds are specified then the group will be created and become a member of each of the specified parent groups. If no parentIds are specified then the group will be created as a root group. The group will be created in the **APP.DEFAULT** and **AUTH.ALF** zones. You must have admin rights to create a group.
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/groups")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create a group", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 201, message = "Successful response", response = GroupEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: invalid **groupBodyCreate** "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to create a group"),
|
||||
@ApiResponse(code = 404, message = "**parentIds** does not exist "),
|
||||
@ApiResponse(code = 409, message = "**id** clashes with an existing group "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public GroupEntry createGroup(GroupBodyCreate groupBodyCreate, @QueryParam("include")List<String> include, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Create a group membership
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Create a group membership (for an existing person or group) within a group **groupId**. If the added group was previously a root group then it becomes a non-root group since it now has a parent. It is an error to specify an **id** that does not exist. You must have admin rights to create a group membership.
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/groups/{groupId}/members")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create a group membership", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 201, message = "Successful response", response = GroupMemberEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **groupId** or **groupMembershipBodyCreate** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to create a group membership"),
|
||||
@ApiResponse(code = 404, message = "**groupId** or *id* (of group or person) does not exist "),
|
||||
@ApiResponse(code = 409, message = "Trying to modify a pre-defined system group, such as GROUP_EVERYONE. "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public GroupMemberEntry createGroupMembership(@PathParam("groupId") String groupId, GroupMembershipBodyCreate groupMembershipBodyCreate, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Delete a group
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Delete group **groupId**. The option to cascade delete applies this recursively to any hierarchy of group members. In this case, removing a group member does not delete the person or sub-group itself. If a removed sub-group no longer has any parent groups then it becomes a root group. You must have admin rights to delete a group.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/groups/{groupId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Delete a group", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **groupId** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to delete a group member"),
|
||||
@ApiResponse(code = 404, message = "**groupId** does not exist "),
|
||||
@ApiResponse(code = 409, message = "Trying to delete a pre-defined system group, such as GROUP_EVERYONE. "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteGroup(@PathParam("groupId") String groupId, @QueryParam("cascade")@DefaultValue("false") Boolean cascade);
|
||||
|
||||
/**
|
||||
* Delete a group membership
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Delete group member **groupMemberId** (person or sub-group) from group **groupId**. Removing a group member does not delete the person or sub-group itself. If a removed sub-group no longer has any parent groups then it becomes a root group. You must have admin rights to delete a group membership.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/groups/{groupId}/members/{groupMemberId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Delete a group membership", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **groupId**, or **groupMemberId** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to delete a group membership"),
|
||||
@ApiResponse(code = 404, message = "**groupId** or **groupMemberId** does not exist "),
|
||||
@ApiResponse(code = 409, message = "Trying to delete a member of a pre-defined system group, such as GROUP_EVERYONE "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteGroupMembership(@PathParam("groupId") String groupId, @PathParam("groupMemberId") String groupMemberId);
|
||||
|
||||
/**
|
||||
* Get group details
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Get details for group **groupId**. You can use the **include** parameter to return additional information.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/groups/{groupId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get group details", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = GroupEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: invalid **groupId** "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**groupId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public GroupEntry getGroup(@PathParam("groupId") String groupId, @QueryParam("include")List<String> include, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List memberships of a group
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Gets a list of the group memberships for the group **groupId**. You can use the **where** parameter to filter the returned groups by **memberType**. Example to filter by **memberType**, use any one of: ``` (memberType='GROUP') (memberType='PERSON') ``` The default sort order for the returned list is for group members to be sorted by ascending displayName. You can override the default by using the **orderBy** parameter. You can specify one of the following fields in the **orderBy** parameter: * id * displayName
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/groups/{groupId}/members")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List memberships of a group", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = GroupMemberPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems**, **skipCount**, **orderBy**, or **where** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**groupId** does not exist "),
|
||||
@ApiResponse(code = 405, message = "Trying to list all members of a pre-defined system group, such as GROUP_EVERYONE "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public GroupMemberPaging listGroupMemberships(@PathParam("groupId") String groupId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("orderBy")List<String> orderBy, @QueryParam("where")String where, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List group memberships
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Gets a list of group membership information for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. You can use the **include** parameter to return additional information. You can use the **where** parameter to filter the returned groups by **isRoot**. For example, the following **where** clause will return just the root groups: ``` (isRoot=true) ``` The **where** parameter can also be used to filter by ***zone***. This may be combined with isRoot to narrow a result set even further. For example, the following where clause will only return groups belonging to the `MY.ZONE` zone. ``` where=(zones in ('MY.ZONE')) ``` This may be combined with the isRoot filter, as shown below: ``` where=(isRoot=false AND zones in ('MY.ZONE')) ``` ***Note:*** restrictions include * `AND` is the only supported operator when combining `isRoot` and `zones` filters * Only one zone is supported by the filter * The quoted zone name must be placed in parenthesis — a 400 error will result if these are omitted. The default sort order for the returned list is for groups to be sorted by ascending displayName. You can override the default by using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter: * id * displayName
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people/{personId}/groups")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List group memberships", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = GroupPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems**, **skipCount**, **orderBy** or **personId** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public GroupPaging listGroupMembershipsForPerson(@PathParam("personId") String personId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("orderBy")List<String> orderBy, @QueryParam("include")List<String> include, @QueryParam("where")String where, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List groups
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Gets a list of groups. You can use the **include** parameter to return additional information. You can use the **where** parameter to filter the returned groups by **isRoot**. For example, the following **where** clause will return just the root groups: ``` (isRoot=true) ``` The **where** parameter can also be used to filter by ***zone*** and ***displayName***. They may be combined with isRoot to narrow a result set even further. For example, the following where clause will only return groups belonging to the `MY.ZONE` zone. ``` where=(zones in ('MY.ZONE')) ``` This may be combined with the isRoot filter, as shown below: ``` where=(isRoot=false AND zones in ('MY.ZONE')) ``` The following where clause will only return groups with displayName `MY.GROUP.NAME`. ``` where=(displayName in ('MY.GROUP.NAME')) ``` This may be combined with the isRoot and zones filter, as shown below: ``` where=(isRoot=false AND displayName in ('MY.GROUP.NAME')) ``` ``` where=(zones in ('MY.ZONE') AND displayName in ('MY.GROUP.NAME')) ``` ``` where=(isRoot=false AND zones in ('MY.ZONE') AND displayName in ('MY.GROUP.NAME')) ``` ***Note:*** restrictions include * `AND` is the only supported operator when combining `isRoot`, `zones` and `displayName` filters * Only one zone is supported by the filter * Only one displayName is supported by the filter * The quoted zone name and displayName must be placed in parenthesis — a 400 error will result if these are omitted. The default sort order for the returned list is for groups to be sorted by ascending displayName. You can override the default by using the **orderBy** parameter. You can specify one of the following fields in the **orderBy** parameter: * id * displayName
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/groups")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List groups", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = GroupPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount**, or **orderBy**, or **where** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public GroupPaging listGroups(@QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("orderBy")List<String> orderBy, @QueryParam("include")List<String> include, @QueryParam("where")String where, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Update group details
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Update details (displayName) for group **groupId**. You must have admin rights to update a group.
|
||||
*
|
||||
*/
|
||||
@PUT
|
||||
@Path("/groups/{groupId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Update group details", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = GroupEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **groupId** or **groupBodyCreate** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to update a group"),
|
||||
@ApiResponse(code = 404, message = "**groupId** does not exist "),
|
||||
@ApiResponse(code = 409, message = "Trying to modify a pre-defined system group, such as GROUP_EVERYONE "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public GroupEntry updateGroup(@PathParam("groupId") String groupId, GroupBodyUpdate groupBodyUpdate, @QueryParam("include")List<String> include, @QueryParam("fields")List<String> fields);
|
||||
}
|
||||
|
78
src/gen/java/com/inteligr8/alfresco/acs/api/NetworksApi.java
Normal file
78
src/gen/java/com/inteligr8/alfresco/acs/api/NetworksApi.java
Normal file
@ -0,0 +1,78 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.PersonNetworkEntry;
|
||||
import com.inteligr8.alfresco.acs.model.PersonNetworkPaging;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface NetworksApi {
|
||||
|
||||
/**
|
||||
* Get a network
|
||||
*
|
||||
* Gets information for a network **networkId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/networks/{networkId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get a network", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = PersonNetworkEntry.class),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**networkId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public PersonNetworkEntry getNetwork(@PathParam("networkId") String networkId, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Get network information
|
||||
*
|
||||
* Gets network information on a single network specified by **networkId** for **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people/{personId}/networks/{networkId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get network information", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = PersonNetworkEntry.class),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** or **networkId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public PersonNetworkEntry getNetworkForPerson(@PathParam("personId") String personId, @PathParam("networkId") String networkId, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List network membership
|
||||
*
|
||||
* Gets a list of network memberships for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people/{personId}/networks")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List network membership", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = PersonNetworkPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public PersonNetworkPaging listNetworksForPerson(@PathParam("personId") String personId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields);
|
||||
}
|
||||
|
453
src/gen/java/com/inteligr8/alfresco/acs/api/NodesApi.java
Normal file
453
src/gen/java/com/inteligr8/alfresco/acs/api/NodesApi.java
Normal file
File diff suppressed because one or more lines are too long
201
src/gen/java/com/inteligr8/alfresco/acs/api/PeopleApi.java
Normal file
201
src/gen/java/com/inteligr8/alfresco/acs/api/PeopleApi.java
Normal file
@ -0,0 +1,201 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.ClientBody;
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.PasswordResetBody;
|
||||
import com.inteligr8.alfresco.acs.model.PersonBodyCreate;
|
||||
import com.inteligr8.alfresco.acs.model.PersonBodyUpdate;
|
||||
import com.inteligr8.alfresco.acs.model.PersonEntry;
|
||||
import com.inteligr8.alfresco.acs.model.PersonPaging;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.io.File;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface PeopleApi {
|
||||
|
||||
/**
|
||||
* Create person
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Create a person. If applicable, the given person's login access can also be optionally disabled. You must have admin rights to create a person. You can set custom properties when you create a person: ```JSON { \"id\": \"abeecher\", \"firstName\": \"Alice\", \"lastName\": \"Beecher\", \"displayName\": \"Alice Beecher\", \"email\": \"abeecher@example.com\", \"password\": \"secret\", \"properties\": { \"my:property\": \"The value\" } } ``` **Note:** setting properties of type d:content and d:category are not supported.
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/people")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create person", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 201, message = "Successful response", response = PersonEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **personBodyCreate** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to create a person"),
|
||||
@ApiResponse(code = 409, message = "Person within given *id* already exists"),
|
||||
@ApiResponse(code = 422, message = "Model integrity exception"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public PersonEntry createPerson(PersonBodyCreate personBodyCreate, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Delete avatar image
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Deletes the avatar image related to person **personId**. You must be the person or have admin rights to update a person's avatar. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/people/{personId}/avatar")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Delete avatar image", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to delete the avatar image for **personId**"),
|
||||
@ApiResponse(code = 404, message = "**personId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteAvatarImage(@PathParam("personId") String personId);
|
||||
|
||||
/**
|
||||
* Get avatar image
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Gets the avatar image related to the person **personId**. If the person has no related avatar then the **placeholder** query parameter can be optionally used to request a placeholder image to be returned. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people/{personId}/avatar")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/octet-stream" })
|
||||
@ApiOperation(value = "Get avatar image", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = File.class),
|
||||
@ApiResponse(code = 304, message = "Content has not been modified since the date provided in the If-Modified-Since header"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **personId** is not a valid format "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** does not exist or avatar does not exist (and no placeholder requested) "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public File getAvatarImage(@PathParam("personId") String personId, @QueryParam("attachment")@DefaultValue("true") Boolean attachment, @HeaderParam("If-Modified-Since") Date ifModifiedSince, @QueryParam("placeholder")@DefaultValue("true") Boolean placeholder);
|
||||
|
||||
/**
|
||||
* Get a person
|
||||
*
|
||||
* Gets information for the person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people/{personId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get a person", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = PersonEntry.class),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public PersonEntry getPerson(@PathParam("personId") String personId, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List people
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. List people. You can use the **include** parameter to return any additional information. The default sort order for the returned list is for people to be sorted by ascending id. You can override the default by using the **orderBy** parameter. You can use any of the following fields to order the results: * id * firstName * lastName
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List people", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = PersonPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems**, **skipCount** or **orderBy** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public PersonPaging listPeople(@QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("orderBy")List<String> orderBy, @QueryParam("include")List<String> include, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Request password reset
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Initiates the reset password workflow to send an email with reset password instruction to the user's registered email. The client is mandatory in the request body. For example: ```JSON { \"client\": \"myClient\" } ``` **Note:** The client must be registered before this API can send an email. See [server documentation]. However, out-of-the-box share is registered as a default client, so you could pass **share** as the client name: ```JSON { \"client\": \"share\" } ``` **Note:** No authentication is required to call this endpoint.
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/people/{personId}/request-password-reset")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Request password reset", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 202, message = "Successful response or even when the **personId** does not exist or the user is disabled by an Administrator "),
|
||||
@ApiResponse(code = 404, message = "**client** is not registered ") })
|
||||
public void requestPasswordReset(@PathParam("personId") String personId, ClientBody clientBody);
|
||||
|
||||
/**
|
||||
* Reset password
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Resets user's password The password, id and key properties are mandatory in the request body. For example: ```JSON { \"password\":\"newPassword\", \"id\":\"activiti$10\", \"key\":\"4dad6d00-0daf-413a-b200-f64af4e12345\" } ``` **Note:** No authentication is required to call this endpoint.
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/people/{personId}/reset-password")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Reset password", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 202, message = "Successful response or even when no workflow instance is found with the given **id** or the workflow instance is invalid (already been used or expired) or the given **personId** does not match the person's id requesting the password reset or the given workflow **key** does not match the recovered key. "),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: Value of **password**, **id** or **key** is invalid ") })
|
||||
public void resetPassword(@PathParam("personId") String personId, PasswordResetBody passwordResetBody);
|
||||
|
||||
/**
|
||||
* Update avatar image
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Updates the avatar image related to the person **personId**. The request body should be the binary stream for the avatar image. The content type of the file should be an image file. This will be used to generate an \"avatar\" thumbnail rendition. You must be the person or have admin rights to update a person's avatar. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@PUT
|
||||
@Path("/people/{personId}/avatar")
|
||||
@Consumes({ "application/octet-stream" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Update avatar image", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **personId** is not a valid format or the avatar cannot be uploaded "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to update the avatar image for **personId**"),
|
||||
@ApiResponse(code = 404, message = "**personId** does not exist "),
|
||||
@ApiResponse(code = 413, message = "Content exceeds individual file size limit (configured for network/system)"),
|
||||
@ApiResponse(code = 501, message = "Renditions/thumbnails are disabled for the system"),
|
||||
@ApiResponse(code = 507, message = "Content exceeds overall storage quota limit configured for the network/system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void updateAvatarImage(@PathParam("personId") String personId, byte[] contentBodyUpdate);
|
||||
|
||||
/**
|
||||
* Update person
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Update the given person's details. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. If applicable, the given person's login access can also be optionally disabled or re-enabled. You must have admin rights to update a person — unless updating your own details. If you are changing your password, as a non-admin user, then the existing password must also be supplied (using the oldPassword field in addition to the new password value). Admin users cannot be disabled by setting enabled to false. Non-admin users may not disable themselves. You can set custom properties when you update a person: ```JSON { \"firstName\": \"Alice\", \"properties\": { \"my:property\": \"The value\" } } ``` **Note:** setting properties of type d:content and d:category are not supported.
|
||||
*
|
||||
*/
|
||||
@PUT
|
||||
@Path("/people/{personId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Update person", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = PersonEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: the update request is invalid or **personId** is not a valid format or **personBodyUpdate** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to update a person"),
|
||||
@ApiResponse(code = 404, message = "**personId** does not exist "),
|
||||
@ApiResponse(code = 422, message = "Model integrity exception"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public PersonEntry updatePerson(@PathParam("personId") String personId, PersonBodyUpdate personBodyUpdate, @QueryParam("fields")List<String> fields);
|
||||
}
|
||||
|
@ -0,0 +1,62 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.PreferenceEntry;
|
||||
import com.inteligr8.alfresco.acs.model.PreferencePaging;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface PreferencesApi {
|
||||
|
||||
/**
|
||||
* Get a preference
|
||||
*
|
||||
* Gets a specific preference for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people/{personId}/preferences/{preferenceName}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get a preference", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = PreferenceEntry.class),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have access to the preferences for **personId**"),
|
||||
@ApiResponse(code = 404, message = "**personId** or **preferenceName** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public PreferenceEntry getPreference(@PathParam("personId") String personId, @PathParam("preferenceName") String preferenceName, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List preferences
|
||||
*
|
||||
* Gets a list of preferences for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. Note that each preference consists of an **id** and a **value**. The **value** can be of any JSON type.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people/{personId}/preferences")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List preferences", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = PreferencePaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have access to the preferences for **personId**"),
|
||||
@ApiResponse(code = 404, message = "**personId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public PreferencePaging listPreferences(@PathParam("personId") String personId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields);
|
||||
}
|
||||
|
39
src/gen/java/com/inteligr8/alfresco/acs/api/ProbesApi.java
Normal file
39
src/gen/java/com/inteligr8/alfresco/acs/api/ProbesApi.java
Normal file
@ -0,0 +1,39 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.ProbeEntry;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface ProbesApi {
|
||||
|
||||
/**
|
||||
* Check readiness and liveness of the repository
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 6.0 and newer versions. Returns a status of 200 to indicate success and 503 for failure. The readiness probe is normally only used to check repository startup. The liveness probe should then be used to check the repository is still responding to requests. **Note:** No authentication is required to call this endpoint.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/probes/{probeId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Check readiness and liveness of the repository", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = ProbeEntry.class),
|
||||
@ApiResponse(code = 404, message = "**probeId** does not exist "),
|
||||
@ApiResponse(code = 503, message = "Service Unavailable - Probe failure status."),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public ProbeEntry getProbe(@PathParam("probeId") String probeId);
|
||||
}
|
||||
|
79
src/gen/java/com/inteligr8/alfresco/acs/api/QueriesApi.java
Normal file
79
src/gen/java/com/inteligr8/alfresco/acs/api/QueriesApi.java
Normal file
@ -0,0 +1,79 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.NodePaging;
|
||||
import com.inteligr8.alfresco.acs.model.PersonPaging;
|
||||
import com.inteligr8.alfresco.acs.model.SitePaging;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface QueriesApi {
|
||||
|
||||
/**
|
||||
* Find nodes
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of nodes that match the given search criteria. The search term is used to look for nodes that match against name, title, description, full text content or tags. The search term: - must contain a minimum of 3 alphanumeric characters - allows \"quoted term\" - can optionally use '*' for wildcard matching By default, file and folder types will be searched unless a specific type is provided as a query parameter. By default, the search will be across the repository unless a specific root node id is provided to start the search from. You can sort the result list using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter: * name * modifiedAt * createdAt
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/queries/nodes")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Find nodes", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = NodePaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid, or search **term** too short, or **nodeType** unknown, or **orderBy** invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**rootNodeId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public NodePaging findNodes(@QueryParam("term")String term, @QueryParam("rootNodeId")String rootNodeId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("nodeType")String nodeType, @QueryParam("include")List<String> include, @QueryParam("orderBy")List<String> orderBy, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Find people
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of people that match the given search criteria. The search term is used to look for matches against person id, firstname and lastname. The search term: - must contain a minimum of 2 alphanumeric characters - can optionally use '*' for wildcard matching within the term You can sort the result list using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter: * id * firstName * lastName
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/queries/people")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Find people", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = PersonPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid, or search **term** too short, or **orderBy** invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public PersonPaging findPeople(@QueryParam("term")String term, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields, @QueryParam("orderBy")List<String> orderBy);
|
||||
|
||||
/**
|
||||
* Find sites
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of sites that match the given search criteria. The search term is used to look for sites that match against site id, title or description. The search term: - must contain a minimum of 2 alphanumeric characters - can optionally use '*' for wildcard matching within the term The default sort order for the returned list is for sites to be sorted by ascending id. You can override the default by using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter: * id * title * description
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/queries/sites")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Find sites", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SitePaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid, or search **term** too short, or **orderBy** invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SitePaging findSites(@QueryParam("term")String term, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("orderBy")List<String> orderBy, @QueryParam("fields")List<String> fields);
|
||||
}
|
||||
|
101
src/gen/java/com/inteligr8/alfresco/acs/api/RatingsApi.java
Normal file
101
src/gen/java/com/inteligr8/alfresco/acs/api/RatingsApi.java
Normal file
@ -0,0 +1,101 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.RatingBody;
|
||||
import com.inteligr8.alfresco.acs.model.RatingEntry;
|
||||
import com.inteligr8.alfresco.acs.model.RatingPaging;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface RatingsApi {
|
||||
|
||||
/**
|
||||
* Create a rating
|
||||
*
|
||||
* Create a rating for the node with identifier **nodeId**
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/nodes/{nodeId}/ratings")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create a rating", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 201, message = "Successful response", response = RatingEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **ratingBodyCreate** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
|
||||
@ApiResponse(code = 405, message = "Cannot rate a node of this type"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public RatingEntry createRating(@PathParam("nodeId") String nodeId, RatingBody ratingBodyCreate, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Delete a rating
|
||||
*
|
||||
* Deletes rating **ratingId** from node **nodeId**.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/nodes/{nodeId}/ratings/{ratingId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Delete a rating", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: unknown rating scheme specified "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteRating(@PathParam("nodeId") String nodeId, @PathParam("ratingId") String ratingId);
|
||||
|
||||
/**
|
||||
* Get a rating
|
||||
*
|
||||
* Get the specific rating **ratingId** on node **nodeId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/nodes/{nodeId}/ratings/{ratingId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get a rating", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = RatingEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: unknown rating scheme specified "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public RatingEntry getRating(@PathParam("nodeId") String nodeId, @PathParam("ratingId") String ratingId, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List ratings
|
||||
*
|
||||
* Gets a list of ratings for node **nodeId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/nodes/{nodeId}/ratings")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List ratings", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = RatingPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public RatingPaging listRatings(@PathParam("nodeId") String nodeId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields);
|
||||
}
|
||||
|
111
src/gen/java/com/inteligr8/alfresco/acs/api/RenditionsApi.java
Normal file
111
src/gen/java/com/inteligr8/alfresco/acs/api/RenditionsApi.java
Normal file
@ -0,0 +1,111 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.RenditionBodyCreate;
|
||||
import com.inteligr8.alfresco.acs.model.RenditionEntry;
|
||||
import com.inteligr8.alfresco.acs.model.RenditionPaging;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.io.File;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface RenditionsApi {
|
||||
|
||||
/**
|
||||
* Create rendition
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. An asynchronous request to create a rendition for file **nodeId**. The rendition is specified by name **id** in the request body: ```JSON { \"id\":\"doclib\" } ``` Multiple names may be specified as a comma separated list or using a list format: ```JSON [ { \"id\": \"doclib\" }, { \"id\": \"avatar\" } ] ```
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/nodes/{nodeId}/renditions")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create rendition", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 202, message = "Request accepted"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format or is not a file or **renditionBodyCreate** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** or **renditionId** does not exist "),
|
||||
@ApiResponse(code = 409, message = "All requested renditions already exist"),
|
||||
@ApiResponse(code = 501, message = "Renditions/thumbnails are disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void createRendition(@PathParam("nodeId") String nodeId, RenditionBodyCreate renditionBodyCreate);
|
||||
|
||||
/**
|
||||
* Get rendition information
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the rendition information for **renditionId** of file **nodeId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/nodes/{nodeId}/renditions/{renditionId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get rendition information", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = RenditionEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or is not a file, or **renditionId** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** or **renditionId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public RenditionEntry getRendition(@PathParam("nodeId") String nodeId, @PathParam("renditionId") String renditionId);
|
||||
|
||||
/**
|
||||
* Get rendition content
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the rendition content for **renditionId** of file **nodeId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/nodes/{nodeId}/renditions/{renditionId}/content")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/octet-stream" })
|
||||
@ApiOperation(value = "Get rendition content", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = File.class),
|
||||
@ApiResponse(code = 206, message = "Partial Content"),
|
||||
@ApiResponse(code = 304, message = "Content has not been modified since the date provided in the If-Modified-Since header"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or is not a file, or **renditionId** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** or **renditionId** does not exist "),
|
||||
@ApiResponse(code = 416, message = "Range Not Satisfiable"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public File getRenditionContent(@PathParam("nodeId") String nodeId, @PathParam("renditionId") String renditionId, @QueryParam("attachment")@DefaultValue("true") Boolean attachment, @HeaderParam("If-Modified-Since") Date ifModifiedSince, @HeaderParam("Range") String range, @QueryParam("placeholder")@DefaultValue("false") Boolean placeholder);
|
||||
|
||||
/**
|
||||
* List renditions
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of the rendition information for each rendition of the the file **nodeId**, including the rendition id. Each rendition returned has a **status**: CREATED means it is available to view or download, NOT_CREATED means the rendition can be requested. You can use the **where** parameter to filter the returned renditions by **status**. For example, the following **where** clause will return just the CREATED renditions: ``` (status='CREATED') ```
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/nodes/{nodeId}/renditions")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List renditions", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = RenditionPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, is not a file, or **where** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public RenditionPaging listRenditions(@PathParam("nodeId") String nodeId, @QueryParam("where")String where);
|
||||
}
|
||||
|
38
src/gen/java/com/inteligr8/alfresco/acs/api/SearchApi.java
Normal file
38
src/gen/java/com/inteligr8/alfresco/acs/api/SearchApi.java
Normal file
File diff suppressed because one or more lines are too long
212
src/gen/java/com/inteligr8/alfresco/acs/api/SharedLinksApi.java
Normal file
212
src/gen/java/com/inteligr8/alfresco/acs/api/SharedLinksApi.java
Normal file
@ -0,0 +1,212 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.RenditionEntry;
|
||||
import com.inteligr8.alfresco.acs.model.RenditionPaging;
|
||||
import com.inteligr8.alfresco.acs.model.SharedLinkBodyCreate;
|
||||
import com.inteligr8.alfresco.acs.model.SharedLinkBodyEmail;
|
||||
import com.inteligr8.alfresco.acs.model.SharedLinkEntry;
|
||||
import com.inteligr8.alfresco.acs.model.SharedLinkPaging;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.io.File;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface SharedLinksApi {
|
||||
|
||||
/**
|
||||
* Create a shared link to a file
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Create a shared link to the file **nodeId** in the request body. Also, an optional expiry date could be set, so the shared link would become invalid when the expiry date is reached. For example: ```JSON { \"nodeId\": \"1ff9da1a-ee2f-4b9c-8c34-3333333333\", \"expiresAt\": \"2017-03-23T23:00:00.000+0000\" } ``` **Note:** You can create shared links to more than one file specifying a list of **nodeId**s in the JSON body like this: ```JSON [ { \"nodeId\": \"1ff9da1a-ee2f-4b9c-8c34-4444444444\" }, { \"nodeId\": \"1ff9da1a-ee2f-4b9c-8c34-5555555555\" } ] ``` If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: ```JSON { \"list\": { \"pagination\": { \"count\": 2, \"hasMoreItems\": false, \"totalItems\": 2, \"skipCount\": 0, \"maxItems\": 100 }, \"entries\": [ { \"entry\": { ... } }, { \"entry\": { ... } } ] } } ```
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/shared-links")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create a shared link to a file", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SharedLinkEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or does not identify a file, or **sharedLinkBodyCreate** invalid, or the specified expiry date is invalid. E.g. the expiry date has already passed "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to create **sharedId** (for example, no read permission)"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
|
||||
@ApiResponse(code = 409, message = "Shared link already exists for **nodeId**"),
|
||||
@ApiResponse(code = 501, message = "Shared links are disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SharedLinkEntry createSharedLink(SharedLinkBodyCreate sharedLinkBodyCreate, @QueryParam("include")List<String> include, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Deletes a shared link
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Deletes the shared link with identifier **sharedId**.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/shared-links/{sharedId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Deletes a shared link", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **sharedId** is not a valid format "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to delete **sharedId**"),
|
||||
@ApiResponse(code = 404, message = "**sharedId** does not exist "),
|
||||
@ApiResponse(code = 501, message = "Shared links are disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteSharedLink(@PathParam("sharedId") String sharedId);
|
||||
|
||||
/**
|
||||
* Email shared link
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Sends email with app-specific url including identifier **sharedId**. The client and recipientEmails properties are mandatory in the request body. For example, to email a shared link with minimum info: ```JSON { \"client\": \"myClient\", \"recipientEmails\": [\"john.doe@acme.com\", \"joe.bloggs@acme.com\"] } ``` A plain text message property can be optionally provided in the request body to customise the sent email. Also, a locale property can be optionally provided in the request body to send the emails in a particular language (if the locale is supported by Alfresco). For example, to email a shared link with a messages and a locale: ```JSON { \"client\": \"myClient\", \"recipientEmails\": [\"john.doe@acme.com\", \"joe.bloggs@acme.com\"], \"message\": \"myMessage\", \"locale\":\"en-GB\" } ``` **Note:** The client must be registered before you can send a shared link email. See [server documentation]. However, out-of-the-box share is registered as a default client, so you could pass **share** as the client name: ```JSON { \"client\": \"share\", \"recipientEmails\": [\"john.doe@acme.com\"] } ```
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/shared-links/{sharedId}/email")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Email shared link", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 202, message = "Successful response"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **sharedId** is not a valid format or **sharedLinkBodyEmail** invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**sharedId** does not exist or **client** is not registered "),
|
||||
@ApiResponse(code = 501, message = "Shared links are disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void emailSharedLink(@PathParam("sharedId") String sharedId, SharedLinkBodyEmail sharedLinkBodyEmail);
|
||||
|
||||
/**
|
||||
* Get a shared link
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets minimal information for the file with shared link identifier **sharedId**. **Note:** No authentication is required to call this endpoint.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/shared-links/{sharedId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get a shared link", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SharedLinkEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **sharedId** is not a valid format "),
|
||||
@ApiResponse(code = 404, message = "**sharedId** does not exist "),
|
||||
@ApiResponse(code = 501, message = "Shared links are disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SharedLinkEntry getSharedLink(@PathParam("sharedId") String sharedId, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Get shared link content
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the content of the file with shared link identifier **sharedId**. **Note:** No authentication is required to call this endpoint.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/shared-links/{sharedId}/content")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/octet-stream" })
|
||||
@ApiOperation(value = "Get shared link content", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = File.class),
|
||||
@ApiResponse(code = 206, message = "Partial Content"),
|
||||
@ApiResponse(code = 304, message = "Content has not been modified since the date provided in the If-Modified-Since header"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **sharedId** is not a valid format "),
|
||||
@ApiResponse(code = 404, message = "**sharedId** does not exist "),
|
||||
@ApiResponse(code = 416, message = "Range Not Satisfiable"),
|
||||
@ApiResponse(code = 501, message = "Shared links are disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public File getSharedLinkContent(@PathParam("sharedId") String sharedId, @QueryParam("attachment")@DefaultValue("true") Boolean attachment, @HeaderParam("If-Modified-Since") Date ifModifiedSince, @HeaderParam("Range") String range);
|
||||
|
||||
/**
|
||||
* Get shared link rendition information
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets rendition information for the file with shared link identifier **sharedId**. This API method returns rendition information where the rendition status is CREATED, which means the rendition is available to view/download. **Note:** No authentication is required to call this endpoint.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/shared-links/{sharedId}/renditions/{renditionId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get shared link rendition information", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = RenditionEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **sharedId** is not a valid format, or **renditionId** is invalid "),
|
||||
@ApiResponse(code = 404, message = "**sharedId** or **renditionId** does not exist (ie. not CREATED) "),
|
||||
@ApiResponse(code = 501, message = "Shared links are disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public RenditionEntry getSharedLinkRendition(@PathParam("sharedId") String sharedId, @PathParam("renditionId") String renditionId);
|
||||
|
||||
/**
|
||||
* Get shared link rendition content
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the rendition content for file with shared link identifier **sharedId**. **Note:** No authentication is required to call this endpoint.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/shared-links/{sharedId}/renditions/{renditionId}/content")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/octet-stream" })
|
||||
@ApiOperation(value = "Get shared link rendition content", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = File.class),
|
||||
@ApiResponse(code = 206, message = "Partial Content"),
|
||||
@ApiResponse(code = 304, message = "Content has not been modified since the date provided in the If-Modified-Since header"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **sharedId** is not a valid format, or **renditionId** is invalid "),
|
||||
@ApiResponse(code = 404, message = "**sharedId** does not exist "),
|
||||
@ApiResponse(code = 416, message = "Range Not Satisfiable"),
|
||||
@ApiResponse(code = 501, message = "Shared links are disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public File getSharedLinkRenditionContent(@PathParam("sharedId") String sharedId, @PathParam("renditionId") String renditionId, @QueryParam("attachment")@DefaultValue("true") Boolean attachment, @HeaderParam("If-Modified-Since") Date ifModifiedSince, @HeaderParam("Range") String range);
|
||||
|
||||
/**
|
||||
* List renditions for a shared link
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of the rendition information for the file with shared link identifier **sharedId**. This API method returns rendition information, including the rendition id, for each rendition where the rendition status is CREATED, which means the rendition is available to view/download. **Note:** No authentication is required to call this endpoint.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/shared-links/{sharedId}/renditions")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List renditions for a shared link", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = RenditionPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **sharedId** is not a valid format "),
|
||||
@ApiResponse(code = 404, message = "**sharedId** does not exist "),
|
||||
@ApiResponse(code = 501, message = "Shared links are disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public RenditionPaging listSharedLinkRenditions(@PathParam("sharedId") String sharedId);
|
||||
|
||||
/**
|
||||
* List shared links
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Get a list of links that the current user has read permission on source node. The list is ordered in descending modified order. **Note:** The list of links is eventually consistent so newly created shared links may not appear immediately.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/shared-links")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List shared links", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SharedLinkPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 501, message = "Shared links are disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SharedLinkPaging listSharedLinks(@QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("where")String where, @QueryParam("include")List<String> include, @QueryParam("fields")List<String> fields);
|
||||
}
|
||||
|
575
src/gen/java/com/inteligr8/alfresco/acs/api/SitesApi.java
Normal file
575
src/gen/java/com/inteligr8/alfresco/acs/api/SitesApi.java
Normal file
@ -0,0 +1,575 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.SiteBodyCreate;
|
||||
import com.inteligr8.alfresco.acs.model.SiteBodyUpdate;
|
||||
import com.inteligr8.alfresco.acs.model.SiteContainerEntry;
|
||||
import com.inteligr8.alfresco.acs.model.SiteContainerPaging;
|
||||
import com.inteligr8.alfresco.acs.model.SiteEntry;
|
||||
import com.inteligr8.alfresco.acs.model.SiteGroupEntry;
|
||||
import com.inteligr8.alfresco.acs.model.SiteGroupPaging;
|
||||
import com.inteligr8.alfresco.acs.model.SiteMemberEntry;
|
||||
import com.inteligr8.alfresco.acs.model.SiteMemberPaging;
|
||||
import com.inteligr8.alfresco.acs.model.SiteMembershipApprovalBody;
|
||||
import com.inteligr8.alfresco.acs.model.SiteMembershipBodyCreate;
|
||||
import com.inteligr8.alfresco.acs.model.SiteMembershipBodyUpdate;
|
||||
import com.inteligr8.alfresco.acs.model.SiteMembershipRejectionBody;
|
||||
import com.inteligr8.alfresco.acs.model.SiteMembershipRequestBodyCreate;
|
||||
import com.inteligr8.alfresco.acs.model.SiteMembershipRequestBodyUpdate;
|
||||
import com.inteligr8.alfresco.acs.model.SiteMembershipRequestEntry;
|
||||
import com.inteligr8.alfresco.acs.model.SiteMembershipRequestPaging;
|
||||
import com.inteligr8.alfresco.acs.model.SiteMembershipRequestWithPersonPaging;
|
||||
import com.inteligr8.alfresco.acs.model.SitePaging;
|
||||
import com.inteligr8.alfresco.acs.model.SiteRoleEntry;
|
||||
import com.inteligr8.alfresco.acs.model.SiteRolePaging;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface SitesApi {
|
||||
|
||||
/**
|
||||
* Approve a site membership request
|
||||
*
|
||||
* Approve a site membership request.
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/sites/{siteId}/site-membership-requests/{inviteeId}/approve")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Approve a site membership request", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **siteId** or **inviteeId** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to approve membership request"),
|
||||
@ApiResponse(code = 404, message = "**siteId** or **inviteeId** does not exist "),
|
||||
@ApiResponse(code = 422, message = "Integrity exception or not allowed to approve membership request. "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void approveSiteMembershipRequest(@PathParam("siteId") String siteId, @PathParam("inviteeId") String inviteeId, SiteMembershipApprovalBody siteMembershipApprovalBody);
|
||||
|
||||
/**
|
||||
* Create a site
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Creates a default site with the given details. Unless explicitly specified, the site id will be generated from the site title. The site id must be unique and only contain alphanumeric and/or dash characters. Note: the id of a site cannot be updated once the site has been created. For example, to create a public site called \"Marketing\" the following body could be used: ```JSON { \"title\": \"Marketing\", \"visibility\": \"PUBLIC\" } ``` The creation of the (surf) configuration files required by Share can be skipped via the **skipConfiguration** query parameter. **Note:** if skipped then such a site will **not** work within Share. The addition of the site to the user's site favorites can be skipped via the **skipAddToFavorites** query parameter. The creator will be added as a member with Site Manager role. When you create a site, a container called **documentLibrary** is created for you in the new site. This container is the root folder for content stored in the site.
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/sites")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create a site", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 201, message = "Successful response", response = SiteEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **id**, **title**, or **description** exceed the maximum length; or **id** contains invalid characters; or **siteBodyCreate** invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 409, message = "Site with the given identifier already exists"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteEntry createSite(SiteBodyCreate siteBodyCreate, @QueryParam("skipConfiguration")@DefaultValue("false") Boolean skipConfiguration, @QueryParam("skipAddToFavorites")@DefaultValue("false") Boolean skipAddToFavorites, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Create a site membership for group
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. Creates a site membership for group **groupId** on site **siteId**. You can set the **role** to one of four types: * SiteConsumer * SiteCollaborator * SiteContributor * SiteManager **Note:** You can create more than one site membership by specifying a list of group in the JSON body like this: ```JSON [ { \"role\": \"SiteConsumer\", \"id\": \"authorityId\" }, { \"role\": \"SiteConsumer\", \"id\": \"authorityId\" } ] ``` If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: ```JSON { \"list\": { \"pagination\": { \"count\": 2, \"hasMoreItems\": false, \"totalItems\": 2, \"skipCount\": 0, \"maxItems\": 100 }, \"entries\": [ { \"entry\": { ... } }, { \"entry\": { ... } } ] } } ```
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/sites/{siteId}/group-members")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create a site membership for group", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 201, message = "Successful response", response = SiteGroupEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **role** or **id** is invalid or **siteMembershipBodyCreate** invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to invite a Group"),
|
||||
@ApiResponse(code = 404, message = "**siteId** or **groupId** does not exist "),
|
||||
@ApiResponse(code = 409, message = "Group with this **id** is already a member"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteGroupEntry createSiteGroupMembership(@PathParam("siteId") String siteId, SiteMembershipBodyCreate siteMembershipBodyCreate, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Create a site membership
|
||||
*
|
||||
* Creates a site membership for person **personId** on site **siteId**. You can set the **role** to one of four types: * SiteConsumer * SiteCollaborator * SiteContributor * SiteManager **Note:** You can create more than one site membership by specifying a list of people in the JSON body like this: ```JSON [ { \"role\": \"SiteConsumer\", \"id\": \"joe\" }, { \"role\": \"SiteConsumer\", \"id\": \"fred\" } ] ``` If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: ```JSON { \"list\": { \"pagination\": { \"count\": 2, \"hasMoreItems\": false, \"totalItems\": 2, \"skipCount\": 0, \"maxItems\": 100 }, \"entries\": [ { \"entry\": { ... } }, { \"entry\": { ... } } ] } } ```
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/sites/{siteId}/members")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create a site membership", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 201, message = "Successful response", response = SiteMemberEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **role** or **id** is invalid or **siteMembershipBodyCreate** invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to invite a person"),
|
||||
@ApiResponse(code = 404, message = "**siteId** or **personId** does not exist "),
|
||||
@ApiResponse(code = 409, message = "Person with this **id** is already a member"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteMemberEntry createSiteMembership(@PathParam("siteId") String siteId, SiteMembershipBodyCreate siteMembershipBodyCreate, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Create a site membership request
|
||||
*
|
||||
* Create a site membership request for yourself on the site with the identifier of **id**, specified in the JSON body. The result of the request differs depending on the type of site. * For a **public** site, you join the site immediately as a SiteConsumer. * For a **moderated** site, your request is added to the site membership request list. The request waits for approval from the Site Manager. * You cannot request membership of a **private** site. Members are invited by the site administrator. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. **Note:** You can create site membership requests for more than one site by specifying a list of sites in the JSON body like this: ```JSON [ { \"message\": \"Please can you add me\", \"id\": \"test-site-1\", \"title\": \"Request for test site 1\", }, { \"message\": \"Please can you add me\", \"id\": \"test-site-2\", \"title\": \"Request for test site 2\", } ] ``` If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: ```JSON { \"list\": { \"pagination\": { \"count\": 2, \"hasMoreItems\": false, \"totalItems\": 2, \"skipCount\": 0, \"maxItems\": 100 }, \"entries\": [ { \"entry\": { ... } }, { \"entry\": { ... } } ] } } ```
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/people/{personId}/site-membership-requests")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create a site membership request", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 201, message = "Successful response", response = SiteMembershipRequestEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **id** is invalid, or the user is already invited, or **siteMembershipRequestBodyCreate** invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** or **id** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteMembershipRequestEntry createSiteMembershipRequestForPerson(@PathParam("personId") String personId, SiteMembershipRequestBodyCreate siteMembershipRequestBodyCreate, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Delete a site
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Deletes the site with **siteId**.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/sites/{siteId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Delete a site", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to delete the site that is visible to them."),
|
||||
@ApiResponse(code = 404, message = "**siteId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteSite(@PathParam("siteId") String siteId, @QueryParam("permanent")@DefaultValue("false") Boolean permanent);
|
||||
|
||||
/**
|
||||
* Delete a group membership for site
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. Deletes group **groupId** as a member of site **siteId**.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/sites/{siteId}/group-members/{groupId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Delete a group membership for site", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**siteId** or **groupId** does not exist "),
|
||||
@ApiResponse(code = 422, message = "Integrity exception (eg. last site member must be a site manager) or not allowed to delete groupId"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteSiteGroupMembership(@PathParam("siteId") String siteId, @PathParam("groupId") String groupId);
|
||||
|
||||
/**
|
||||
* Delete a site membership
|
||||
*
|
||||
* Deletes person **personId** as a member of site **siteId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/sites/{siteId}/members/{personId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Delete a site membership", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**siteId** or **personId** does not exist "),
|
||||
@ApiResponse(code = 422, message = "Integrity exception (eg. last site member must be a site manager) or not allowed to delete member"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteSiteMembership(@PathParam("siteId") String siteId, @PathParam("personId") String personId);
|
||||
|
||||
/**
|
||||
* Delete a site membership
|
||||
*
|
||||
* Deletes person **personId** as a member of site **siteId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/people/{personId}/sites/{siteId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Delete a site membership", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** or **siteId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteSiteMembershipForPerson(@PathParam("personId") String personId, @PathParam("siteId") String siteId);
|
||||
|
||||
/**
|
||||
* Delete a site membership request
|
||||
*
|
||||
* Deletes the site membership request to site **siteId** for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/people/{personId}/site-membership-requests/{siteId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Delete a site membership request", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** or **siteId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteSiteMembershipRequestForPerson(@PathParam("personId") String personId, @PathParam("siteId") String siteId);
|
||||
|
||||
/**
|
||||
* Get a site
|
||||
*
|
||||
* Gets information for site **siteId**. You can use the **relations** parameter to include one or more related entities in a single response and so reduce network traffic. The entity types in Alfresco are organized in a tree structure. The **sites** entity has two children, **containers** and **members**. The following relations parameter returns all the container and member objects related to the site **siteId**: ``` containers,members ```
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/sites/{siteId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get a site", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteEntry.class),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**siteId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteEntry getSite(@PathParam("siteId") String siteId, @QueryParam("relations")List<String> relations, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Get a site container
|
||||
*
|
||||
* Gets information on the container **containerId** in site **siteId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/sites/{siteId}/containers/{containerId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get a site container", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteContainerEntry.class),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**siteId** or **containerId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteContainerEntry getSiteContainer(@PathParam("siteId") String siteId, @PathParam("containerId") String containerId, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Get information about site membership of group
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. Gets site membership information for group **groupId** on site **siteId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/sites/{siteId}/group-members/{groupId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get information about site membership of group", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteGroupEntry.class),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**siteId** or **groupId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteGroupEntry getSiteGroupMembership(@PathParam("siteId") String siteId, @PathParam("groupId") String groupId, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Get a site membership
|
||||
*
|
||||
* Gets site membership information for person **personId** on site **siteId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/sites/{siteId}/members/{personId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get a site membership", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteMemberEntry.class),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**siteId** or **personId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteMemberEntry getSiteMembership(@PathParam("siteId") String siteId, @PathParam("personId") String personId, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Get a site membership
|
||||
*
|
||||
* Gets site membership information for person **personId** on site **siteId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people/{personId}/sites/{siteId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get a site membership", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteRoleEntry.class),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** or **siteId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteRoleEntry getSiteMembershipForPerson(@PathParam("personId") String personId, @PathParam("siteId") String siteId);
|
||||
|
||||
/**
|
||||
* Get a site membership request
|
||||
*
|
||||
* Gets the site membership request for site **siteId** for person **personId**, if one exists. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people/{personId}/site-membership-requests/{siteId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get a site membership request", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteMembershipRequestEntry.class),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** or **siteId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteMembershipRequestEntry getSiteMembershipRequestForPerson(@PathParam("personId") String personId, @PathParam("siteId") String siteId, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Get site membership requests
|
||||
*
|
||||
* Get the list of site membership requests the user can action. You can use the **where** parameter to filter the returned site membership requests by **siteId**. For example: ``` (siteId=mySite) ``` The **where** parameter can also be used to filter by ***personId***. For example: ``` where=(personId=person) ``` This may be combined with the siteId filter, as shown below: ``` where=(siteId=mySite AND personId=person)) ```
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/site-membership-requests")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get site membership requests", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteMembershipRequestWithPersonPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteMembershipRequestWithPersonPaging getSiteMembershipRequests(@QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("where")String where, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List site containers
|
||||
*
|
||||
* Gets a list of containers for the site **siteId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/sites/{siteId}/containers")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List site containers", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteContainerPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**siteId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteContainerPaging listSiteContainers(@PathParam("siteId") String siteId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List group membership for site
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. Gets a list of group membership for site **siteId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/sites/{siteId}/group-members")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List group membership for site", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteGroupPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**siteId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteGroupPaging listSiteGroups(@PathParam("siteId") String siteId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List site membership requests
|
||||
*
|
||||
* Gets a list of the current site membership requests for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people/{personId}/site-membership-requests")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List site membership requests", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteMembershipRequestPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteMembershipRequestPaging listSiteMembershipRequestsForPerson(@PathParam("personId") String personId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List site memberships
|
||||
*
|
||||
* Gets a list of site memberships for site **siteId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/sites/{siteId}/members")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List site memberships", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteMemberPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**siteId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteMemberPaging listSiteMemberships(@PathParam("siteId") String siteId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields, @QueryParam("where")String where);
|
||||
|
||||
/**
|
||||
* List site memberships
|
||||
*
|
||||
* Gets a list of site membership information for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. You can use the **where** parameter to filter the returned sites by **visibility** or site **preset**. Example to filter by **visibility**, use any one of: ``` (visibility='PRIVATE') (visibility='PUBLIC') (visibility='MODERATED') ``` Example to filter by site **preset**: ``` (preset='site-dashboard') ``` The default sort order for the returned list is for sites to be sorted by ascending title. You can override the default by using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter: * id * title * role
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/people/{personId}/sites")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List site memberships", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteRolePaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems**, **skipCount**, **orderBy**, or **where** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteRolePaging listSiteMembershipsForPerson(@PathParam("personId") String personId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("orderBy")List<String> orderBy, @QueryParam("relations")List<String> relations, @QueryParam("fields")List<String> fields, @QueryParam("where")String where);
|
||||
|
||||
/**
|
||||
* List sites
|
||||
*
|
||||
* Gets a list of sites in this repository. You can use the **where** parameter to filter the returned sites by **visibility** or site **preset**. Example to filter by **visibility**, use any one of: ``` (visibility='PRIVATE') (visibility='PUBLIC') (visibility='MODERATED') ``` Example to filter by site **preset**: ``` (preset='site-dashboard') ``` The default sort order for the returned list is for sites to be sorted by ascending title. You can override the default by using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter: * id * title * description You can use the **relations** parameter to include one or more related entities in a single response and so reduce network traffic. The entity types in Alfresco are organized in a tree structure. The **sites** entity has two children, **containers** and **members**. The following relations parameter returns all the container and member objects related to each site: ``` containers,members ```
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/sites")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List sites", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SitePaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems**, **skipCount**, **orderBy**, or **where** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SitePaging listSites(@QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("orderBy")List<String> orderBy, @QueryParam("relations")List<String> relations, @QueryParam("fields")List<String> fields, @QueryParam("where")String where);
|
||||
|
||||
/**
|
||||
* Reject a site membership request
|
||||
*
|
||||
* Reject a site membership request.
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/sites/{siteId}/site-membership-requests/{inviteeId}/reject")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Reject a site membership request", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **siteId** or **inviteeId** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to reject membership request"),
|
||||
@ApiResponse(code = 404, message = "**siteId** or **inviteeId** does not exist "),
|
||||
@ApiResponse(code = 422, message = "Integrity exception or not allowed to reject membership request. "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void rejectSiteMembershipRequest(@PathParam("siteId") String siteId, @PathParam("inviteeId") String inviteeId, SiteMembershipRejectionBody siteMembershipRejectionBody);
|
||||
|
||||
/**
|
||||
* Update a site
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Update the details for the given site **siteId**. Site Manager or otherwise a (site) admin can update title, description or visibility. Note: the id of a site cannot be updated once the site has been created.
|
||||
*
|
||||
*/
|
||||
@PUT
|
||||
@Path("/sites/{siteId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Update a site", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **siteBodyUpdate** invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to update the site that is visible to them."),
|
||||
@ApiResponse(code = 404, message = "**siteId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteEntry updateSite(@PathParam("siteId") String siteId, SiteBodyUpdate siteBodyUpdate, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Update site membership of group
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. Update the membership of person **groupId** in site **siteId**. You can set the **role** to one of four types: * SiteConsumer * SiteCollaborator * SiteContributor * SiteManager
|
||||
*
|
||||
*/
|
||||
@PUT
|
||||
@Path("/sites/{siteId}/group-members/{groupId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Update site membership of group", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteGroupEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **role** does not exist or **siteMembershipBodyUpdate** invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**siteId** or **groupId** does not exist "),
|
||||
@ApiResponse(code = 422, message = "Integrity exception (eg. last site member must be a site manager) or not allowed to update group"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteGroupEntry updateSiteGroupMembership(@PathParam("siteId") String siteId, @PathParam("groupId") String groupId, SiteMembershipBodyUpdate siteMembershipBodyUpdate, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Update a site membership
|
||||
*
|
||||
* Update the membership of person **personId** in site **siteId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. You can set the **role** to one of four types: * SiteConsumer * SiteCollaborator * SiteContributor * SiteManager
|
||||
*
|
||||
*/
|
||||
@PUT
|
||||
@Path("/sites/{siteId}/members/{personId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Update a site membership", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteMemberEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **role** does not exist or **siteMembershipBodyUpdate** invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**siteId** or **personId** does not exist "),
|
||||
@ApiResponse(code = 422, message = "Integrity exception (eg. last site member must be a site manager) or not allowed to update member"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteMemberEntry updateSiteMembership(@PathParam("siteId") String siteId, @PathParam("personId") String personId, SiteMembershipBodyUpdate siteMembershipBodyUpdate, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Update a site membership request
|
||||
*
|
||||
* Updates the message for the site membership request to site **siteId** for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
|
||||
*
|
||||
*/
|
||||
@PUT
|
||||
@Path("/people/{personId}/site-membership-requests/{siteId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Update a site membership request", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = SiteMembershipRequestEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **id** is invalid or **siteMembershipRequestBodyUpdate** invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**personId** or **siteId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public SiteMembershipRequestEntry updateSiteMembershipRequestForPerson(@PathParam("personId") String personId, @PathParam("siteId") String siteId, SiteMembershipRequestBodyUpdate siteMembershipRequestBodyUpdate, @QueryParam("fields")List<String> fields);
|
||||
}
|
||||
|
139
src/gen/java/com/inteligr8/alfresco/acs/api/TagsApi.java
Normal file
139
src/gen/java/com/inteligr8/alfresco/acs/api/TagsApi.java
Normal file
@ -0,0 +1,139 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.TagBody;
|
||||
import com.inteligr8.alfresco.acs.model.TagEntry;
|
||||
import com.inteligr8.alfresco.acs.model.TagPaging;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface TagsApi {
|
||||
|
||||
/**
|
||||
* Create a tag for a node
|
||||
*
|
||||
* Creates a tag on the node **nodeId**. You specify the tag in a JSON body like this: ```JSON { \"tag\":\"test-tag-1\" } ``` **Note:** You can create more than one tag by specifying a list of tags in the JSON body like this: ```JSON [ { \"tag\":\"test-tag-1\" }, { \"tag\":\"test-tag-2\" } ] ``` If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: ```JSON { \"list\": { \"pagination\": { \"count\": 2, \"hasMoreItems\": false, \"totalItems\": 2, \"skipCount\": 0, \"maxItems\": 100 }, \"entries\": [ { \"entry\": { ... } }, { \"entry\": { ... } } ] } } ```
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/nodes/{nodeId}/tags")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create a tag for a node", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 201, message = "Successful response", response = TagEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **tagBodyCreate** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to create tags on the node"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
|
||||
@ApiResponse(code = 405, message = "Cannot tag a node of this type"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public TagEntry createTagForNode(@PathParam("nodeId") String nodeId, TagBody tagBodyCreate, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Delete a tag from a node
|
||||
*
|
||||
* Deletes tag **tagId** from node **nodeId**.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/nodes/{nodeId}/tags/{tagId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Delete a tag from a node", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to delete the tag"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** or **tagId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteTagFromNode(@PathParam("nodeId") String nodeId, @PathParam("tagId") String tagId);
|
||||
|
||||
/**
|
||||
* Get a tag
|
||||
*
|
||||
* Get a specific tag with **tagId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/tags/{tagId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get a tag", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = TagEntry.class),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**tagId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public TagEntry getTag(@PathParam("tagId") String tagId, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* List tags
|
||||
*
|
||||
* Gets a list of tags in this repository. You can use the **include** parameter to return additional **values** information.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/tags")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List tags", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = TagPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public TagPaging listTags(@QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields, @QueryParam("include")List<String> include);
|
||||
|
||||
/**
|
||||
* List tags for a node
|
||||
*
|
||||
* Gets a list of tags for node **nodeId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/nodes/{nodeId}/tags")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List tags for a node", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = TagPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to read tags on the node"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public TagPaging listTagsForNode(@PathParam("nodeId") String nodeId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields);
|
||||
|
||||
/**
|
||||
* Update a tag
|
||||
*
|
||||
* Updates the tag **tagId**.
|
||||
*
|
||||
*/
|
||||
@PUT
|
||||
@Path("/tags/{tagId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Update a tag", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = TagEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **tagBodyUpdate** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**tagId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public TagEntry updateTag(@PathParam("tagId") String tagId, TagBody tagBodyUpdate, @QueryParam("fields")List<String> fields);
|
||||
}
|
||||
|
195
src/gen/java/com/inteligr8/alfresco/acs/api/TrashcanApi.java
Normal file
195
src/gen/java/com/inteligr8/alfresco/acs/api/TrashcanApi.java
Normal file
@ -0,0 +1,195 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.DeletedNodeBodyRestore;
|
||||
import com.inteligr8.alfresco.acs.model.DeletedNodeEntry;
|
||||
import com.inteligr8.alfresco.acs.model.DeletedNodesPaging;
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.NodeEntry;
|
||||
import com.inteligr8.alfresco.acs.model.RenditionEntry;
|
||||
import com.inteligr8.alfresco.acs.model.RenditionPaging;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.io.File;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface TrashcanApi {
|
||||
|
||||
/**
|
||||
* Permanently delete a deleted node
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Permanently deletes the deleted node **nodeId**.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/deleted-nodes/{nodeId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Permanently delete a deleted node", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to permanently delete the deleted node"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteDeletedNode(@PathParam("nodeId") String nodeId);
|
||||
|
||||
/**
|
||||
* Get rendition information for a deleted node
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the rendition information for **renditionId** of file **nodeId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/deleted-nodes/{nodeId}/renditions/{renditionId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get rendition information for a deleted node", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = RenditionEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or is not a file, or **renditionId** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** or **renditionId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public RenditionEntry getArchivedNodeRendition(@PathParam("nodeId") String nodeId, @PathParam("renditionId") String renditionId);
|
||||
|
||||
/**
|
||||
* Get rendition content of a deleted node
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the rendition content for **renditionId** of file **nodeId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/deleted-nodes/{nodeId}/renditions/{renditionId}/content")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/octet-stream" })
|
||||
@ApiOperation(value = "Get rendition content of a deleted node", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = File.class),
|
||||
@ApiResponse(code = 206, message = "Partial Content"),
|
||||
@ApiResponse(code = 304, message = "Content has not been modified since the date provided in the If-Modified-Since header"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or is not a file, or **renditionId** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** or **renditionId** does not exist "),
|
||||
@ApiResponse(code = 416, message = "Range Not Satisfiable"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public File getArchivedNodeRenditionContent(@PathParam("nodeId") String nodeId, @PathParam("renditionId") String renditionId, @QueryParam("attachment")@DefaultValue("true") Boolean attachment, @HeaderParam("If-Modified-Since") Date ifModifiedSince, @HeaderParam("Range") String range, @QueryParam("placeholder")@DefaultValue("false") Boolean placeholder);
|
||||
|
||||
/**
|
||||
* Get a deleted node
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the specific deleted node **nodeId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/deleted-nodes/{nodeId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get a deleted node", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = DeletedNodeEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to view the deleted node"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public DeletedNodeEntry getDeletedNode(@PathParam("nodeId") String nodeId, @QueryParam("include")List<String> include);
|
||||
|
||||
/**
|
||||
* Get deleted node content
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the content of the deleted node with identifier **nodeId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/deleted-nodes/{nodeId}/content")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/octet-stream" })
|
||||
@ApiOperation(value = "Get deleted node content", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = File.class),
|
||||
@ApiResponse(code = 206, message = "Partial Content"),
|
||||
@ApiResponse(code = 304, message = "Content has not been modified since the date provided in the If-Modified-Since header"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or is not a file "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to retrieve content of **nodeId**"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
|
||||
@ApiResponse(code = 416, message = "Range Not Satisfiable"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public File getDeletedNodeContent(@PathParam("nodeId") String nodeId, @QueryParam("attachment")@DefaultValue("true") Boolean attachment, @HeaderParam("If-Modified-Since") Date ifModifiedSince, @HeaderParam("Range") String range);
|
||||
|
||||
/**
|
||||
* List renditions for a deleted node
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of the rendition information for each rendition of the file **nodeId**, including the rendition id. Each rendition returned has a **status**: CREATED means it is available to view or download, NOT_CREATED means the rendition can be requested. You can use the **where** parameter to filter the returned renditions by **status**. For example, the following **where** clause will return just the CREATED renditions: ``` (status='CREATED') ```
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/deleted-nodes/{nodeId}/renditions")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List renditions for a deleted node", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = RenditionPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, is not a file, or **where** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public RenditionPaging listDeletedNodeRenditions(@PathParam("nodeId") String nodeId, @QueryParam("where")String where);
|
||||
|
||||
/**
|
||||
* List deleted nodes
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of deleted nodes for the current user. If the current user is an administrator deleted nodes for all users will be returned. The list of deleted nodes will be ordered with the most recently deleted node at the top of the list.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/deleted-nodes")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List deleted nodes", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = DeletedNodesPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public DeletedNodesPaging listDeletedNodes(@QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("include")List<String> include);
|
||||
|
||||
/**
|
||||
* Restore a deleted node
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Attempts to restore the deleted node **nodeId** to its original location or to a new location. If the node is successfully restored to its former primary parent, then only the primary child association will be restored, including recursively for any primary children. It should be noted that no other secondary child associations or peer associations will be restored, for any of the nodes within the primary parent-child hierarchy of restored nodes, irrespective of whether these associations were to nodes within or outside of the restored hierarchy. Also, any previously shared link will not be restored since it is deleted at the time of delete of each node.
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/deleted-nodes/{nodeId}/restore")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Restore a deleted node", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = NodeEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** or **targetNodeId** is not a valid format "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "User does not have permission to restore the deleted node or user does not have permission to the target node"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** does not exist or the restore destination parent node does not exists "),
|
||||
@ApiResponse(code = 409, message = "Node name already exists in the restore destination"),
|
||||
@ApiResponse(code = 422, message = "Model integrity exception trying to restore the node"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public NodeEntry restoreDeletedNode(@PathParam("nodeId") String nodeId, @QueryParam("fields")List<String> fields, DeletedNodeBodyRestore deletedNodeBodyRestore);
|
||||
}
|
||||
|
59
src/gen/java/com/inteligr8/alfresco/acs/api/TypesApi.java
Normal file
59
src/gen/java/com/inteligr8/alfresco/acs/api/TypesApi.java
Normal file
@ -0,0 +1,59 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.TypeEntry;
|
||||
import com.inteligr8.alfresco.acs.model.TypePaging;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Model API** Provides access to the model features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface TypesApi {
|
||||
|
||||
/**
|
||||
* Get a type
|
||||
*
|
||||
* **Note:** This is available in Alfresco 7.0.0 and newer versions. Get information for type **typeId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/types/{typeId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get a type", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = TypeEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: unknown typeId scheme specified "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 404, message = "**typeId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public TypeEntry getType(@PathParam("typeId") String typeId);
|
||||
|
||||
/**
|
||||
* List types
|
||||
*
|
||||
* **Note:** This is available in Alfresco 7.0.0 and newer versions. Gets a list of types from the data dictionary. The System types will be ignored by default. ```JSON { \"list\": { \"pagination\": { \"count\": 0, \"hasMoreItems\": true, \"totalItems\": 0, \"skipCount\": 0, \"maxItems\": 0 }, \"entries\": [ { \"entry\": { \"associations\": [], \"isArchive\": true, \"mandatoryAspects\": [ \"cm:auditable\", \"sys:referenceable\", \"sys:localized\" ], \"includedInSupertypeQuery\": true, \"description\": \"Base Content Object\", \"isContainer\": false, \"model\": { \"id\": \"cm:contentmodel\", \"author\": \"Alfresco\", \"description\": \"Alfresco Content Domain Model\", \"namespaceUri\": \"http://www.alfresco.org/model/content/1.0\", \"namespacePrefix\": \"cm\" }, \"id\": \"cm:content\", \"title\": \"Content\", \"parentId\": \"cm:cmobject\" \"properties\": [ { \"id\": \"cm:name\", \"title\": \"Name\", \"description\": \"Name\", \"dataType\": \"d:text\", \"isMultiValued\": false, \"isMandatory\": true, \"isMandatoryEnforced\": true \"isProtected\": false ... }, { ... } ] } }, { \"entry\": { ... } }, { \"entry\": { ... } }, ] } } ```
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/types")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List types", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = TypePaging.class),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public TypePaging listTypes(@QueryParam("where")String where, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("include")List<String> include);
|
||||
}
|
||||
|
219
src/gen/java/com/inteligr8/alfresco/acs/api/VersionsApi.java
Normal file
219
src/gen/java/com/inteligr8/alfresco/acs/api/VersionsApi.java
Normal file
@ -0,0 +1,219 @@
|
||||
package com.inteligr8.alfresco.acs.api;
|
||||
|
||||
import com.inteligr8.alfresco.acs.model.Error;
|
||||
import com.inteligr8.alfresco.acs.model.RenditionBodyCreate;
|
||||
import com.inteligr8.alfresco.acs.model.RenditionEntry;
|
||||
import com.inteligr8.alfresco.acs.model.RenditionPaging;
|
||||
import com.inteligr8.alfresco.acs.model.RevertBody;
|
||||
import com.inteligr8.alfresco.acs.model.VersionEntry;
|
||||
import com.inteligr8.alfresco.acs.model.VersionPaging;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import java.io.File;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import javax.ws.rs.*;
|
||||
|
||||
/**
|
||||
* Alfresco Content Services REST API
|
||||
*
|
||||
* <p>**Core API** Provides access to the core features of Alfresco Content Services.
|
||||
*
|
||||
*/
|
||||
@Path("/api/-default-/public/alfresco/versions/1")
|
||||
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
|
||||
public interface VersionsApi {
|
||||
|
||||
/**
|
||||
* Create rendition for a file version
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. An asynchronous request to create a rendition for version of file **nodeId** and **versionId**. The version rendition is specified by name **id** in the request body: ```JSON { \"id\":\"doclib\" } ``` Multiple names may be specified as a comma separated list or using a list format: ```JSON [ { \"id\": \"doclib\" }, { \"id\": \"avatar\" } ] ```
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/nodes/{nodeId}/versions/{versionId}/renditions")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Create rendition for a file version", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 202, message = "Request accepted"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or is not a file, or **versionId** is invalid, or **renditionBodyCreate** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** or **versionId** or **renditionId** does not exist "),
|
||||
@ApiResponse(code = 409, message = "All requested renditions already exist"),
|
||||
@ApiResponse(code = 501, message = "Renditions/thumbnails are disabled for the system"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void createVersionRendition(@PathParam("nodeId") String nodeId, @PathParam("versionId") String versionId, RenditionBodyCreate renditionBodyCreate);
|
||||
|
||||
/**
|
||||
* Delete a version
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Delete the version identified by **versionId** and **nodeId*. If the version is successfully deleted then the content and metadata for that versioned node will be deleted and will no longer appear in the version history. This operation cannot be undone. If the most recent version is deleted the live node will revert to the next most recent version. We currently do not allow the last version to be deleted. If you wish to clear the history then you can remove the \"cm:versionable\" aspect (via update node) which will also disable versioning. In this case, you can re-enable versioning by adding back the \"cm:versionable\" aspect or using the version params (majorVersion and comment) on a subsequent file content update.
|
||||
*
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/nodes/{nodeId}/versions/{versionId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Delete a version", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 204, message = "Successful response"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or exists but does not identify a file, or **versionId** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to delete the versioned node"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** or **versionId** does not exist "),
|
||||
@ApiResponse(code = 422, message = "Cannot delete the last remaining version"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public void deleteVersion(@PathParam("nodeId") String nodeId, @PathParam("versionId") String versionId);
|
||||
|
||||
/**
|
||||
* Get version information
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the version information for **versionId** of file node **nodeId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/nodes/{nodeId}/versions/{versionId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get version information", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = VersionEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or it exists but does not identify a file, or **versionId** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** or **versionId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public VersionEntry getVersion(@PathParam("nodeId") String nodeId, @PathParam("versionId") String versionId);
|
||||
|
||||
/**
|
||||
* Get version content
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the version content for **versionId** of file node **nodeId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/nodes/{nodeId}/versions/{versionId}/content")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/octet-stream" })
|
||||
@ApiOperation(value = "Get version content", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = File.class),
|
||||
@ApiResponse(code = 206, message = "Partial Content"),
|
||||
@ApiResponse(code = 304, message = "Content has not been modified since the date provided in the If-Modified-Since header"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or is not a file, or **versionId** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** or **versionId** does not exist "),
|
||||
@ApiResponse(code = 416, message = "Range Not Satisfiable"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public File getVersionContent(@PathParam("nodeId") String nodeId, @PathParam("versionId") String versionId, @QueryParam("attachment")@DefaultValue("true") Boolean attachment, @HeaderParam("If-Modified-Since") Date ifModifiedSince, @HeaderParam("Range") String range);
|
||||
|
||||
/**
|
||||
* Get rendition information for a file version
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. Gets the rendition information for **renditionId** of version of file **nodeId** and **versionId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/nodes/{nodeId}/versions/{versionId}/renditions/{renditionId}")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Get rendition information for a file version", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = RenditionEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or is not a file, or **versionId** is invalid, or **renditionId** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** or **versionId** or **renditionId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public RenditionEntry getVersionRendition(@PathParam("nodeId") String nodeId, @PathParam("versionId") String versionId, @PathParam("renditionId") String renditionId);
|
||||
|
||||
/**
|
||||
* Get rendition content for a file version
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. Gets the rendition content for **renditionId** of version of file **nodeId** and **versionId**.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/nodes/{nodeId}/versions/{versionId}/renditions/{renditionId}/content")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/octet-stream" })
|
||||
@ApiOperation(value = "Get rendition content for a file version", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = File.class),
|
||||
@ApiResponse(code = 206, message = "Partial Content"),
|
||||
@ApiResponse(code = 304, message = "Content has not been modified since the date provided in the If-Modified-Since header"),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or is not a file, or **versionId** is invalid, or **renditionId** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** or **versionId** or **renditionId** does not exist "),
|
||||
@ApiResponse(code = 416, message = "Range Not Satisfiable"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public File getVersionRenditionContent(@PathParam("nodeId") String nodeId, @PathParam("versionId") String versionId, @PathParam("renditionId") String renditionId, @QueryParam("attachment")@DefaultValue("true") Boolean attachment, @HeaderParam("If-Modified-Since") Date ifModifiedSince, @HeaderParam("Range") String range, @QueryParam("placeholder")@DefaultValue("false") Boolean placeholder);
|
||||
|
||||
/**
|
||||
* List version history
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the version history as an ordered list of versions for the specified **nodeId**. The list is ordered in descending modified order. So the most recent version is first and the original version is last in the list.
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/nodes/{nodeId}/versions")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List version history", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = VersionPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
|
||||
@ApiResponse(code = 404, message = "Target **nodeId** does not exist"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public VersionPaging listVersionHistory(@PathParam("nodeId") String nodeId, @QueryParam("include")List<String> include, @QueryParam("fields")List<String> fields, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems);
|
||||
|
||||
/**
|
||||
* List renditions for a file version
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. Gets a list of the rendition information for each rendition of the version of file **nodeId** and **versionId**, including the rendition id. Each rendition returned has a **status**: CREATED means it is available to view or download, NOT_CREATED means the rendition can be requested. You can use the **where** parameter to filter the returned renditions by **status**. For example, the following **where** clause will return just the CREATED renditions: ``` (status='CREATED') ```
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/nodes/{nodeId}/versions/{versionId}/renditions")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "List renditions for a file version", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = RenditionPaging.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or is not a file, or **versionId** is invalid, or **where** is invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** or **versionId** does not exist "),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public RenditionPaging listVersionRenditions(@PathParam("nodeId") String nodeId, @PathParam("versionId") String versionId, @QueryParam("where")String where);
|
||||
|
||||
/**
|
||||
* Revert a version
|
||||
*
|
||||
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Attempts to revert the version identified by **versionId** and **nodeId** to the live node. If the node is successfully reverted then the content and metadata for that versioned node will be promoted to the live node and a new version will appear in the version history.
|
||||
*
|
||||
*/
|
||||
@POST
|
||||
@Path("/nodes/{nodeId}/versions/{versionId}/revert")
|
||||
@Consumes({ "application/json" })
|
||||
@Produces({ "application/json" })
|
||||
@ApiOperation(value = "Revert a version", tags={ })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "Successful response", response = VersionEntry.class),
|
||||
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or it exists but does not identify a file, or **versionId** is invalid, or **revertBody** invalid "),
|
||||
@ApiResponse(code = 401, message = "Authentication failed"),
|
||||
@ApiResponse(code = 403, message = "Current user does not have permission to revert the versioned node"),
|
||||
@ApiResponse(code = 404, message = "**nodeId** or **versionId** does not exist "),
|
||||
@ApiResponse(code = 422, message = "Model integrity exception trying to revert the node"),
|
||||
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
|
||||
public VersionEntry revertVersion(@PathParam("nodeId") String nodeId, @PathParam("versionId") String versionId, RevertBody revertBody, @QueryParam("fields")List<String> fields);
|
||||
}
|
||||
|
287
src/gen/java/com/inteligr8/alfresco/acs/model/AbstractClass.java
Normal file
287
src/gen/java/com/inteligr8/alfresco/acs/model/AbstractClass.java
Normal file
@ -0,0 +1,287 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AbstractClass {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String id = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String title = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String description = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String parentId = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private List<Property> properties = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean isContainer = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean isArchive = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean includedInSupertypeQuery = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private List<String> mandatoryAspects = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private List<AbstractClassAssociation> associations = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Model model = null;
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public AbstractClass id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get title
|
||||
* @return title
|
||||
**/
|
||||
@JsonProperty("title")
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public AbstractClass title(String title) {
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get description
|
||||
* @return description
|
||||
**/
|
||||
@JsonProperty("description")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public AbstractClass description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get parentId
|
||||
* @return parentId
|
||||
**/
|
||||
@JsonProperty("parentId")
|
||||
public String getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public AbstractClass parentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get properties
|
||||
* @return properties
|
||||
**/
|
||||
@JsonProperty("properties")
|
||||
public List<Property> getProperties() {
|
||||
return properties;
|
||||
}
|
||||
|
||||
public void setProperties(List<Property> properties) {
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
public AbstractClass properties(List<Property> properties) {
|
||||
this.properties = properties;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AbstractClass addPropertiesItem(Property propertiesItem) {
|
||||
this.properties.add(propertiesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isContainer
|
||||
* @return isContainer
|
||||
**/
|
||||
@JsonProperty("isContainer")
|
||||
public Boolean isIsContainer() {
|
||||
return isContainer;
|
||||
}
|
||||
|
||||
public void setIsContainer(Boolean isContainer) {
|
||||
this.isContainer = isContainer;
|
||||
}
|
||||
|
||||
public AbstractClass isContainer(Boolean isContainer) {
|
||||
this.isContainer = isContainer;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isArchive
|
||||
* @return isArchive
|
||||
**/
|
||||
@JsonProperty("isArchive")
|
||||
public Boolean isIsArchive() {
|
||||
return isArchive;
|
||||
}
|
||||
|
||||
public void setIsArchive(Boolean isArchive) {
|
||||
this.isArchive = isArchive;
|
||||
}
|
||||
|
||||
public AbstractClass isArchive(Boolean isArchive) {
|
||||
this.isArchive = isArchive;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get includedInSupertypeQuery
|
||||
* @return includedInSupertypeQuery
|
||||
**/
|
||||
@JsonProperty("includedInSupertypeQuery")
|
||||
public Boolean isIncludedInSupertypeQuery() {
|
||||
return includedInSupertypeQuery;
|
||||
}
|
||||
|
||||
public void setIncludedInSupertypeQuery(Boolean includedInSupertypeQuery) {
|
||||
this.includedInSupertypeQuery = includedInSupertypeQuery;
|
||||
}
|
||||
|
||||
public AbstractClass includedInSupertypeQuery(Boolean includedInSupertypeQuery) {
|
||||
this.includedInSupertypeQuery = includedInSupertypeQuery;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get mandatoryAspects
|
||||
* @return mandatoryAspects
|
||||
**/
|
||||
@JsonProperty("mandatoryAspects")
|
||||
public List<String> getMandatoryAspects() {
|
||||
return mandatoryAspects;
|
||||
}
|
||||
|
||||
public void setMandatoryAspects(List<String> mandatoryAspects) {
|
||||
this.mandatoryAspects = mandatoryAspects;
|
||||
}
|
||||
|
||||
public AbstractClass mandatoryAspects(List<String> mandatoryAspects) {
|
||||
this.mandatoryAspects = mandatoryAspects;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AbstractClass addMandatoryAspectsItem(String mandatoryAspectsItem) {
|
||||
this.mandatoryAspects.add(mandatoryAspectsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get associations
|
||||
* @return associations
|
||||
**/
|
||||
@JsonProperty("associations")
|
||||
public List<AbstractClassAssociation> getAssociations() {
|
||||
return associations;
|
||||
}
|
||||
|
||||
public void setAssociations(List<AbstractClassAssociation> associations) {
|
||||
this.associations = associations;
|
||||
}
|
||||
|
||||
public AbstractClass associations(List<AbstractClassAssociation> associations) {
|
||||
this.associations = associations;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AbstractClass addAssociationsItem(AbstractClassAssociation associationsItem) {
|
||||
this.associations.add(associationsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get model
|
||||
* @return model
|
||||
**/
|
||||
@JsonProperty("model")
|
||||
public Model getModel() {
|
||||
return model;
|
||||
}
|
||||
|
||||
public void setModel(Model model) {
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
public AbstractClass model(Model model) {
|
||||
this.model = model;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AbstractClass {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" title: ").append(toIndentedString(title)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n");
|
||||
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
|
||||
sb.append(" isContainer: ").append(toIndentedString(isContainer)).append("\n");
|
||||
sb.append(" isArchive: ").append(toIndentedString(isArchive)).append("\n");
|
||||
sb.append(" includedInSupertypeQuery: ").append(toIndentedString(includedInSupertypeQuery)).append("\n");
|
||||
sb.append(" mandatoryAspects: ").append(toIndentedString(mandatoryAspects)).append("\n");
|
||||
sb.append(" associations: ").append(toIndentedString(associations)).append("\n");
|
||||
sb.append(" model: ").append(toIndentedString(model)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,183 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AbstractClassAssociation {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String id = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String title = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String description = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean isChild = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean isProtected = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private AbstractClassAssociationSource source = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private AbstractClassAssociationSource target = null;
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public AbstractClassAssociation id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get title
|
||||
* @return title
|
||||
**/
|
||||
@JsonProperty("title")
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public AbstractClassAssociation title(String title) {
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get description
|
||||
* @return description
|
||||
**/
|
||||
@JsonProperty("description")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public AbstractClassAssociation description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isChild
|
||||
* @return isChild
|
||||
**/
|
||||
@JsonProperty("isChild")
|
||||
public Boolean isIsChild() {
|
||||
return isChild;
|
||||
}
|
||||
|
||||
public void setIsChild(Boolean isChild) {
|
||||
this.isChild = isChild;
|
||||
}
|
||||
|
||||
public AbstractClassAssociation isChild(Boolean isChild) {
|
||||
this.isChild = isChild;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isProtected
|
||||
* @return isProtected
|
||||
**/
|
||||
@JsonProperty("isProtected")
|
||||
public Boolean isIsProtected() {
|
||||
return isProtected;
|
||||
}
|
||||
|
||||
public void setIsProtected(Boolean isProtected) {
|
||||
this.isProtected = isProtected;
|
||||
}
|
||||
|
||||
public AbstractClassAssociation isProtected(Boolean isProtected) {
|
||||
this.isProtected = isProtected;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get source
|
||||
* @return source
|
||||
**/
|
||||
@JsonProperty("source")
|
||||
public AbstractClassAssociationSource getSource() {
|
||||
return source;
|
||||
}
|
||||
|
||||
public void setSource(AbstractClassAssociationSource source) {
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
public AbstractClassAssociation source(AbstractClassAssociationSource source) {
|
||||
this.source = source;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get target
|
||||
* @return target
|
||||
**/
|
||||
@JsonProperty("target")
|
||||
public AbstractClassAssociationSource getTarget() {
|
||||
return target;
|
||||
}
|
||||
|
||||
public void setTarget(AbstractClassAssociationSource target) {
|
||||
this.target = target;
|
||||
}
|
||||
|
||||
public AbstractClassAssociation target(AbstractClassAssociationSource target) {
|
||||
this.target = target;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AbstractClassAssociation {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" title: ").append(toIndentedString(title)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" isChild: ").append(toIndentedString(isChild)).append("\n");
|
||||
sb.append(" isProtected: ").append(toIndentedString(isProtected)).append("\n");
|
||||
sb.append(" source: ").append(toIndentedString(source)).append("\n");
|
||||
sb.append(" target: ").append(toIndentedString(target)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,139 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AbstractClassAssociationSource {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String role = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String cls = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean isMandatory = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean isMany = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean isMandatoryEnforced = null;
|
||||
/**
|
||||
* Get role
|
||||
* @return role
|
||||
**/
|
||||
@JsonProperty("role")
|
||||
public String getRole() {
|
||||
return role;
|
||||
}
|
||||
|
||||
public void setRole(String role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
public AbstractClassAssociationSource role(String role) {
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get cls
|
||||
* @return cls
|
||||
**/
|
||||
@JsonProperty("cls")
|
||||
public String getCls() {
|
||||
return cls;
|
||||
}
|
||||
|
||||
public void setCls(String cls) {
|
||||
this.cls = cls;
|
||||
}
|
||||
|
||||
public AbstractClassAssociationSource cls(String cls) {
|
||||
this.cls = cls;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isMandatory
|
||||
* @return isMandatory
|
||||
**/
|
||||
@JsonProperty("isMandatory")
|
||||
public Boolean isIsMandatory() {
|
||||
return isMandatory;
|
||||
}
|
||||
|
||||
public void setIsMandatory(Boolean isMandatory) {
|
||||
this.isMandatory = isMandatory;
|
||||
}
|
||||
|
||||
public AbstractClassAssociationSource isMandatory(Boolean isMandatory) {
|
||||
this.isMandatory = isMandatory;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isMany
|
||||
* @return isMany
|
||||
**/
|
||||
@JsonProperty("isMany")
|
||||
public Boolean isIsMany() {
|
||||
return isMany;
|
||||
}
|
||||
|
||||
public void setIsMany(Boolean isMany) {
|
||||
this.isMany = isMany;
|
||||
}
|
||||
|
||||
public AbstractClassAssociationSource isMany(Boolean isMany) {
|
||||
this.isMany = isMany;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isMandatoryEnforced
|
||||
* @return isMandatoryEnforced
|
||||
**/
|
||||
@JsonProperty("isMandatoryEnforced")
|
||||
public Boolean isIsMandatoryEnforced() {
|
||||
return isMandatoryEnforced;
|
||||
}
|
||||
|
||||
public void setIsMandatoryEnforced(Boolean isMandatoryEnforced) {
|
||||
this.isMandatoryEnforced = isMandatoryEnforced;
|
||||
}
|
||||
|
||||
public AbstractClassAssociationSource isMandatoryEnforced(Boolean isMandatoryEnforced) {
|
||||
this.isMandatoryEnforced = isMandatoryEnforced;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AbstractClassAssociationSource {\n");
|
||||
|
||||
sb.append(" role: ").append(toIndentedString(role)).append("\n");
|
||||
sb.append(" cls: ").append(toIndentedString(cls)).append("\n");
|
||||
sb.append(" isMandatory: ").append(toIndentedString(isMandatory)).append("\n");
|
||||
sb.append(" isMany: ").append(toIndentedString(isMany)).append("\n");
|
||||
sb.append(" isMandatoryEnforced: ").append(toIndentedString(isMandatoryEnforced)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,98 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ActionBodyExec {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String actionDefinitionId = null;
|
||||
|
||||
@ApiModelProperty(value = "The entity upon which to execute the action, typically a node ID or similar.")
|
||||
/**
|
||||
* The entity upon which to execute the action, typically a node ID or similar.
|
||||
**/
|
||||
private String targetId = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Object params = null;
|
||||
/**
|
||||
* Get actionDefinitionId
|
||||
* @return actionDefinitionId
|
||||
**/
|
||||
@JsonProperty("actionDefinitionId")
|
||||
public String getActionDefinitionId() {
|
||||
return actionDefinitionId;
|
||||
}
|
||||
|
||||
public void setActionDefinitionId(String actionDefinitionId) {
|
||||
this.actionDefinitionId = actionDefinitionId;
|
||||
}
|
||||
|
||||
public ActionBodyExec actionDefinitionId(String actionDefinitionId) {
|
||||
this.actionDefinitionId = actionDefinitionId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The entity upon which to execute the action, typically a node ID or similar.
|
||||
* @return targetId
|
||||
**/
|
||||
@JsonProperty("targetId")
|
||||
public String getTargetId() {
|
||||
return targetId;
|
||||
}
|
||||
|
||||
public void setTargetId(String targetId) {
|
||||
this.targetId = targetId;
|
||||
}
|
||||
|
||||
public ActionBodyExec targetId(String targetId) {
|
||||
this.targetId = targetId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get params
|
||||
* @return params
|
||||
**/
|
||||
@JsonProperty("params")
|
||||
public Object getParams() {
|
||||
return params;
|
||||
}
|
||||
|
||||
public void setParams(Object params) {
|
||||
this.params = params;
|
||||
}
|
||||
|
||||
public ActionBodyExec params(Object params) {
|
||||
this.params = params;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionBodyExec {\n");
|
||||
|
||||
sb.append(" actionDefinitionId: ").append(toIndentedString(actionDefinitionId)).append("\n");
|
||||
sb.append(" targetId: ").append(toIndentedString(targetId)).append("\n");
|
||||
sb.append(" params: ").append(toIndentedString(params)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,213 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ActionDefinition {
|
||||
|
||||
@ApiModelProperty(required = true, value = "Identifier of the action definition — used for example when executing an action")
|
||||
/**
|
||||
* Identifier of the action definition — used for example when executing an action
|
||||
**/
|
||||
private String id = null;
|
||||
|
||||
@ApiModelProperty(value = "name of the action definition, e.g. \"move\"")
|
||||
/**
|
||||
* name of the action definition, e.g. \"move\"
|
||||
**/
|
||||
private String name = null;
|
||||
|
||||
@ApiModelProperty(value = "title of the action definition, e.g. \"Move\"")
|
||||
/**
|
||||
* title of the action definition, e.g. \"Move\"
|
||||
**/
|
||||
private String title = null;
|
||||
|
||||
@ApiModelProperty(value = "describes the action definition, e.g. \"This will move the matched item to another space.\"")
|
||||
/**
|
||||
* describes the action definition, e.g. \"This will move the matched item to another space.\"
|
||||
**/
|
||||
private String description = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "QNames of the types this action applies to")
|
||||
/**
|
||||
* QNames of the types this action applies to
|
||||
**/
|
||||
private List<String> applicableTypes = new ArrayList<String>();
|
||||
|
||||
@ApiModelProperty(required = true, value = "whether the basic action definition supports action tracking or not")
|
||||
/**
|
||||
* whether the basic action definition supports action tracking or not
|
||||
**/
|
||||
private Boolean trackStatus = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private List<ActionParameterDefinition> parameterDefinitions = null;
|
||||
/**
|
||||
* Identifier of the action definition — used for example when executing an action
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ActionDefinition id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* name of the action definition, e.g. \"move\"
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ActionDefinition name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* title of the action definition, e.g. \"Move\"
|
||||
* @return title
|
||||
**/
|
||||
@JsonProperty("title")
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public ActionDefinition title(String title) {
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* describes the action definition, e.g. \"This will move the matched item to another space.\"
|
||||
* @return description
|
||||
**/
|
||||
@JsonProperty("description")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public ActionDefinition description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* QNames of the types this action applies to
|
||||
* @return applicableTypes
|
||||
**/
|
||||
@JsonProperty("applicableTypes")
|
||||
public List<String> getApplicableTypes() {
|
||||
return applicableTypes;
|
||||
}
|
||||
|
||||
public void setApplicableTypes(List<String> applicableTypes) {
|
||||
this.applicableTypes = applicableTypes;
|
||||
}
|
||||
|
||||
public ActionDefinition applicableTypes(List<String> applicableTypes) {
|
||||
this.applicableTypes = applicableTypes;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ActionDefinition addApplicableTypesItem(String applicableTypesItem) {
|
||||
this.applicableTypes.add(applicableTypesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* whether the basic action definition supports action tracking or not
|
||||
* @return trackStatus
|
||||
**/
|
||||
@JsonProperty("trackStatus")
|
||||
public Boolean isTrackStatus() {
|
||||
return trackStatus;
|
||||
}
|
||||
|
||||
public void setTrackStatus(Boolean trackStatus) {
|
||||
this.trackStatus = trackStatus;
|
||||
}
|
||||
|
||||
public ActionDefinition trackStatus(Boolean trackStatus) {
|
||||
this.trackStatus = trackStatus;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get parameterDefinitions
|
||||
* @return parameterDefinitions
|
||||
**/
|
||||
@JsonProperty("parameterDefinitions")
|
||||
public List<ActionParameterDefinition> getParameterDefinitions() {
|
||||
return parameterDefinitions;
|
||||
}
|
||||
|
||||
public void setParameterDefinitions(List<ActionParameterDefinition> parameterDefinitions) {
|
||||
this.parameterDefinitions = parameterDefinitions;
|
||||
}
|
||||
|
||||
public ActionDefinition parameterDefinitions(List<ActionParameterDefinition> parameterDefinitions) {
|
||||
this.parameterDefinitions = parameterDefinitions;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ActionDefinition addParameterDefinitionsItem(ActionParameterDefinition parameterDefinitionsItem) {
|
||||
this.parameterDefinitions.add(parameterDefinitionsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionDefinition {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" title: ").append(toIndentedString(title)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" applicableTypes: ").append(toIndentedString(applicableTypes)).append("\n");
|
||||
sb.append(" trackStatus: ").append(toIndentedString(trackStatus)).append("\n");
|
||||
sb.append(" parameterDefinitions: ").append(toIndentedString(parameterDefinitions)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ActionDefinitionEntry {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private ActionDefinition entry = null;
|
||||
/**
|
||||
* Get entry
|
||||
* @return entry
|
||||
**/
|
||||
@JsonProperty("entry")
|
||||
public ActionDefinition getEntry() {
|
||||
return entry;
|
||||
}
|
||||
|
||||
public void setEntry(ActionDefinition entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public ActionDefinitionEntry entry(ActionDefinition entry) {
|
||||
this.entry = entry;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionDefinitionEntry {\n");
|
||||
|
||||
sb.append(" entry: ").append(toIndentedString(entry)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ActionDefinitionList {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private ActionDefinitionListList _list = null;
|
||||
/**
|
||||
* Get _list
|
||||
* @return _list
|
||||
**/
|
||||
@JsonProperty("list")
|
||||
public ActionDefinitionListList getList() {
|
||||
return _list;
|
||||
}
|
||||
|
||||
public void setList(ActionDefinitionListList _list) {
|
||||
this._list = _list;
|
||||
}
|
||||
|
||||
public ActionDefinitionList _list(ActionDefinitionListList _list) {
|
||||
this._list = _list;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionDefinitionList {\n");
|
||||
|
||||
sb.append(" _list: ").append(toIndentedString(_list)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,79 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ActionDefinitionListList {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Pagination pagination = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private List<ActionDefinition> entries = null;
|
||||
/**
|
||||
* Get pagination
|
||||
* @return pagination
|
||||
**/
|
||||
@JsonProperty("pagination")
|
||||
public Pagination getPagination() {
|
||||
return pagination;
|
||||
}
|
||||
|
||||
public void setPagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
}
|
||||
|
||||
public ActionDefinitionListList pagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get entries
|
||||
* @return entries
|
||||
**/
|
||||
@JsonProperty("entries")
|
||||
public List<ActionDefinition> getEntries() {
|
||||
return entries;
|
||||
}
|
||||
|
||||
public void setEntries(List<ActionDefinition> entries) {
|
||||
this.entries = entries;
|
||||
}
|
||||
|
||||
public ActionDefinitionListList entries(List<ActionDefinition> entries) {
|
||||
this.entries = entries;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ActionDefinitionListList addEntriesItem(ActionDefinition entriesItem) {
|
||||
this.entries.add(entriesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionDefinitionListList {\n");
|
||||
|
||||
sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n");
|
||||
sb.append(" entries: ").append(toIndentedString(entries)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,54 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ActionExecResult {
|
||||
|
||||
@ApiModelProperty(required = true, value = "The unique identifier of the action pending execution")
|
||||
/**
|
||||
* The unique identifier of the action pending execution
|
||||
**/
|
||||
private String id = null;
|
||||
/**
|
||||
* The unique identifier of the action pending execution
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ActionExecResult id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionExecResult {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ActionExecResultEntry {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private ActionExecResult entry = null;
|
||||
/**
|
||||
* Get entry
|
||||
* @return entry
|
||||
**/
|
||||
@JsonProperty("entry")
|
||||
public ActionExecResult getEntry() {
|
||||
return entry;
|
||||
}
|
||||
|
||||
public void setEntry(ActionExecResult entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public ActionExecResultEntry entry(ActionExecResult entry) {
|
||||
this.entry = entry;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionExecResultEntry {\n");
|
||||
|
||||
sb.append(" entry: ").append(toIndentedString(entry)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,139 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ActionParameterDefinition {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String name = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String type = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean multiValued = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean mandatory = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String displayLabel = null;
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ActionParameterDefinition name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get type
|
||||
* @return type
|
||||
**/
|
||||
@JsonProperty("type")
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public ActionParameterDefinition type(String type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get multiValued
|
||||
* @return multiValued
|
||||
**/
|
||||
@JsonProperty("multiValued")
|
||||
public Boolean isMultiValued() {
|
||||
return multiValued;
|
||||
}
|
||||
|
||||
public void setMultiValued(Boolean multiValued) {
|
||||
this.multiValued = multiValued;
|
||||
}
|
||||
|
||||
public ActionParameterDefinition multiValued(Boolean multiValued) {
|
||||
this.multiValued = multiValued;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get mandatory
|
||||
* @return mandatory
|
||||
**/
|
||||
@JsonProperty("mandatory")
|
||||
public Boolean isMandatory() {
|
||||
return mandatory;
|
||||
}
|
||||
|
||||
public void setMandatory(Boolean mandatory) {
|
||||
this.mandatory = mandatory;
|
||||
}
|
||||
|
||||
public ActionParameterDefinition mandatory(Boolean mandatory) {
|
||||
this.mandatory = mandatory;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get displayLabel
|
||||
* @return displayLabel
|
||||
**/
|
||||
@JsonProperty("displayLabel")
|
||||
public String getDisplayLabel() {
|
||||
return displayLabel;
|
||||
}
|
||||
|
||||
public void setDisplayLabel(String displayLabel) {
|
||||
this.displayLabel = displayLabel;
|
||||
}
|
||||
|
||||
public ActionParameterDefinition displayLabel(String displayLabel) {
|
||||
this.displayLabel = displayLabel;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionParameterDefinition {\n");
|
||||
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
||||
sb.append(" multiValued: ").append(toIndentedString(multiValued)).append("\n");
|
||||
sb.append(" mandatory: ").append(toIndentedString(mandatory)).append("\n");
|
||||
sb.append(" displayLabel: ").append(toIndentedString(displayLabel)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
215
src/gen/java/com/inteligr8/alfresco/acs/model/Activity.java
Normal file
215
src/gen/java/com/inteligr8/alfresco/acs/model/Activity.java
Normal file
@ -0,0 +1,215 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Activities describe any past activity in a site, for example creating an item of content, commenting on a node, liking an item of content.
|
||||
**/
|
||||
@ApiModel(description="Activities describe any past activity in a site, for example creating an item of content, commenting on a node, liking an item of content. ")@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class Activity {
|
||||
|
||||
@ApiModelProperty(required = true, value = "The id of the person who performed the activity")
|
||||
/**
|
||||
* The id of the person who performed the activity
|
||||
**/
|
||||
private String postPersonId = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "The unique id of the activity")
|
||||
/**
|
||||
* The unique id of the activity
|
||||
**/
|
||||
private Long id = null;
|
||||
|
||||
@ApiModelProperty(value = "The unique id of the site on which the activity was performed")
|
||||
/**
|
||||
* The unique id of the site on which the activity was performed
|
||||
**/
|
||||
private String siteId = null;
|
||||
|
||||
@ApiModelProperty(value = "The date time at which the activity was performed")
|
||||
/**
|
||||
* The date time at which the activity was performed
|
||||
**/
|
||||
private Date postedAt = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "The feed on which this activity was posted")
|
||||
/**
|
||||
* The feed on which this activity was posted
|
||||
**/
|
||||
private String feedPersonId = null;
|
||||
|
||||
@ApiModelProperty(value = "An object summarizing the activity")
|
||||
/**
|
||||
* An object summarizing the activity
|
||||
**/
|
||||
private Map<String, String> activitySummary = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "The type of the activity posted")
|
||||
/**
|
||||
* The type of the activity posted
|
||||
**/
|
||||
private String activityType = null;
|
||||
/**
|
||||
* The id of the person who performed the activity
|
||||
* @return postPersonId
|
||||
**/
|
||||
@JsonProperty("postPersonId")
|
||||
public String getPostPersonId() {
|
||||
return postPersonId;
|
||||
}
|
||||
|
||||
public void setPostPersonId(String postPersonId) {
|
||||
this.postPersonId = postPersonId;
|
||||
}
|
||||
|
||||
public Activity postPersonId(String postPersonId) {
|
||||
this.postPersonId = postPersonId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique id of the activity
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Activity id(Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique id of the site on which the activity was performed
|
||||
* @return siteId
|
||||
**/
|
||||
@JsonProperty("siteId")
|
||||
public String getSiteId() {
|
||||
return siteId;
|
||||
}
|
||||
|
||||
public void setSiteId(String siteId) {
|
||||
this.siteId = siteId;
|
||||
}
|
||||
|
||||
public Activity siteId(String siteId) {
|
||||
this.siteId = siteId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The date time at which the activity was performed
|
||||
* @return postedAt
|
||||
**/
|
||||
@JsonProperty("postedAt")
|
||||
public Date getPostedAt() {
|
||||
return postedAt;
|
||||
}
|
||||
|
||||
public void setPostedAt(Date postedAt) {
|
||||
this.postedAt = postedAt;
|
||||
}
|
||||
|
||||
public Activity postedAt(Date postedAt) {
|
||||
this.postedAt = postedAt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The feed on which this activity was posted
|
||||
* @return feedPersonId
|
||||
**/
|
||||
@JsonProperty("feedPersonId")
|
||||
public String getFeedPersonId() {
|
||||
return feedPersonId;
|
||||
}
|
||||
|
||||
public void setFeedPersonId(String feedPersonId) {
|
||||
this.feedPersonId = feedPersonId;
|
||||
}
|
||||
|
||||
public Activity feedPersonId(String feedPersonId) {
|
||||
this.feedPersonId = feedPersonId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An object summarizing the activity
|
||||
* @return activitySummary
|
||||
**/
|
||||
@JsonProperty("activitySummary")
|
||||
public Map<String, String> getActivitySummary() {
|
||||
return activitySummary;
|
||||
}
|
||||
|
||||
public void setActivitySummary(Map<String, String> activitySummary) {
|
||||
this.activitySummary = activitySummary;
|
||||
}
|
||||
|
||||
public Activity activitySummary(Map<String, String> activitySummary) {
|
||||
this.activitySummary = activitySummary;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Activity putActivitySummaryItem(String key, String activitySummaryItem) {
|
||||
this.activitySummary.put(key, activitySummaryItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of the activity posted
|
||||
* @return activityType
|
||||
**/
|
||||
@JsonProperty("activityType")
|
||||
public String getActivityType() {
|
||||
return activityType;
|
||||
}
|
||||
|
||||
public void setActivityType(String activityType) {
|
||||
this.activityType = activityType;
|
||||
}
|
||||
|
||||
public Activity activityType(String activityType) {
|
||||
this.activityType = activityType;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Activity {\n");
|
||||
|
||||
sb.append(" postPersonId: ").append(toIndentedString(postPersonId)).append("\n");
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n");
|
||||
sb.append(" postedAt: ").append(toIndentedString(postedAt)).append("\n");
|
||||
sb.append(" feedPersonId: ").append(toIndentedString(feedPersonId)).append("\n");
|
||||
sb.append(" activitySummary: ").append(toIndentedString(activitySummary)).append("\n");
|
||||
sb.append(" activityType: ").append(toIndentedString(activityType)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ActivityEntry {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Activity entry = null;
|
||||
/**
|
||||
* Get entry
|
||||
* @return entry
|
||||
**/
|
||||
@JsonProperty("entry")
|
||||
public Activity getEntry() {
|
||||
return entry;
|
||||
}
|
||||
|
||||
public void setEntry(Activity entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public ActivityEntry entry(Activity entry) {
|
||||
this.entry = entry;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActivityEntry {\n");
|
||||
|
||||
sb.append(" entry: ").append(toIndentedString(entry)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ActivityPaging {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private ActivityPagingList _list = null;
|
||||
/**
|
||||
* Get _list
|
||||
* @return _list
|
||||
**/
|
||||
@JsonProperty("list")
|
||||
public ActivityPagingList getList() {
|
||||
return _list;
|
||||
}
|
||||
|
||||
public void setList(ActivityPagingList _list) {
|
||||
this._list = _list;
|
||||
}
|
||||
|
||||
public ActivityPaging _list(ActivityPagingList _list) {
|
||||
this._list = _list;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActivityPaging {\n");
|
||||
|
||||
sb.append(" _list: ").append(toIndentedString(_list)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,80 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ActivityPagingList {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Pagination pagination = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private List<ActivityEntry> entries = new ArrayList<ActivityEntry>();
|
||||
/**
|
||||
* Get pagination
|
||||
* @return pagination
|
||||
**/
|
||||
@JsonProperty("pagination")
|
||||
public Pagination getPagination() {
|
||||
return pagination;
|
||||
}
|
||||
|
||||
public void setPagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
}
|
||||
|
||||
public ActivityPagingList pagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get entries
|
||||
* @return entries
|
||||
**/
|
||||
@JsonProperty("entries")
|
||||
public List<ActivityEntry> getEntries() {
|
||||
return entries;
|
||||
}
|
||||
|
||||
public void setEntries(List<ActivityEntry> entries) {
|
||||
this.entries = entries;
|
||||
}
|
||||
|
||||
public ActivityPagingList entries(List<ActivityEntry> entries) {
|
||||
this.entries = entries;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ActivityPagingList addEntriesItem(ActivityEntry entriesItem) {
|
||||
this.entries.add(entriesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActivityPagingList {\n");
|
||||
|
||||
sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n");
|
||||
sb.append(" entries: ").append(toIndentedString(entries)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
26
src/gen/java/com/inteligr8/alfresco/acs/model/Aspect.java
Normal file
26
src/gen/java/com/inteligr8/alfresco/acs/model/Aspect.java
Normal file
@ -0,0 +1,26 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class Aspect {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Aspect {\n");
|
||||
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AspectEntry {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Aspect entry = null;
|
||||
/**
|
||||
* Get entry
|
||||
* @return entry
|
||||
**/
|
||||
@JsonProperty("entry")
|
||||
public Aspect getEntry() {
|
||||
return entry;
|
||||
}
|
||||
|
||||
public void setEntry(Aspect entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public AspectEntry entry(Aspect entry) {
|
||||
this.entry = entry;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AspectEntry {\n");
|
||||
|
||||
sb.append(" entry: ").append(toIndentedString(entry)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AspectPaging {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private AspectPagingList _list = null;
|
||||
/**
|
||||
* Get _list
|
||||
* @return _list
|
||||
**/
|
||||
@JsonProperty("list")
|
||||
public AspectPagingList getList() {
|
||||
return _list;
|
||||
}
|
||||
|
||||
public void setList(AspectPagingList _list) {
|
||||
this._list = _list;
|
||||
}
|
||||
|
||||
public AspectPaging _list(AspectPagingList _list) {
|
||||
this._list = _list;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AspectPaging {\n");
|
||||
|
||||
sb.append(" _list: ").append(toIndentedString(_list)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,79 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AspectPagingList {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Pagination pagination = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private List<AspectEntry> entries = null;
|
||||
/**
|
||||
* Get pagination
|
||||
* @return pagination
|
||||
**/
|
||||
@JsonProperty("pagination")
|
||||
public Pagination getPagination() {
|
||||
return pagination;
|
||||
}
|
||||
|
||||
public void setPagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
}
|
||||
|
||||
public AspectPagingList pagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get entries
|
||||
* @return entries
|
||||
**/
|
||||
@JsonProperty("entries")
|
||||
public List<AspectEntry> getEntries() {
|
||||
return entries;
|
||||
}
|
||||
|
||||
public void setEntries(List<AspectEntry> entries) {
|
||||
this.entries = entries;
|
||||
}
|
||||
|
||||
public AspectPagingList entries(List<AspectEntry> entries) {
|
||||
this.entries = entries;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AspectPagingList addEntriesItem(AspectEntry entriesItem) {
|
||||
this.entries.add(entriesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AspectPagingList {\n");
|
||||
|
||||
sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n");
|
||||
sb.append(" entries: ").append(toIndentedString(entries)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,73 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class Association {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String targetId = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String assocType = null;
|
||||
/**
|
||||
* Get targetId
|
||||
* @return targetId
|
||||
**/
|
||||
@JsonProperty("targetId")
|
||||
public String getTargetId() {
|
||||
return targetId;
|
||||
}
|
||||
|
||||
public void setTargetId(String targetId) {
|
||||
this.targetId = targetId;
|
||||
}
|
||||
|
||||
public Association targetId(String targetId) {
|
||||
this.targetId = targetId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get assocType
|
||||
* @return assocType
|
||||
**/
|
||||
@JsonProperty("assocType")
|
||||
public String getAssocType() {
|
||||
return assocType;
|
||||
}
|
||||
|
||||
public void setAssocType(String assocType) {
|
||||
this.assocType = assocType;
|
||||
}
|
||||
|
||||
public Association assocType(String assocType) {
|
||||
this.assocType = assocType;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Association {\n");
|
||||
|
||||
sb.append(" targetId: ").append(toIndentedString(targetId)).append("\n");
|
||||
sb.append(" assocType: ").append(toIndentedString(assocType)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,73 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AssociationBody {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String targetId = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String assocType = null;
|
||||
/**
|
||||
* Get targetId
|
||||
* @return targetId
|
||||
**/
|
||||
@JsonProperty("targetId")
|
||||
public String getTargetId() {
|
||||
return targetId;
|
||||
}
|
||||
|
||||
public void setTargetId(String targetId) {
|
||||
this.targetId = targetId;
|
||||
}
|
||||
|
||||
public AssociationBody targetId(String targetId) {
|
||||
this.targetId = targetId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get assocType
|
||||
* @return assocType
|
||||
**/
|
||||
@JsonProperty("assocType")
|
||||
public String getAssocType() {
|
||||
return assocType;
|
||||
}
|
||||
|
||||
public void setAssocType(String assocType) {
|
||||
this.assocType = assocType;
|
||||
}
|
||||
|
||||
public AssociationBody assocType(String assocType) {
|
||||
this.assocType = assocType;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AssociationBody {\n");
|
||||
|
||||
sb.append(" targetId: ").append(toIndentedString(targetId)).append("\n");
|
||||
sb.append(" assocType: ").append(toIndentedString(assocType)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AssociationEntry {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Association entry = null;
|
||||
/**
|
||||
* Get entry
|
||||
* @return entry
|
||||
**/
|
||||
@JsonProperty("entry")
|
||||
public Association getEntry() {
|
||||
return entry;
|
||||
}
|
||||
|
||||
public void setEntry(Association entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public AssociationEntry entry(Association entry) {
|
||||
this.entry = entry;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AssociationEntry {\n");
|
||||
|
||||
sb.append(" entry: ").append(toIndentedString(entry)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AssociationInfo {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String assocType = null;
|
||||
/**
|
||||
* Get assocType
|
||||
* @return assocType
|
||||
**/
|
||||
@JsonProperty("assocType")
|
||||
public String getAssocType() {
|
||||
return assocType;
|
||||
}
|
||||
|
||||
public void setAssocType(String assocType) {
|
||||
this.assocType = assocType;
|
||||
}
|
||||
|
||||
public AssociationInfo assocType(String assocType) {
|
||||
this.assocType = assocType;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AssociationInfo {\n");
|
||||
|
||||
sb.append(" assocType: ").append(toIndentedString(assocType)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
139
src/gen/java/com/inteligr8/alfresco/acs/model/AuditApp.java
Normal file
139
src/gen/java/com/inteligr8/alfresco/acs/model/AuditApp.java
Normal file
@ -0,0 +1,139 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AuditApp {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String id = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String name = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean isEnabled = true;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer maxEntryId = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer minEntryId = null;
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public AuditApp id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public AuditApp name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isEnabled
|
||||
* @return isEnabled
|
||||
**/
|
||||
@JsonProperty("isEnabled")
|
||||
public Boolean isIsEnabled() {
|
||||
return isEnabled;
|
||||
}
|
||||
|
||||
public void setIsEnabled(Boolean isEnabled) {
|
||||
this.isEnabled = isEnabled;
|
||||
}
|
||||
|
||||
public AuditApp isEnabled(Boolean isEnabled) {
|
||||
this.isEnabled = isEnabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get maxEntryId
|
||||
* @return maxEntryId
|
||||
**/
|
||||
@JsonProperty("maxEntryId")
|
||||
public Integer getMaxEntryId() {
|
||||
return maxEntryId;
|
||||
}
|
||||
|
||||
public void setMaxEntryId(Integer maxEntryId) {
|
||||
this.maxEntryId = maxEntryId;
|
||||
}
|
||||
|
||||
public AuditApp maxEntryId(Integer maxEntryId) {
|
||||
this.maxEntryId = maxEntryId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get minEntryId
|
||||
* @return minEntryId
|
||||
**/
|
||||
@JsonProperty("minEntryId")
|
||||
public Integer getMinEntryId() {
|
||||
return minEntryId;
|
||||
}
|
||||
|
||||
public void setMinEntryId(Integer minEntryId) {
|
||||
this.minEntryId = minEntryId;
|
||||
}
|
||||
|
||||
public AuditApp minEntryId(Integer minEntryId) {
|
||||
this.minEntryId = minEntryId;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AuditApp {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n");
|
||||
sb.append(" maxEntryId: ").append(toIndentedString(maxEntryId)).append("\n");
|
||||
sb.append(" minEntryId: ").append(toIndentedString(minEntryId)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AuditAppEntry {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private AuditApp entry = null;
|
||||
/**
|
||||
* Get entry
|
||||
* @return entry
|
||||
**/
|
||||
@JsonProperty("entry")
|
||||
public AuditApp getEntry() {
|
||||
return entry;
|
||||
}
|
||||
|
||||
public void setEntry(AuditApp entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public AuditAppEntry entry(AuditApp entry) {
|
||||
this.entry = entry;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AuditAppEntry {\n");
|
||||
|
||||
sb.append(" entry: ").append(toIndentedString(entry)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AuditAppPaging {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private AuditAppPagingList _list = null;
|
||||
/**
|
||||
* Get _list
|
||||
* @return _list
|
||||
**/
|
||||
@JsonProperty("list")
|
||||
public AuditAppPagingList getList() {
|
||||
return _list;
|
||||
}
|
||||
|
||||
public void setList(AuditAppPagingList _list) {
|
||||
this._list = _list;
|
||||
}
|
||||
|
||||
public AuditAppPaging _list(AuditAppPagingList _list) {
|
||||
this._list = _list;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AuditAppPaging {\n");
|
||||
|
||||
sb.append(" _list: ").append(toIndentedString(_list)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,79 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AuditAppPagingList {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Pagination pagination = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private List<AuditAppEntry> entries = null;
|
||||
/**
|
||||
* Get pagination
|
||||
* @return pagination
|
||||
**/
|
||||
@JsonProperty("pagination")
|
||||
public Pagination getPagination() {
|
||||
return pagination;
|
||||
}
|
||||
|
||||
public void setPagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
}
|
||||
|
||||
public AuditAppPagingList pagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get entries
|
||||
* @return entries
|
||||
**/
|
||||
@JsonProperty("entries")
|
||||
public List<AuditAppEntry> getEntries() {
|
||||
return entries;
|
||||
}
|
||||
|
||||
public void setEntries(List<AuditAppEntry> entries) {
|
||||
this.entries = entries;
|
||||
}
|
||||
|
||||
public AuditAppPagingList entries(List<AuditAppEntry> entries) {
|
||||
this.entries = entries;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AuditAppPagingList addEntriesItem(AuditAppEntry entriesItem) {
|
||||
this.entries.add(entriesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AuditAppPagingList {\n");
|
||||
|
||||
sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n");
|
||||
sb.append(" entries: ").append(toIndentedString(entries)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AuditBodyUpdate {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean isEnabled = null;
|
||||
/**
|
||||
* Get isEnabled
|
||||
* @return isEnabled
|
||||
**/
|
||||
@JsonProperty("isEnabled")
|
||||
public Boolean isIsEnabled() {
|
||||
return isEnabled;
|
||||
}
|
||||
|
||||
public void setIsEnabled(Boolean isEnabled) {
|
||||
this.isEnabled = isEnabled;
|
||||
}
|
||||
|
||||
public AuditBodyUpdate isEnabled(Boolean isEnabled) {
|
||||
this.isEnabled = isEnabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AuditBodyUpdate {\n");
|
||||
|
||||
sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
140
src/gen/java/com/inteligr8/alfresco/acs/model/AuditEntry.java
Normal file
140
src/gen/java/com/inteligr8/alfresco/acs/model/AuditEntry.java
Normal file
@ -0,0 +1,140 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AuditEntry {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String id = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String auditApplicationId = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private UserInfo createdByUser = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Date createdAt = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Object values = null;
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public AuditEntry id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get auditApplicationId
|
||||
* @return auditApplicationId
|
||||
**/
|
||||
@JsonProperty("auditApplicationId")
|
||||
public String getAuditApplicationId() {
|
||||
return auditApplicationId;
|
||||
}
|
||||
|
||||
public void setAuditApplicationId(String auditApplicationId) {
|
||||
this.auditApplicationId = auditApplicationId;
|
||||
}
|
||||
|
||||
public AuditEntry auditApplicationId(String auditApplicationId) {
|
||||
this.auditApplicationId = auditApplicationId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get createdByUser
|
||||
* @return createdByUser
|
||||
**/
|
||||
@JsonProperty("createdByUser")
|
||||
public UserInfo getCreatedByUser() {
|
||||
return createdByUser;
|
||||
}
|
||||
|
||||
public void setCreatedByUser(UserInfo createdByUser) {
|
||||
this.createdByUser = createdByUser;
|
||||
}
|
||||
|
||||
public AuditEntry createdByUser(UserInfo createdByUser) {
|
||||
this.createdByUser = createdByUser;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get createdAt
|
||||
* @return createdAt
|
||||
**/
|
||||
@JsonProperty("createdAt")
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public AuditEntry createdAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get values
|
||||
* @return values
|
||||
**/
|
||||
@JsonProperty("values")
|
||||
public Object getValues() {
|
||||
return values;
|
||||
}
|
||||
|
||||
public void setValues(Object values) {
|
||||
this.values = values;
|
||||
}
|
||||
|
||||
public AuditEntry values(Object values) {
|
||||
this.values = values;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AuditEntry {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" auditApplicationId: ").append(toIndentedString(auditApplicationId)).append("\n");
|
||||
sb.append(" createdByUser: ").append(toIndentedString(createdByUser)).append("\n");
|
||||
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
|
||||
sb.append(" values: ").append(toIndentedString(values)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AuditEntryEntry {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private AuditEntry entry = null;
|
||||
/**
|
||||
* Get entry
|
||||
* @return entry
|
||||
**/
|
||||
@JsonProperty("entry")
|
||||
public AuditEntry getEntry() {
|
||||
return entry;
|
||||
}
|
||||
|
||||
public void setEntry(AuditEntry entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public AuditEntryEntry entry(AuditEntry entry) {
|
||||
this.entry = entry;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AuditEntryEntry {\n");
|
||||
|
||||
sb.append(" entry: ").append(toIndentedString(entry)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AuditEntryPaging {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private AuditEntryPagingList _list = null;
|
||||
/**
|
||||
* Get _list
|
||||
* @return _list
|
||||
**/
|
||||
@JsonProperty("list")
|
||||
public AuditEntryPagingList getList() {
|
||||
return _list;
|
||||
}
|
||||
|
||||
public void setList(AuditEntryPagingList _list) {
|
||||
this._list = _list;
|
||||
}
|
||||
|
||||
public AuditEntryPaging _list(AuditEntryPagingList _list) {
|
||||
this._list = _list;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AuditEntryPaging {\n");
|
||||
|
||||
sb.append(" _list: ").append(toIndentedString(_list)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,79 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class AuditEntryPagingList {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Pagination pagination = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private List<AuditEntryEntry> entries = null;
|
||||
/**
|
||||
* Get pagination
|
||||
* @return pagination
|
||||
**/
|
||||
@JsonProperty("pagination")
|
||||
public Pagination getPagination() {
|
||||
return pagination;
|
||||
}
|
||||
|
||||
public void setPagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
}
|
||||
|
||||
public AuditEntryPagingList pagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get entries
|
||||
* @return entries
|
||||
**/
|
||||
@JsonProperty("entries")
|
||||
public List<AuditEntryEntry> getEntries() {
|
||||
return entries;
|
||||
}
|
||||
|
||||
public void setEntries(List<AuditEntryEntry> entries) {
|
||||
this.entries = entries;
|
||||
}
|
||||
|
||||
public AuditEntryPagingList entries(List<AuditEntryEntry> entries) {
|
||||
this.entries = entries;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AuditEntryPagingList addEntriesItem(AuditEntryEntry entriesItem) {
|
||||
this.entries.add(entriesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AuditEntryPagingList {\n");
|
||||
|
||||
sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n");
|
||||
sb.append(" entries: ").append(toIndentedString(entries)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,95 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class Capabilities {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean isAdmin = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean isGuest = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean isMutable = null;
|
||||
/**
|
||||
* Get isAdmin
|
||||
* @return isAdmin
|
||||
**/
|
||||
@JsonProperty("isAdmin")
|
||||
public Boolean isIsAdmin() {
|
||||
return isAdmin;
|
||||
}
|
||||
|
||||
public void setIsAdmin(Boolean isAdmin) {
|
||||
this.isAdmin = isAdmin;
|
||||
}
|
||||
|
||||
public Capabilities isAdmin(Boolean isAdmin) {
|
||||
this.isAdmin = isAdmin;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isGuest
|
||||
* @return isGuest
|
||||
**/
|
||||
@JsonProperty("isGuest")
|
||||
public Boolean isIsGuest() {
|
||||
return isGuest;
|
||||
}
|
||||
|
||||
public void setIsGuest(Boolean isGuest) {
|
||||
this.isGuest = isGuest;
|
||||
}
|
||||
|
||||
public Capabilities isGuest(Boolean isGuest) {
|
||||
this.isGuest = isGuest;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isMutable
|
||||
* @return isMutable
|
||||
**/
|
||||
@JsonProperty("isMutable")
|
||||
public Boolean isIsMutable() {
|
||||
return isMutable;
|
||||
}
|
||||
|
||||
public void setIsMutable(Boolean isMutable) {
|
||||
this.isMutable = isMutable;
|
||||
}
|
||||
|
||||
public Capabilities isMutable(Boolean isMutable) {
|
||||
this.isMutable = isMutable;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Capabilities {\n");
|
||||
|
||||
sb.append(" isAdmin: ").append(toIndentedString(isAdmin)).append("\n");
|
||||
sb.append(" isGuest: ").append(toIndentedString(isGuest)).append("\n");
|
||||
sb.append(" isMutable: ").append(toIndentedString(isMutable)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,73 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ChildAssociation {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String childId = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String assocType = null;
|
||||
/**
|
||||
* Get childId
|
||||
* @return childId
|
||||
**/
|
||||
@JsonProperty("childId")
|
||||
public String getChildId() {
|
||||
return childId;
|
||||
}
|
||||
|
||||
public void setChildId(String childId) {
|
||||
this.childId = childId;
|
||||
}
|
||||
|
||||
public ChildAssociation childId(String childId) {
|
||||
this.childId = childId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get assocType
|
||||
* @return assocType
|
||||
**/
|
||||
@JsonProperty("assocType")
|
||||
public String getAssocType() {
|
||||
return assocType;
|
||||
}
|
||||
|
||||
public void setAssocType(String assocType) {
|
||||
this.assocType = assocType;
|
||||
}
|
||||
|
||||
public ChildAssociation assocType(String assocType) {
|
||||
this.assocType = assocType;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ChildAssociation {\n");
|
||||
|
||||
sb.append(" childId: ").append(toIndentedString(childId)).append("\n");
|
||||
sb.append(" assocType: ").append(toIndentedString(assocType)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,73 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ChildAssociationBody {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String childId = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String assocType = null;
|
||||
/**
|
||||
* Get childId
|
||||
* @return childId
|
||||
**/
|
||||
@JsonProperty("childId")
|
||||
public String getChildId() {
|
||||
return childId;
|
||||
}
|
||||
|
||||
public void setChildId(String childId) {
|
||||
this.childId = childId;
|
||||
}
|
||||
|
||||
public ChildAssociationBody childId(String childId) {
|
||||
this.childId = childId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get assocType
|
||||
* @return assocType
|
||||
**/
|
||||
@JsonProperty("assocType")
|
||||
public String getAssocType() {
|
||||
return assocType;
|
||||
}
|
||||
|
||||
public void setAssocType(String assocType) {
|
||||
this.assocType = assocType;
|
||||
}
|
||||
|
||||
public ChildAssociationBody assocType(String assocType) {
|
||||
this.assocType = assocType;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ChildAssociationBody {\n");
|
||||
|
||||
sb.append(" childId: ").append(toIndentedString(childId)).append("\n");
|
||||
sb.append(" assocType: ").append(toIndentedString(assocType)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ChildAssociationEntry {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private ChildAssociation entry = null;
|
||||
/**
|
||||
* Get entry
|
||||
* @return entry
|
||||
**/
|
||||
@JsonProperty("entry")
|
||||
public ChildAssociation getEntry() {
|
||||
return entry;
|
||||
}
|
||||
|
||||
public void setEntry(ChildAssociation entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public ChildAssociationEntry entry(ChildAssociation entry) {
|
||||
this.entry = entry;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ChildAssociationEntry {\n");
|
||||
|
||||
sb.append(" entry: ").append(toIndentedString(entry)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,73 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ChildAssociationInfo {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String assocType = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Boolean isPrimary = null;
|
||||
/**
|
||||
* Get assocType
|
||||
* @return assocType
|
||||
**/
|
||||
@JsonProperty("assocType")
|
||||
public String getAssocType() {
|
||||
return assocType;
|
||||
}
|
||||
|
||||
public void setAssocType(String assocType) {
|
||||
this.assocType = assocType;
|
||||
}
|
||||
|
||||
public ChildAssociationInfo assocType(String assocType) {
|
||||
this.assocType = assocType;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isPrimary
|
||||
* @return isPrimary
|
||||
**/
|
||||
@JsonProperty("isPrimary")
|
||||
public Boolean isIsPrimary() {
|
||||
return isPrimary;
|
||||
}
|
||||
|
||||
public void setIsPrimary(Boolean isPrimary) {
|
||||
this.isPrimary = isPrimary;
|
||||
}
|
||||
|
||||
public ChildAssociationInfo isPrimary(Boolean isPrimary) {
|
||||
this.isPrimary = isPrimary;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ChildAssociationInfo {\n");
|
||||
|
||||
sb.append(" assocType: ").append(toIndentedString(assocType)).append("\n");
|
||||
sb.append(" isPrimary: ").append(toIndentedString(isPrimary)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,54 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ClientBody {
|
||||
|
||||
@ApiModelProperty(required = true, value = "the client name")
|
||||
/**
|
||||
* the client name
|
||||
**/
|
||||
private String client = null;
|
||||
/**
|
||||
* the client name
|
||||
* @return client
|
||||
**/
|
||||
@JsonProperty("client")
|
||||
public String getClient() {
|
||||
return client;
|
||||
}
|
||||
|
||||
public void setClient(String client) {
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
public ClientBody client(String client) {
|
||||
this.client = client;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ClientBody {\n");
|
||||
|
||||
sb.append(" client: ").append(toIndentedString(client)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
250
src/gen/java/com/inteligr8/alfresco/acs/model/Comment.java
Normal file
250
src/gen/java/com/inteligr8/alfresco/acs/model/Comment.java
Normal file
@ -0,0 +1,250 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class Comment {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String id = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String title = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String content = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Person createdBy = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Date createdAt = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Boolean edited = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Person modifiedBy = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Date modifiedAt = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Boolean canEdit = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Boolean canDelete = null;
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Comment id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get title
|
||||
* @return title
|
||||
**/
|
||||
@JsonProperty("title")
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public Comment title(String title) {
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get content
|
||||
* @return content
|
||||
**/
|
||||
@JsonProperty("content")
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public Comment content(String content) {
|
||||
this.content = content;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get createdBy
|
||||
* @return createdBy
|
||||
**/
|
||||
@JsonProperty("createdBy")
|
||||
public Person getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public void setCreatedBy(Person createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public Comment createdBy(Person createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get createdAt
|
||||
* @return createdAt
|
||||
**/
|
||||
@JsonProperty("createdAt")
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Comment createdAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get edited
|
||||
* @return edited
|
||||
**/
|
||||
@JsonProperty("edited")
|
||||
public Boolean isEdited() {
|
||||
return edited;
|
||||
}
|
||||
|
||||
public void setEdited(Boolean edited) {
|
||||
this.edited = edited;
|
||||
}
|
||||
|
||||
public Comment edited(Boolean edited) {
|
||||
this.edited = edited;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get modifiedBy
|
||||
* @return modifiedBy
|
||||
**/
|
||||
@JsonProperty("modifiedBy")
|
||||
public Person getModifiedBy() {
|
||||
return modifiedBy;
|
||||
}
|
||||
|
||||
public void setModifiedBy(Person modifiedBy) {
|
||||
this.modifiedBy = modifiedBy;
|
||||
}
|
||||
|
||||
public Comment modifiedBy(Person modifiedBy) {
|
||||
this.modifiedBy = modifiedBy;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get modifiedAt
|
||||
* @return modifiedAt
|
||||
**/
|
||||
@JsonProperty("modifiedAt")
|
||||
public Date getModifiedAt() {
|
||||
return modifiedAt;
|
||||
}
|
||||
|
||||
public void setModifiedAt(Date modifiedAt) {
|
||||
this.modifiedAt = modifiedAt;
|
||||
}
|
||||
|
||||
public Comment modifiedAt(Date modifiedAt) {
|
||||
this.modifiedAt = modifiedAt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get canEdit
|
||||
* @return canEdit
|
||||
**/
|
||||
@JsonProperty("canEdit")
|
||||
public Boolean isCanEdit() {
|
||||
return canEdit;
|
||||
}
|
||||
|
||||
public void setCanEdit(Boolean canEdit) {
|
||||
this.canEdit = canEdit;
|
||||
}
|
||||
|
||||
public Comment canEdit(Boolean canEdit) {
|
||||
this.canEdit = canEdit;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get canDelete
|
||||
* @return canDelete
|
||||
**/
|
||||
@JsonProperty("canDelete")
|
||||
public Boolean isCanDelete() {
|
||||
return canDelete;
|
||||
}
|
||||
|
||||
public void setCanDelete(Boolean canDelete) {
|
||||
this.canDelete = canDelete;
|
||||
}
|
||||
|
||||
public Comment canDelete(Boolean canDelete) {
|
||||
this.canDelete = canDelete;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Comment {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" title: ").append(toIndentedString(title)).append("\n");
|
||||
sb.append(" content: ").append(toIndentedString(content)).append("\n");
|
||||
sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n");
|
||||
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
|
||||
sb.append(" edited: ").append(toIndentedString(edited)).append("\n");
|
||||
sb.append(" modifiedBy: ").append(toIndentedString(modifiedBy)).append("\n");
|
||||
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
|
||||
sb.append(" canEdit: ").append(toIndentedString(canEdit)).append("\n");
|
||||
sb.append(" canDelete: ").append(toIndentedString(canDelete)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class CommentBody {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String content = null;
|
||||
/**
|
||||
* Get content
|
||||
* @return content
|
||||
**/
|
||||
@JsonProperty("content")
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public CommentBody content(String content) {
|
||||
this.content = content;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CommentBody {\n");
|
||||
|
||||
sb.append(" content: ").append(toIndentedString(content)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class CommentEntry {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Comment entry = null;
|
||||
/**
|
||||
* Get entry
|
||||
* @return entry
|
||||
**/
|
||||
@JsonProperty("entry")
|
||||
public Comment getEntry() {
|
||||
return entry;
|
||||
}
|
||||
|
||||
public void setEntry(Comment entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public CommentEntry entry(Comment entry) {
|
||||
this.entry = entry;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CommentEntry {\n");
|
||||
|
||||
sb.append(" entry: ").append(toIndentedString(entry)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class CommentPaging {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private CommentPagingList _list = null;
|
||||
/**
|
||||
* Get _list
|
||||
* @return _list
|
||||
**/
|
||||
@JsonProperty("list")
|
||||
public CommentPagingList getList() {
|
||||
return _list;
|
||||
}
|
||||
|
||||
public void setList(CommentPagingList _list) {
|
||||
this._list = _list;
|
||||
}
|
||||
|
||||
public CommentPaging _list(CommentPagingList _list) {
|
||||
this._list = _list;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CommentPaging {\n");
|
||||
|
||||
sb.append(" _list: ").append(toIndentedString(_list)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,80 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class CommentPagingList {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Pagination pagination = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private List<CommentEntry> entries = new ArrayList<CommentEntry>();
|
||||
/**
|
||||
* Get pagination
|
||||
* @return pagination
|
||||
**/
|
||||
@JsonProperty("pagination")
|
||||
public Pagination getPagination() {
|
||||
return pagination;
|
||||
}
|
||||
|
||||
public void setPagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
}
|
||||
|
||||
public CommentPagingList pagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get entries
|
||||
* @return entries
|
||||
**/
|
||||
@JsonProperty("entries")
|
||||
public List<CommentEntry> getEntries() {
|
||||
return entries;
|
||||
}
|
||||
|
||||
public void setEntries(List<CommentEntry> entries) {
|
||||
this.entries = entries;
|
||||
}
|
||||
|
||||
public CommentPagingList entries(List<CommentEntry> entries) {
|
||||
this.entries = entries;
|
||||
return this;
|
||||
}
|
||||
|
||||
public CommentPagingList addEntriesItem(CommentEntry entriesItem) {
|
||||
this.entries.add(entriesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CommentPagingList {\n");
|
||||
|
||||
sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n");
|
||||
sb.append(" entries: ").append(toIndentedString(entries)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
205
src/gen/java/com/inteligr8/alfresco/acs/model/Company.java
Normal file
205
src/gen/java/com/inteligr8/alfresco/acs/model/Company.java
Normal file
@ -0,0 +1,205 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class Company {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String organization = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String address1 = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String address2 = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String address3 = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String postcode = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String telephone = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String fax = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String email = null;
|
||||
/**
|
||||
* Get organization
|
||||
* @return organization
|
||||
**/
|
||||
@JsonProperty("organization")
|
||||
public String getOrganization() {
|
||||
return organization;
|
||||
}
|
||||
|
||||
public void setOrganization(String organization) {
|
||||
this.organization = organization;
|
||||
}
|
||||
|
||||
public Company organization(String organization) {
|
||||
this.organization = organization;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get address1
|
||||
* @return address1
|
||||
**/
|
||||
@JsonProperty("address1")
|
||||
public String getAddress1() {
|
||||
return address1;
|
||||
}
|
||||
|
||||
public void setAddress1(String address1) {
|
||||
this.address1 = address1;
|
||||
}
|
||||
|
||||
public Company address1(String address1) {
|
||||
this.address1 = address1;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get address2
|
||||
* @return address2
|
||||
**/
|
||||
@JsonProperty("address2")
|
||||
public String getAddress2() {
|
||||
return address2;
|
||||
}
|
||||
|
||||
public void setAddress2(String address2) {
|
||||
this.address2 = address2;
|
||||
}
|
||||
|
||||
public Company address2(String address2) {
|
||||
this.address2 = address2;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get address3
|
||||
* @return address3
|
||||
**/
|
||||
@JsonProperty("address3")
|
||||
public String getAddress3() {
|
||||
return address3;
|
||||
}
|
||||
|
||||
public void setAddress3(String address3) {
|
||||
this.address3 = address3;
|
||||
}
|
||||
|
||||
public Company address3(String address3) {
|
||||
this.address3 = address3;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get postcode
|
||||
* @return postcode
|
||||
**/
|
||||
@JsonProperty("postcode")
|
||||
public String getPostcode() {
|
||||
return postcode;
|
||||
}
|
||||
|
||||
public void setPostcode(String postcode) {
|
||||
this.postcode = postcode;
|
||||
}
|
||||
|
||||
public Company postcode(String postcode) {
|
||||
this.postcode = postcode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get telephone
|
||||
* @return telephone
|
||||
**/
|
||||
@JsonProperty("telephone")
|
||||
public String getTelephone() {
|
||||
return telephone;
|
||||
}
|
||||
|
||||
public void setTelephone(String telephone) {
|
||||
this.telephone = telephone;
|
||||
}
|
||||
|
||||
public Company telephone(String telephone) {
|
||||
this.telephone = telephone;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get fax
|
||||
* @return fax
|
||||
**/
|
||||
@JsonProperty("fax")
|
||||
public String getFax() {
|
||||
return fax;
|
||||
}
|
||||
|
||||
public void setFax(String fax) {
|
||||
this.fax = fax;
|
||||
}
|
||||
|
||||
public Company fax(String fax) {
|
||||
this.fax = fax;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get email
|
||||
* @return email
|
||||
**/
|
||||
@JsonProperty("email")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public Company email(String email) {
|
||||
this.email = email;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Company {\n");
|
||||
|
||||
sb.append(" organization: ").append(toIndentedString(organization)).append("\n");
|
||||
sb.append(" address1: ").append(toIndentedString(address1)).append("\n");
|
||||
sb.append(" address2: ").append(toIndentedString(address2)).append("\n");
|
||||
sb.append(" address3: ").append(toIndentedString(address3)).append("\n");
|
||||
sb.append(" postcode: ").append(toIndentedString(postcode)).append("\n");
|
||||
sb.append(" telephone: ").append(toIndentedString(telephone)).append("\n");
|
||||
sb.append(" fax: ").append(toIndentedString(fax)).append("\n");
|
||||
sb.append(" email: ").append(toIndentedString(email)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
154
src/gen/java/com/inteligr8/alfresco/acs/model/Constraint.java
Normal file
154
src/gen/java/com/inteligr8/alfresco/acs/model/Constraint.java
Normal file
@ -0,0 +1,154 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Map;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class Constraint {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String id = null;
|
||||
|
||||
@ApiModelProperty(value = "the type of the constraint")
|
||||
/**
|
||||
* the type of the constraint
|
||||
**/
|
||||
private String type = null;
|
||||
|
||||
@ApiModelProperty(value = "the human-readable constraint title")
|
||||
/**
|
||||
* the human-readable constraint title
|
||||
**/
|
||||
private String title = null;
|
||||
|
||||
@ApiModelProperty(value = "the human-readable constraint description")
|
||||
/**
|
||||
* the human-readable constraint description
|
||||
**/
|
||||
private String description = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Map<String, Object> parameters = null;
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Constraint id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* the type of the constraint
|
||||
* @return type
|
||||
**/
|
||||
@JsonProperty("type")
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Constraint type(String type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* the human-readable constraint title
|
||||
* @return title
|
||||
**/
|
||||
@JsonProperty("title")
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public Constraint title(String title) {
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* the human-readable constraint description
|
||||
* @return description
|
||||
**/
|
||||
@JsonProperty("description")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Constraint description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get parameters
|
||||
* @return parameters
|
||||
**/
|
||||
@JsonProperty("parameters")
|
||||
public Map<String, Object> getParameters() {
|
||||
return parameters;
|
||||
}
|
||||
|
||||
public void setParameters(Map<String, Object> parameters) {
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
public Constraint parameters(Map<String, Object> parameters) {
|
||||
this.parameters = parameters;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Constraint putParametersItem(String key, Object parametersItem) {
|
||||
this.parameters.put(key, parametersItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Constraint {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
||||
sb.append(" title: ").append(toIndentedString(title)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
139
src/gen/java/com/inteligr8/alfresco/acs/model/ContentInfo.java
Normal file
139
src/gen/java/com/inteligr8/alfresco/acs/model/ContentInfo.java
Normal file
@ -0,0 +1,139 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ContentInfo {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String mimeType = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String mimeTypeName = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Integer sizeInBytes = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String encoding = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String mimeTypeGroup = null;
|
||||
/**
|
||||
* Get mimeType
|
||||
* @return mimeType
|
||||
**/
|
||||
@JsonProperty("mimeType")
|
||||
public String getMimeType() {
|
||||
return mimeType;
|
||||
}
|
||||
|
||||
public void setMimeType(String mimeType) {
|
||||
this.mimeType = mimeType;
|
||||
}
|
||||
|
||||
public ContentInfo mimeType(String mimeType) {
|
||||
this.mimeType = mimeType;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get mimeTypeName
|
||||
* @return mimeTypeName
|
||||
**/
|
||||
@JsonProperty("mimeTypeName")
|
||||
public String getMimeTypeName() {
|
||||
return mimeTypeName;
|
||||
}
|
||||
|
||||
public void setMimeTypeName(String mimeTypeName) {
|
||||
this.mimeTypeName = mimeTypeName;
|
||||
}
|
||||
|
||||
public ContentInfo mimeTypeName(String mimeTypeName) {
|
||||
this.mimeTypeName = mimeTypeName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get sizeInBytes
|
||||
* @return sizeInBytes
|
||||
**/
|
||||
@JsonProperty("sizeInBytes")
|
||||
public Integer getSizeInBytes() {
|
||||
return sizeInBytes;
|
||||
}
|
||||
|
||||
public void setSizeInBytes(Integer sizeInBytes) {
|
||||
this.sizeInBytes = sizeInBytes;
|
||||
}
|
||||
|
||||
public ContentInfo sizeInBytes(Integer sizeInBytes) {
|
||||
this.sizeInBytes = sizeInBytes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get encoding
|
||||
* @return encoding
|
||||
**/
|
||||
@JsonProperty("encoding")
|
||||
public String getEncoding() {
|
||||
return encoding;
|
||||
}
|
||||
|
||||
public void setEncoding(String encoding) {
|
||||
this.encoding = encoding;
|
||||
}
|
||||
|
||||
public ContentInfo encoding(String encoding) {
|
||||
this.encoding = encoding;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get mimeTypeGroup
|
||||
* @return mimeTypeGroup
|
||||
**/
|
||||
@JsonProperty("mimeTypeGroup")
|
||||
public String getMimeTypeGroup() {
|
||||
return mimeTypeGroup;
|
||||
}
|
||||
|
||||
public void setMimeTypeGroup(String mimeTypeGroup) {
|
||||
this.mimeTypeGroup = mimeTypeGroup;
|
||||
}
|
||||
|
||||
public ContentInfo mimeTypeGroup(String mimeTypeGroup) {
|
||||
this.mimeTypeGroup = mimeTypeGroup;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ContentInfo {\n");
|
||||
|
||||
sb.append(" mimeType: ").append(toIndentedString(mimeType)).append("\n");
|
||||
sb.append(" mimeTypeName: ").append(toIndentedString(mimeTypeName)).append("\n");
|
||||
sb.append(" sizeInBytes: ").append(toIndentedString(sizeInBytes)).append("\n");
|
||||
sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n");
|
||||
sb.append(" mimeTypeGroup: ").append(toIndentedString(mimeTypeGroup)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,60 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class Definition {
|
||||
|
||||
@ApiModelProperty(value = "List of property definitions effective for this node as the result of combining the type with all aspects.")
|
||||
/**
|
||||
* List of property definitions effective for this node as the result of combining the type with all aspects.
|
||||
**/
|
||||
private List<Property> properties = null;
|
||||
/**
|
||||
* List of property definitions effective for this node as the result of combining the type with all aspects.
|
||||
* @return properties
|
||||
**/
|
||||
@JsonProperty("properties")
|
||||
public List<Property> getProperties() {
|
||||
return properties;
|
||||
}
|
||||
|
||||
public void setProperties(List<Property> properties) {
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
public Definition properties(List<Property> properties) {
|
||||
this.properties = properties;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Definition addPropertiesItem(Property propertiesItem) {
|
||||
this.properties.add(propertiesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Definition {\n");
|
||||
|
||||
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,73 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
|
||||
public class DeletedNode extends Node {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private UserInfo archivedByUser = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Date archivedAt = null;
|
||||
/**
|
||||
* Get archivedByUser
|
||||
* @return archivedByUser
|
||||
**/
|
||||
@JsonProperty("archivedByUser")
|
||||
public UserInfo getArchivedByUser() {
|
||||
return archivedByUser;
|
||||
}
|
||||
|
||||
public void setArchivedByUser(UserInfo archivedByUser) {
|
||||
this.archivedByUser = archivedByUser;
|
||||
}
|
||||
|
||||
public DeletedNode archivedByUser(UserInfo archivedByUser) {
|
||||
this.archivedByUser = archivedByUser;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get archivedAt
|
||||
* @return archivedAt
|
||||
**/
|
||||
@JsonProperty("archivedAt")
|
||||
public Date getArchivedAt() {
|
||||
return archivedAt;
|
||||
}
|
||||
|
||||
public void setArchivedAt(Date archivedAt) {
|
||||
this.archivedAt = archivedAt;
|
||||
}
|
||||
|
||||
public DeletedNode archivedAt(Date archivedAt) {
|
||||
this.archivedAt = archivedAt;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DeletedNode {\n");
|
||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||
sb.append(" archivedByUser: ").append(toIndentedString(archivedByUser)).append("\n");
|
||||
sb.append(" archivedAt: ").append(toIndentedString(archivedAt)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,73 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class DeletedNodeBodyRestore {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String targetParentId = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String assocType = null;
|
||||
/**
|
||||
* Get targetParentId
|
||||
* @return targetParentId
|
||||
**/
|
||||
@JsonProperty("targetParentId")
|
||||
public String getTargetParentId() {
|
||||
return targetParentId;
|
||||
}
|
||||
|
||||
public void setTargetParentId(String targetParentId) {
|
||||
this.targetParentId = targetParentId;
|
||||
}
|
||||
|
||||
public DeletedNodeBodyRestore targetParentId(String targetParentId) {
|
||||
this.targetParentId = targetParentId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get assocType
|
||||
* @return assocType
|
||||
**/
|
||||
@JsonProperty("assocType")
|
||||
public String getAssocType() {
|
||||
return assocType;
|
||||
}
|
||||
|
||||
public void setAssocType(String assocType) {
|
||||
this.assocType = assocType;
|
||||
}
|
||||
|
||||
public DeletedNodeBodyRestore assocType(String assocType) {
|
||||
this.assocType = assocType;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DeletedNodeBodyRestore {\n");
|
||||
|
||||
sb.append(" targetParentId: ").append(toIndentedString(targetParentId)).append("\n");
|
||||
sb.append(" assocType: ").append(toIndentedString(assocType)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class DeletedNodeEntry {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private DeletedNode entry = null;
|
||||
/**
|
||||
* Get entry
|
||||
* @return entry
|
||||
**/
|
||||
@JsonProperty("entry")
|
||||
public DeletedNode getEntry() {
|
||||
return entry;
|
||||
}
|
||||
|
||||
public void setEntry(DeletedNode entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public DeletedNodeEntry entry(DeletedNode entry) {
|
||||
this.entry = entry;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DeletedNodeEntry {\n");
|
||||
|
||||
sb.append(" entry: ").append(toIndentedString(entry)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class DeletedNodesPaging {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private DeletedNodesPagingList _list = null;
|
||||
/**
|
||||
* Get _list
|
||||
* @return _list
|
||||
**/
|
||||
@JsonProperty("list")
|
||||
public DeletedNodesPagingList getList() {
|
||||
return _list;
|
||||
}
|
||||
|
||||
public void setList(DeletedNodesPagingList _list) {
|
||||
this._list = _list;
|
||||
}
|
||||
|
||||
public DeletedNodesPaging _list(DeletedNodesPagingList _list) {
|
||||
this._list = _list;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DeletedNodesPaging {\n");
|
||||
|
||||
sb.append(" _list: ").append(toIndentedString(_list)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,79 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class DeletedNodesPagingList {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Pagination pagination = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private List<DeletedNodeEntry> entries = null;
|
||||
/**
|
||||
* Get pagination
|
||||
* @return pagination
|
||||
**/
|
||||
@JsonProperty("pagination")
|
||||
public Pagination getPagination() {
|
||||
return pagination;
|
||||
}
|
||||
|
||||
public void setPagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
}
|
||||
|
||||
public DeletedNodesPagingList pagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get entries
|
||||
* @return entries
|
||||
**/
|
||||
@JsonProperty("entries")
|
||||
public List<DeletedNodeEntry> getEntries() {
|
||||
return entries;
|
||||
}
|
||||
|
||||
public void setEntries(List<DeletedNodeEntry> entries) {
|
||||
this.entries = entries;
|
||||
}
|
||||
|
||||
public DeletedNodesPagingList entries(List<DeletedNodeEntry> entries) {
|
||||
this.entries = entries;
|
||||
return this;
|
||||
}
|
||||
|
||||
public DeletedNodesPagingList addEntriesItem(DeletedNodeEntry entriesItem) {
|
||||
this.entries.add(entriesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DeletedNodesPagingList {\n");
|
||||
|
||||
sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n");
|
||||
sb.append(" entries: ").append(toIndentedString(entries)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,78 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class DirectAccessUrlBodyCreate {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Date expiresAt = null;
|
||||
|
||||
@ApiModelProperty(value = "The length of time in seconds that the url is valid for. ")
|
||||
/**
|
||||
* The length of time in seconds that the url is valid for.
|
||||
**/
|
||||
private Integer validFor = null;
|
||||
/**
|
||||
* Get expiresAt
|
||||
* @return expiresAt
|
||||
**/
|
||||
@JsonProperty("expiresAt")
|
||||
public Date getExpiresAt() {
|
||||
return expiresAt;
|
||||
}
|
||||
|
||||
public void setExpiresAt(Date expiresAt) {
|
||||
this.expiresAt = expiresAt;
|
||||
}
|
||||
|
||||
public DirectAccessUrlBodyCreate expiresAt(Date expiresAt) {
|
||||
this.expiresAt = expiresAt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The length of time in seconds that the url is valid for.
|
||||
* minimum: 1
|
||||
* @return validFor
|
||||
**/
|
||||
@JsonProperty("validFor")
|
||||
public Integer getValidFor() {
|
||||
return validFor;
|
||||
}
|
||||
|
||||
public void setValidFor(Integer validFor) {
|
||||
this.validFor = validFor;
|
||||
}
|
||||
|
||||
public DirectAccessUrlBodyCreate validFor(Integer validFor) {
|
||||
this.validFor = validFor;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DirectAccessUrlBodyCreate {\n");
|
||||
|
||||
sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n");
|
||||
sb.append(" validFor: ").append(toIndentedString(validFor)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class DiscoveryEntry {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private RepositoryEntry entry = null;
|
||||
/**
|
||||
* Get entry
|
||||
* @return entry
|
||||
**/
|
||||
@JsonProperty("entry")
|
||||
public RepositoryEntry getEntry() {
|
||||
return entry;
|
||||
}
|
||||
|
||||
public void setEntry(RepositoryEntry entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public DiscoveryEntry entry(RepositoryEntry entry) {
|
||||
this.entry = entry;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DiscoveryEntry {\n");
|
||||
|
||||
sb.append(" entry: ").append(toIndentedString(entry)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
218
src/gen/java/com/inteligr8/alfresco/acs/model/Download.java
Normal file
218
src/gen/java/com/inteligr8/alfresco/acs/model/Download.java
Normal file
@ -0,0 +1,218 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class Download {
|
||||
|
||||
@ApiModelProperty(value = "number of files added so far in the zip")
|
||||
/**
|
||||
* number of files added so far in the zip
|
||||
**/
|
||||
private Integer filesAdded = null;
|
||||
|
||||
@ApiModelProperty(value = "number of bytes added so far in the zip")
|
||||
/**
|
||||
* number of bytes added so far in the zip
|
||||
**/
|
||||
private Integer bytesAdded = null;
|
||||
|
||||
@ApiModelProperty(value = "the id of the download node")
|
||||
/**
|
||||
* the id of the download node
|
||||
**/
|
||||
private String id = null;
|
||||
|
||||
@ApiModelProperty(value = "the total number of files to be added in the zip")
|
||||
/**
|
||||
* the total number of files to be added in the zip
|
||||
**/
|
||||
private Integer totalFiles = null;
|
||||
|
||||
@ApiModelProperty(value = "the total number of bytes to be added in the zip")
|
||||
/**
|
||||
* the total number of bytes to be added in the zip
|
||||
**/
|
||||
private Integer totalBytes = null;
|
||||
|
||||
|
||||
@XmlType(name="StatusEnum")
|
||||
@XmlEnum(String.class)
|
||||
public enum StatusEnum {
|
||||
|
||||
@XmlEnumValue("PENDING") PENDING(String.valueOf("PENDING")), @XmlEnumValue("CANCELLED") CANCELLED(String.valueOf("CANCELLED")), @XmlEnumValue("IN_PROGRESS") IN_PROGRESS(String.valueOf("IN_PROGRESS")), @XmlEnumValue("DONE") DONE(String.valueOf("DONE")), @XmlEnumValue("MAX_CONTENT_SIZE_EXCEEDED") MAX_CONTENT_SIZE_EXCEEDED(String.valueOf("MAX_CONTENT_SIZE_EXCEEDED"));
|
||||
|
||||
|
||||
private String value;
|
||||
|
||||
StatusEnum (String v) {
|
||||
value = v;
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
|
||||
public static StatusEnum fromValue(String v) {
|
||||
for (StatusEnum b : StatusEnum.values()) {
|
||||
if (String.valueOf(b.value).equals(v)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "the current status of the download node creation")
|
||||
/**
|
||||
* the current status of the download node creation
|
||||
**/
|
||||
private StatusEnum status = StatusEnum.PENDING;
|
||||
/**
|
||||
* number of files added so far in the zip
|
||||
* @return filesAdded
|
||||
**/
|
||||
@JsonProperty("filesAdded")
|
||||
public Integer getFilesAdded() {
|
||||
return filesAdded;
|
||||
}
|
||||
|
||||
public void setFilesAdded(Integer filesAdded) {
|
||||
this.filesAdded = filesAdded;
|
||||
}
|
||||
|
||||
public Download filesAdded(Integer filesAdded) {
|
||||
this.filesAdded = filesAdded;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* number of bytes added so far in the zip
|
||||
* @return bytesAdded
|
||||
**/
|
||||
@JsonProperty("bytesAdded")
|
||||
public Integer getBytesAdded() {
|
||||
return bytesAdded;
|
||||
}
|
||||
|
||||
public void setBytesAdded(Integer bytesAdded) {
|
||||
this.bytesAdded = bytesAdded;
|
||||
}
|
||||
|
||||
public Download bytesAdded(Integer bytesAdded) {
|
||||
this.bytesAdded = bytesAdded;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* the id of the download node
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Download id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* the total number of files to be added in the zip
|
||||
* @return totalFiles
|
||||
**/
|
||||
@JsonProperty("totalFiles")
|
||||
public Integer getTotalFiles() {
|
||||
return totalFiles;
|
||||
}
|
||||
|
||||
public void setTotalFiles(Integer totalFiles) {
|
||||
this.totalFiles = totalFiles;
|
||||
}
|
||||
|
||||
public Download totalFiles(Integer totalFiles) {
|
||||
this.totalFiles = totalFiles;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* the total number of bytes to be added in the zip
|
||||
* @return totalBytes
|
||||
**/
|
||||
@JsonProperty("totalBytes")
|
||||
public Integer getTotalBytes() {
|
||||
return totalBytes;
|
||||
}
|
||||
|
||||
public void setTotalBytes(Integer totalBytes) {
|
||||
this.totalBytes = totalBytes;
|
||||
}
|
||||
|
||||
public Download totalBytes(Integer totalBytes) {
|
||||
this.totalBytes = totalBytes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* the current status of the download node creation
|
||||
* @return status
|
||||
**/
|
||||
@JsonProperty("status")
|
||||
public String getStatus() {
|
||||
if (status == null) {
|
||||
return null;
|
||||
}
|
||||
return status.value();
|
||||
}
|
||||
|
||||
public void setStatus(StatusEnum status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Download status(StatusEnum status) {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Download {\n");
|
||||
|
||||
sb.append(" filesAdded: ").append(toIndentedString(filesAdded)).append("\n");
|
||||
sb.append(" bytesAdded: ").append(toIndentedString(bytesAdded)).append("\n");
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" totalFiles: ").append(toIndentedString(totalFiles)).append("\n");
|
||||
sb.append(" totalBytes: ").append(toIndentedString(totalBytes)).append("\n");
|
||||
sb.append(" status: ").append(toIndentedString(status)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,58 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class DownloadBodyCreate {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private List<String> nodeIds = new ArrayList<String>();
|
||||
/**
|
||||
* Get nodeIds
|
||||
* @return nodeIds
|
||||
**/
|
||||
@JsonProperty("nodeIds")
|
||||
public List<String> getNodeIds() {
|
||||
return nodeIds;
|
||||
}
|
||||
|
||||
public void setNodeIds(List<String> nodeIds) {
|
||||
this.nodeIds = nodeIds;
|
||||
}
|
||||
|
||||
public DownloadBodyCreate nodeIds(List<String> nodeIds) {
|
||||
this.nodeIds = nodeIds;
|
||||
return this;
|
||||
}
|
||||
|
||||
public DownloadBodyCreate addNodeIdsItem(String nodeIdsItem) {
|
||||
this.nodeIds.add(nodeIdsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DownloadBodyCreate {\n");
|
||||
|
||||
sb.append(" nodeIds: ").append(toIndentedString(nodeIds)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class DownloadEntry {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Download entry = null;
|
||||
/**
|
||||
* Get entry
|
||||
* @return entry
|
||||
**/
|
||||
@JsonProperty("entry")
|
||||
public Download getEntry() {
|
||||
return entry;
|
||||
}
|
||||
|
||||
public void setEntry(Download entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public DownloadEntry entry(Download entry) {
|
||||
this.entry = entry;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DownloadEntry {\n");
|
||||
|
||||
sb.append(" entry: ").append(toIndentedString(entry)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,117 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class EntitlementsInfo {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Long maxUsers = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Long maxDocs = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean isClusterEnabled = false;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean isCryptodocEnabled = false;
|
||||
/**
|
||||
* Get maxUsers
|
||||
* @return maxUsers
|
||||
**/
|
||||
@JsonProperty("maxUsers")
|
||||
public Long getMaxUsers() {
|
||||
return maxUsers;
|
||||
}
|
||||
|
||||
public void setMaxUsers(Long maxUsers) {
|
||||
this.maxUsers = maxUsers;
|
||||
}
|
||||
|
||||
public EntitlementsInfo maxUsers(Long maxUsers) {
|
||||
this.maxUsers = maxUsers;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get maxDocs
|
||||
* @return maxDocs
|
||||
**/
|
||||
@JsonProperty("maxDocs")
|
||||
public Long getMaxDocs() {
|
||||
return maxDocs;
|
||||
}
|
||||
|
||||
public void setMaxDocs(Long maxDocs) {
|
||||
this.maxDocs = maxDocs;
|
||||
}
|
||||
|
||||
public EntitlementsInfo maxDocs(Long maxDocs) {
|
||||
this.maxDocs = maxDocs;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isClusterEnabled
|
||||
* @return isClusterEnabled
|
||||
**/
|
||||
@JsonProperty("isClusterEnabled")
|
||||
public Boolean isIsClusterEnabled() {
|
||||
return isClusterEnabled;
|
||||
}
|
||||
|
||||
public void setIsClusterEnabled(Boolean isClusterEnabled) {
|
||||
this.isClusterEnabled = isClusterEnabled;
|
||||
}
|
||||
|
||||
public EntitlementsInfo isClusterEnabled(Boolean isClusterEnabled) {
|
||||
this.isClusterEnabled = isClusterEnabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isCryptodocEnabled
|
||||
* @return isCryptodocEnabled
|
||||
**/
|
||||
@JsonProperty("isCryptodocEnabled")
|
||||
public Boolean isIsCryptodocEnabled() {
|
||||
return isCryptodocEnabled;
|
||||
}
|
||||
|
||||
public void setIsCryptodocEnabled(Boolean isCryptodocEnabled) {
|
||||
this.isCryptodocEnabled = isCryptodocEnabled;
|
||||
}
|
||||
|
||||
public EntitlementsInfo isCryptodocEnabled(Boolean isCryptodocEnabled) {
|
||||
this.isCryptodocEnabled = isCryptodocEnabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class EntitlementsInfo {\n");
|
||||
|
||||
sb.append(" maxUsers: ").append(toIndentedString(maxUsers)).append("\n");
|
||||
sb.append(" maxDocs: ").append(toIndentedString(maxDocs)).append("\n");
|
||||
sb.append(" isClusterEnabled: ").append(toIndentedString(isClusterEnabled)).append("\n");
|
||||
sb.append(" isCryptodocEnabled: ").append(toIndentedString(isCryptodocEnabled)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
51
src/gen/java/com/inteligr8/alfresco/acs/model/Error.java
Normal file
51
src/gen/java/com/inteligr8/alfresco/acs/model/Error.java
Normal file
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class Error {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private ErrorError error = null;
|
||||
/**
|
||||
* Get error
|
||||
* @return error
|
||||
**/
|
||||
@JsonProperty("error")
|
||||
public ErrorError getError() {
|
||||
return error;
|
||||
}
|
||||
|
||||
public void setError(ErrorError error) {
|
||||
this.error = error;
|
||||
}
|
||||
|
||||
public Error error(ErrorError error) {
|
||||
this.error = error;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Error {\n");
|
||||
|
||||
sb.append(" error: ").append(toIndentedString(error)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
161
src/gen/java/com/inteligr8/alfresco/acs/model/ErrorError.java
Normal file
161
src/gen/java/com/inteligr8/alfresco/acs/model/ErrorError.java
Normal file
@ -0,0 +1,161 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ErrorError {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String errorKey = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Integer statusCode = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String briefSummary = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String stackTrace = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String descriptionURL = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String logId = null;
|
||||
/**
|
||||
* Get errorKey
|
||||
* @return errorKey
|
||||
**/
|
||||
@JsonProperty("errorKey")
|
||||
public String getErrorKey() {
|
||||
return errorKey;
|
||||
}
|
||||
|
||||
public void setErrorKey(String errorKey) {
|
||||
this.errorKey = errorKey;
|
||||
}
|
||||
|
||||
public ErrorError errorKey(String errorKey) {
|
||||
this.errorKey = errorKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get statusCode
|
||||
* @return statusCode
|
||||
**/
|
||||
@JsonProperty("statusCode")
|
||||
public Integer getStatusCode() {
|
||||
return statusCode;
|
||||
}
|
||||
|
||||
public void setStatusCode(Integer statusCode) {
|
||||
this.statusCode = statusCode;
|
||||
}
|
||||
|
||||
public ErrorError statusCode(Integer statusCode) {
|
||||
this.statusCode = statusCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get briefSummary
|
||||
* @return briefSummary
|
||||
**/
|
||||
@JsonProperty("briefSummary")
|
||||
public String getBriefSummary() {
|
||||
return briefSummary;
|
||||
}
|
||||
|
||||
public void setBriefSummary(String briefSummary) {
|
||||
this.briefSummary = briefSummary;
|
||||
}
|
||||
|
||||
public ErrorError briefSummary(String briefSummary) {
|
||||
this.briefSummary = briefSummary;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get stackTrace
|
||||
* @return stackTrace
|
||||
**/
|
||||
@JsonProperty("stackTrace")
|
||||
public String getStackTrace() {
|
||||
return stackTrace;
|
||||
}
|
||||
|
||||
public void setStackTrace(String stackTrace) {
|
||||
this.stackTrace = stackTrace;
|
||||
}
|
||||
|
||||
public ErrorError stackTrace(String stackTrace) {
|
||||
this.stackTrace = stackTrace;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get descriptionURL
|
||||
* @return descriptionURL
|
||||
**/
|
||||
@JsonProperty("descriptionURL")
|
||||
public String getDescriptionURL() {
|
||||
return descriptionURL;
|
||||
}
|
||||
|
||||
public void setDescriptionURL(String descriptionURL) {
|
||||
this.descriptionURL = descriptionURL;
|
||||
}
|
||||
|
||||
public ErrorError descriptionURL(String descriptionURL) {
|
||||
this.descriptionURL = descriptionURL;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get logId
|
||||
* @return logId
|
||||
**/
|
||||
@JsonProperty("logId")
|
||||
public String getLogId() {
|
||||
return logId;
|
||||
}
|
||||
|
||||
public void setLogId(String logId) {
|
||||
this.logId = logId;
|
||||
}
|
||||
|
||||
public ErrorError logId(String logId) {
|
||||
this.logId = logId;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ErrorError {\n");
|
||||
|
||||
sb.append(" errorKey: ").append(toIndentedString(errorKey)).append("\n");
|
||||
sb.append(" statusCode: ").append(toIndentedString(statusCode)).append("\n");
|
||||
sb.append(" briefSummary: ").append(toIndentedString(briefSummary)).append("\n");
|
||||
sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n");
|
||||
sb.append(" descriptionURL: ").append(toIndentedString(descriptionURL)).append("\n");
|
||||
sb.append(" logId: ").append(toIndentedString(logId)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
131
src/gen/java/com/inteligr8/alfresco/acs/model/Favorite.java
Normal file
131
src/gen/java/com/inteligr8/alfresco/acs/model/Favorite.java
Normal file
@ -0,0 +1,131 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* A favorite describes an Alfresco entity that a person has marked as a favorite. The target can be a site, file or folder.
|
||||
**/
|
||||
@ApiModel(description="A favorite describes an Alfresco entity that a person has marked as a favorite. The target can be a site, file or folder. ")@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class Favorite {
|
||||
|
||||
@ApiModelProperty(required = true, value = "The guid of the object that is a favorite.")
|
||||
/**
|
||||
* The guid of the object that is a favorite.
|
||||
**/
|
||||
private String targetGuid = null;
|
||||
|
||||
@ApiModelProperty(value = "The time the object was made a favorite.")
|
||||
/**
|
||||
* The time the object was made a favorite.
|
||||
**/
|
||||
private Date createdAt = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Object target = null;
|
||||
|
||||
@ApiModelProperty(value = "A subset of the target favorite properties, system properties and properties already available in the target are excluded.")
|
||||
/**
|
||||
* A subset of the target favorite properties, system properties and properties already available in the target are excluded.
|
||||
**/
|
||||
private Object properties = null;
|
||||
/**
|
||||
* The guid of the object that is a favorite.
|
||||
* @return targetGuid
|
||||
**/
|
||||
@JsonProperty("targetGuid")
|
||||
public String getTargetGuid() {
|
||||
return targetGuid;
|
||||
}
|
||||
|
||||
public void setTargetGuid(String targetGuid) {
|
||||
this.targetGuid = targetGuid;
|
||||
}
|
||||
|
||||
public Favorite targetGuid(String targetGuid) {
|
||||
this.targetGuid = targetGuid;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The time the object was made a favorite.
|
||||
* @return createdAt
|
||||
**/
|
||||
@JsonProperty("createdAt")
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Favorite createdAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get target
|
||||
* @return target
|
||||
**/
|
||||
@JsonProperty("target")
|
||||
public Object getTarget() {
|
||||
return target;
|
||||
}
|
||||
|
||||
public void setTarget(Object target) {
|
||||
this.target = target;
|
||||
}
|
||||
|
||||
public Favorite target(Object target) {
|
||||
this.target = target;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A subset of the target favorite properties, system properties and properties already available in the target are excluded.
|
||||
* @return properties
|
||||
**/
|
||||
@JsonProperty("properties")
|
||||
public Object getProperties() {
|
||||
return properties;
|
||||
}
|
||||
|
||||
public void setProperties(Object properties) {
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
public Favorite properties(Object properties) {
|
||||
this.properties = properties;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Favorite {\n");
|
||||
|
||||
sb.append(" targetGuid: ").append(toIndentedString(targetGuid)).append("\n");
|
||||
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
|
||||
sb.append(" target: ").append(toIndentedString(target)).append("\n");
|
||||
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class FavoriteBodyCreate {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Object target = null;
|
||||
/**
|
||||
* Get target
|
||||
* @return target
|
||||
**/
|
||||
@JsonProperty("target")
|
||||
public Object getTarget() {
|
||||
return target;
|
||||
}
|
||||
|
||||
public void setTarget(Object target) {
|
||||
this.target = target;
|
||||
}
|
||||
|
||||
public FavoriteBodyCreate target(Object target) {
|
||||
this.target = target;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class FavoriteBodyCreate {\n");
|
||||
|
||||
sb.append(" target: ").append(toIndentedString(target)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class FavoriteEntry {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Favorite entry = null;
|
||||
/**
|
||||
* Get entry
|
||||
* @return entry
|
||||
**/
|
||||
@JsonProperty("entry")
|
||||
public Favorite getEntry() {
|
||||
return entry;
|
||||
}
|
||||
|
||||
public void setEntry(Favorite entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public FavoriteEntry entry(Favorite entry) {
|
||||
this.entry = entry;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class FavoriteEntry {\n");
|
||||
|
||||
sb.append(" entry: ").append(toIndentedString(entry)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class FavoritePaging {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private FavoritePagingList _list = null;
|
||||
/**
|
||||
* Get _list
|
||||
* @return _list
|
||||
**/
|
||||
@JsonProperty("list")
|
||||
public FavoritePagingList getList() {
|
||||
return _list;
|
||||
}
|
||||
|
||||
public void setList(FavoritePagingList _list) {
|
||||
this._list = _list;
|
||||
}
|
||||
|
||||
public FavoritePaging _list(FavoritePagingList _list) {
|
||||
this._list = _list;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class FavoritePaging {\n");
|
||||
|
||||
sb.append(" _list: ").append(toIndentedString(_list)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,80 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class FavoritePagingList {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Pagination pagination = null;
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private List<FavoriteEntry> entries = new ArrayList<FavoriteEntry>();
|
||||
/**
|
||||
* Get pagination
|
||||
* @return pagination
|
||||
**/
|
||||
@JsonProperty("pagination")
|
||||
public Pagination getPagination() {
|
||||
return pagination;
|
||||
}
|
||||
|
||||
public void setPagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
}
|
||||
|
||||
public FavoritePagingList pagination(Pagination pagination) {
|
||||
this.pagination = pagination;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get entries
|
||||
* @return entries
|
||||
**/
|
||||
@JsonProperty("entries")
|
||||
public List<FavoriteEntry> getEntries() {
|
||||
return entries;
|
||||
}
|
||||
|
||||
public void setEntries(List<FavoriteEntry> entries) {
|
||||
this.entries = entries;
|
||||
}
|
||||
|
||||
public FavoritePagingList entries(List<FavoriteEntry> entries) {
|
||||
this.entries = entries;
|
||||
return this;
|
||||
}
|
||||
|
||||
public FavoritePagingList addEntriesItem(FavoriteEntry entriesItem) {
|
||||
this.entries.add(entriesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class FavoritePagingList {\n");
|
||||
|
||||
sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n");
|
||||
sb.append(" entries: ").append(toIndentedString(entries)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class FavoriteSite {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String id = null;
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public FavoriteSite id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class FavoriteSite {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class FavoriteSiteBodyCreate {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String id = null;
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public FavoriteSiteBodyCreate id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class FavoriteSiteBodyCreate {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,51 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class FavoriteSiteEntry {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private FavoriteSite entry = null;
|
||||
/**
|
||||
* Get entry
|
||||
* @return entry
|
||||
**/
|
||||
@JsonProperty("entry")
|
||||
public FavoriteSite getEntry() {
|
||||
return entry;
|
||||
}
|
||||
|
||||
public void setEntry(FavoriteSite entry) {
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
public FavoriteSiteEntry entry(FavoriteSite entry) {
|
||||
this.entry = entry;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class FavoriteSiteEntry {\n");
|
||||
|
||||
sb.append(" entry: ").append(toIndentedString(entry)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
191
src/gen/java/com/inteligr8/alfresco/acs/model/GenericBucket.java
Normal file
191
src/gen/java/com/inteligr8/alfresco/acs/model/GenericBucket.java
Normal file
@ -0,0 +1,191 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* A bucket of facet results
|
||||
**/
|
||||
@ApiModel(description="A bucket of facet results")@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class GenericBucket {
|
||||
|
||||
@ApiModelProperty(value = "The bucket label")
|
||||
/**
|
||||
* The bucket label
|
||||
**/
|
||||
private String label = null;
|
||||
|
||||
@ApiModelProperty(value = "The filter query you can use to apply this facet")
|
||||
/**
|
||||
* The filter query you can use to apply this facet
|
||||
**/
|
||||
private String filterQuery = null;
|
||||
|
||||
@ApiModelProperty(value = "An optional field for additional display information")
|
||||
/**
|
||||
* An optional field for additional display information
|
||||
**/
|
||||
private Object display = null;
|
||||
|
||||
@ApiModelProperty(value = "An array of buckets and values")
|
||||
/**
|
||||
* An array of buckets and values
|
||||
**/
|
||||
private List<GenericMetric> metrics = null;
|
||||
|
||||
@ApiModelProperty(value = "Additional list of nested facets")
|
||||
/**
|
||||
* Additional list of nested facets
|
||||
**/
|
||||
private List<Object> facets = null;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private GenericBucketBucketInfo bucketInfo = null;
|
||||
/**
|
||||
* The bucket label
|
||||
* @return label
|
||||
**/
|
||||
@JsonProperty("label")
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public GenericBucket label(String label) {
|
||||
this.label = label;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter query you can use to apply this facet
|
||||
* @return filterQuery
|
||||
**/
|
||||
@JsonProperty("filterQuery")
|
||||
public String getFilterQuery() {
|
||||
return filterQuery;
|
||||
}
|
||||
|
||||
public void setFilterQuery(String filterQuery) {
|
||||
this.filterQuery = filterQuery;
|
||||
}
|
||||
|
||||
public GenericBucket filterQuery(String filterQuery) {
|
||||
this.filterQuery = filterQuery;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An optional field for additional display information
|
||||
* @return display
|
||||
**/
|
||||
@JsonProperty("display")
|
||||
public Object getDisplay() {
|
||||
return display;
|
||||
}
|
||||
|
||||
public void setDisplay(Object display) {
|
||||
this.display = display;
|
||||
}
|
||||
|
||||
public GenericBucket display(Object display) {
|
||||
this.display = display;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of buckets and values
|
||||
* @return metrics
|
||||
**/
|
||||
@JsonProperty("metrics")
|
||||
public List<GenericMetric> getMetrics() {
|
||||
return metrics;
|
||||
}
|
||||
|
||||
public void setMetrics(List<GenericMetric> metrics) {
|
||||
this.metrics = metrics;
|
||||
}
|
||||
|
||||
public GenericBucket metrics(List<GenericMetric> metrics) {
|
||||
this.metrics = metrics;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GenericBucket addMetricsItem(GenericMetric metricsItem) {
|
||||
this.metrics.add(metricsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Additional list of nested facets
|
||||
* @return facets
|
||||
**/
|
||||
@JsonProperty("facets")
|
||||
public List<Object> getFacets() {
|
||||
return facets;
|
||||
}
|
||||
|
||||
public void setFacets(List<Object> facets) {
|
||||
this.facets = facets;
|
||||
}
|
||||
|
||||
public GenericBucket facets(List<Object> facets) {
|
||||
this.facets = facets;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GenericBucket addFacetsItem(Object facetsItem) {
|
||||
this.facets.add(facetsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bucketInfo
|
||||
* @return bucketInfo
|
||||
**/
|
||||
@JsonProperty("bucketInfo")
|
||||
public GenericBucketBucketInfo getBucketInfo() {
|
||||
return bucketInfo;
|
||||
}
|
||||
|
||||
public void setBucketInfo(GenericBucketBucketInfo bucketInfo) {
|
||||
this.bucketInfo = bucketInfo;
|
||||
}
|
||||
|
||||
public GenericBucket bucketInfo(GenericBucketBucketInfo bucketInfo) {
|
||||
this.bucketInfo = bucketInfo;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class GenericBucket {\n");
|
||||
|
||||
sb.append(" label: ").append(toIndentedString(label)).append("\n");
|
||||
sb.append(" filterQuery: ").append(toIndentedString(filterQuery)).append("\n");
|
||||
sb.append(" display: ").append(toIndentedString(display)).append("\n");
|
||||
sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n");
|
||||
sb.append(" facets: ").append(toIndentedString(facets)).append("\n");
|
||||
sb.append(" bucketInfo: ").append(toIndentedString(bucketInfo)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,133 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* Additional information of nested facet
|
||||
**/
|
||||
@ApiModel(description="Additional information of nested facet")@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class GenericBucketBucketInfo {
|
||||
|
||||
@ApiModelProperty(value = "The start of range")
|
||||
/**
|
||||
* The start of range
|
||||
**/
|
||||
private String start = null;
|
||||
|
||||
@ApiModelProperty(value = "Includes values greater or equal to \"start\"")
|
||||
/**
|
||||
* Includes values greater or equal to \"start\"
|
||||
**/
|
||||
private Boolean startInclusive = null;
|
||||
|
||||
@ApiModelProperty(value = "The end of range")
|
||||
/**
|
||||
* The end of range
|
||||
**/
|
||||
private String end = null;
|
||||
|
||||
@ApiModelProperty(value = "Includes values less than or equal to \"end\"")
|
||||
/**
|
||||
* Includes values less than or equal to \"end\"
|
||||
**/
|
||||
private Boolean endInclusive = null;
|
||||
/**
|
||||
* The start of range
|
||||
* @return start
|
||||
**/
|
||||
@JsonProperty("start")
|
||||
public String getStart() {
|
||||
return start;
|
||||
}
|
||||
|
||||
public void setStart(String start) {
|
||||
this.start = start;
|
||||
}
|
||||
|
||||
public GenericBucketBucketInfo start(String start) {
|
||||
this.start = start;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Includes values greater or equal to \"start\"
|
||||
* @return startInclusive
|
||||
**/
|
||||
@JsonProperty("startInclusive")
|
||||
public Boolean isStartInclusive() {
|
||||
return startInclusive;
|
||||
}
|
||||
|
||||
public void setStartInclusive(Boolean startInclusive) {
|
||||
this.startInclusive = startInclusive;
|
||||
}
|
||||
|
||||
public GenericBucketBucketInfo startInclusive(Boolean startInclusive) {
|
||||
this.startInclusive = startInclusive;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The end of range
|
||||
* @return end
|
||||
**/
|
||||
@JsonProperty("end")
|
||||
public String getEnd() {
|
||||
return end;
|
||||
}
|
||||
|
||||
public void setEnd(String end) {
|
||||
this.end = end;
|
||||
}
|
||||
|
||||
public GenericBucketBucketInfo end(String end) {
|
||||
this.end = end;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Includes values less than or equal to \"end\"
|
||||
* @return endInclusive
|
||||
**/
|
||||
@JsonProperty("endInclusive")
|
||||
public Boolean isEndInclusive() {
|
||||
return endInclusive;
|
||||
}
|
||||
|
||||
public void setEndInclusive(Boolean endInclusive) {
|
||||
this.endInclusive = endInclusive;
|
||||
}
|
||||
|
||||
public GenericBucketBucketInfo endInclusive(Boolean endInclusive) {
|
||||
this.endInclusive = endInclusive;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class GenericBucketBucketInfo {\n");
|
||||
|
||||
sb.append(" start: ").append(toIndentedString(start)).append("\n");
|
||||
sb.append(" startInclusive: ").append(toIndentedString(startInclusive)).append("\n");
|
||||
sb.append(" end: ").append(toIndentedString(end)).append("\n");
|
||||
sb.append(" endInclusive: ").append(toIndentedString(endInclusive)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,110 @@
|
||||
package com.inteligr8.alfresco.acs.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class GenericFacetResponse {
|
||||
|
||||
@ApiModelProperty(value = "The facet type, eg. interval, range, pivot, stats")
|
||||
/**
|
||||
* The facet type, eg. interval, range, pivot, stats
|
||||
**/
|
||||
private String type = null;
|
||||
|
||||
@ApiModelProperty(value = "The field name or its explicit label, if provided on the request")
|
||||
/**
|
||||
* The field name or its explicit label, if provided on the request
|
||||
**/
|
||||
private String label = null;
|
||||
|
||||
@ApiModelProperty(value = "An array of buckets and values")
|
||||
/**
|
||||
* An array of buckets and values
|
||||
**/
|
||||
private List<GenericBucket> buckets = null;
|
||||
/**
|
||||
* The facet type, eg. interval, range, pivot, stats
|
||||
* @return type
|
||||
**/
|
||||
@JsonProperty("type")
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public GenericFacetResponse type(String type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The field name or its explicit label, if provided on the request
|
||||
* @return label
|
||||
**/
|
||||
@JsonProperty("label")
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public GenericFacetResponse label(String label) {
|
||||
this.label = label;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An array of buckets and values
|
||||
* @return buckets
|
||||
**/
|
||||
@JsonProperty("buckets")
|
||||
public List<GenericBucket> getBuckets() {
|
||||
return buckets;
|
||||
}
|
||||
|
||||
public void setBuckets(List<GenericBucket> buckets) {
|
||||
this.buckets = buckets;
|
||||
}
|
||||
|
||||
public GenericFacetResponse buckets(List<GenericBucket> buckets) {
|
||||
this.buckets = buckets;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GenericFacetResponse addBucketsItem(GenericBucket bucketsItem) {
|
||||
this.buckets.add(bucketsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class GenericFacetResponse {\n");
|
||||
|
||||
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
||||
sb.append(" label: ").append(toIndentedString(label)).append("\n");
|
||||
sb.append(" buckets: ").append(toIndentedString(buckets)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private static String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user