logged in user detail | Community
Skip to main content
Level 2
October 16, 2015
Solved

logged in user detail

  • October 16, 2015
  • 1 reply
  • 619 views

I have implemented Preprocessor for one of my use case to detect the activity and do some processing. Something like 

 

public void preprocess(ReplicationAction replicationAction, ReplicationOptions replicationOptions) throws ReplicationException {
        if (replicationAction.getType().equals(ReplicationActionType.ACTIVATE)){

            // Need to get the logged in user detail

        }
    }

 

I can get the admin session/details here but i need access to the current logged in user. How can i get that.

 

Can someone help me with this.

 

Thanks 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

This isn't possible, as the replication is working as a background session is not tied to any (authoring) user activity happening on the system.

You might want to find out, which user started this replication action (and which is not necessarily a person), you can use replicationAction.getUserId();

Jörg

1 reply

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

This isn't possible, as the replication is working as a background session is not tied to any (authoring) user activity happening on the system.

You might want to find out, which user started this replication action (and which is not necessarily a person), you can use replicationAction.getUserId();

Jörg