public interface OutboxManager
Modifier and Type | Method and Description |
---|---|
boolean |
checkPermission(Session session)
Deprecated.
since 5.12.4; use
getDefaultOutbox(javax.jcr.Session) } instead. |
void |
fetch(Session session,
java.util.Calendar time,
java.io.OutputStream out)
Deprecated.
since 5.12.4; use
getDefaultOutbox(javax.jcr.Session) .Outbox.fetch(java.util.Calendar, java.io.OutputStream) instead. |
Outbox |
getDefaultOutbox(Session session)
Returns the default, anonymous outbox.
|
Outbox |
getOutbox(Session session,
java.lang.String name,
boolean autoCreate)
Returns the outbox with the given name.
|
void |
put(java.io.InputStream in)
Deprecated.
since 5.5 use
put(ReplicationAction, java.io.InputStream) instead. |
void |
put(ReplicationAction action)
Deprecated.
since 5.12.4; use
getDefaultOutbox(javax.jcr.Session) .Outbox.put(ReplicationAction) instead. |
void |
put(ReplicationAction action,
java.io.InputStream in)
Deprecated.
since 5.12.4; use
getDefaultOutbox(javax.jcr.Session) .Outbox.put(ReplicationAction, java.io.InputStream) instead. |
@Nullable Outbox getOutbox(Session session, java.lang.String name, boolean autoCreate) throws ReplicationException, AccessDeniedException
null
is returned, unless
autoCreate
is set to true
.
Note that the given session needs to be able to read and write nodes on an existing outbox, or needs to be
able to create nodes below the default outboxes path "/var/replication/outboxes".session
- the session to access the outboxname
- name of the outbox.autoCreate
- if true
the outbox will be created if it does not existnull
ReplicationException
- if an error occurs.AccessDeniedException
- if the given session is not allowed to get or create the outbox.@Nonnull Outbox getDefaultOutbox(Session session) throws ReplicationException
session
- the session to access the default outboxReplicationException
- if an error occurs.@Deprecated void put(ReplicationAction action, java.io.InputStream in) throws ReplicationException
getDefaultOutbox(javax.jcr.Session)
.Outbox.put(ReplicationAction, java.io.InputStream)
instead.action
- replication action, must not be ReplicationActionType.ACTIVATE
in
- item dataReplicationException
- if an error occurs@Deprecated void put(ReplicationAction action) throws ReplicationException
getDefaultOutbox(javax.jcr.Session)
.Outbox.put(ReplicationAction)
instead.ReplicationActionType.ACTIVATE
.action
- replication action, must not be ReplicationActionType.ACTIVATE
ReplicationException
- if an error occurs@Deprecated void put(java.io.InputStream in) throws ReplicationException
put(ReplicationAction, java.io.InputStream)
instead.ReplicationActionType.ACTIVATE
in
- item dataReplicationException
- if an error occurs@Deprecated void fetch(Session session, java.util.Calendar time, java.io.OutputStream out) throws ReplicationException
getDefaultOutbox(javax.jcr.Session)
.Outbox.fetch(java.util.Calendar, java.io.OutputStream)
instead.session
- session to usetime
- if not null
, all items older than this date
are automatically purged from the outbox before returning the
outbox's contentout
- output stream where to store a virtual durbo package named
outbox
with the items in the outbox as childrenReplicationException
- if an error occurs@Deprecated boolean checkPermission(Session session)
getDefaultOutbox(javax.jcr.Session)
} instead.session
- session to useCopyright © 2010 - 2020 Adobe. All Rights Reserved