[jira] [Commented] (SLING-4930) InventoryPrinter for Service User Mappings

2015-08-07 Thread Carsten Ziegeler (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14661850#comment-14661850
 ] 

Carsten Ziegeler commented on SLING-4930:
-

Simplified the inventory printer handling in rev 1694686

 InventoryPrinter for Service User Mappings
 --

 Key: SLING-4930
 URL: https://issues.apache.org/jira/browse/SLING-4930
 Project: Sling
  Issue Type: Improvement
  Components: Service User Mapper
Affects Versions: Service User Mapper 1.2.0
Reporter: Bertrand Delacretaz
Assignee: Carsten Ziegeler
Priority: Minor
 Fix For: Service User Mapper 1.2.2


 There's currently no simple way to list the configured service user mappings 
 - we should provide an InventoryPrinter to be able to get that info from the 
 OSGi console.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (SLING-4930) InventoryPrinter for Service User Mappings

2015-08-07 Thread Bertrand Delacretaz (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14661621#comment-14661621
 ] 

Bertrand Delacretaz commented on SLING-4930:


In revision 1694647 I have kept only the mappings by user section, thinking 
about it the raw mappings are redundant, it's the same information.

 InventoryPrinter for Service User Mappings
 --

 Key: SLING-4930
 URL: https://issues.apache.org/jira/browse/SLING-4930
 Project: Sling
  Issue Type: Improvement
  Components: Service User Mapper
Affects Versions: Service User Mapper 1.2.0
Reporter: Bertrand Delacretaz
Assignee: Bertrand Delacretaz
Priority: Minor
 Fix For: Service User Mapper 1.2.2


 There's currently no simple way to list the configured service user mappings 
 - we should provide an InventoryPrinter to be able to get that info from the 
 OSGi console.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (SLING-4930) InventoryPrinter for Service User Mappings

2015-08-07 Thread Carsten Ziegeler (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14661695#comment-14661695
 ] 

Carsten Ziegeler commented on SLING-4930:
-

We should make the import also dynamic and register the service as a service 
factory (as we do at other places). This way the start order does not play a 
role and the printer is available even if the inventory bundle is 
started/resolved after the mapper. If you want I can take care of this

 InventoryPrinter for Service User Mappings
 --

 Key: SLING-4930
 URL: https://issues.apache.org/jira/browse/SLING-4930
 Project: Sling
  Issue Type: Improvement
  Components: Service User Mapper
Affects Versions: Service User Mapper 1.2.0
Reporter: Bertrand Delacretaz
Assignee: Bertrand Delacretaz
Priority: Minor
 Fix For: Service User Mapper 1.2.2


 There's currently no simple way to list the configured service user mappings 
 - we should provide an InventoryPrinter to be able to get that info from the 
 OSGi console.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (SLING-4930) InventoryPrinter for Service User Mappings

2015-08-07 Thread Bertrand Delacretaz (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14661720#comment-14661720
 ] 

Bertrand Delacretaz commented on SLING-4930:


ok, feel free to improve this! I also looked at outputting the ACLs of the 
service users, but I'm not sure how to do that efficiently, if you have 
examples I could use them.

 InventoryPrinter for Service User Mappings
 --

 Key: SLING-4930
 URL: https://issues.apache.org/jira/browse/SLING-4930
 Project: Sling
  Issue Type: Improvement
  Components: Service User Mapper
Affects Versions: Service User Mapper 1.2.0
Reporter: Bertrand Delacretaz
Assignee: Bertrand Delacretaz
Priority: Minor
 Fix For: Service User Mapper 1.2.2


 There's currently no simple way to list the configured service user mappings 
 - we should provide an InventoryPrinter to be able to get that info from the 
 OSGi console.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (SLING-4930) InventoryPrinter for Service User Mappings

2015-08-06 Thread Bertrand Delacretaz (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14660131#comment-14660131
 ] 

Bertrand Delacretaz commented on SLING-4930:


Implemented in revision 1694513, /system/console/status-serviceusers produces a 
text listing and /system/console/status-serviceusers.json a JSON listing with 
the following format:

{code}
{
title: Service User Mappings,
mappingsCount: 3,
uniqueUsersCount: 2,
rawMappings: [
{
user: oauthservice,
subServiceName: null,
serviceName: some.oauth.server
},
{
user: oauthservice,
subServiceName: user-reader,
serviceName: my-project-commons-oauth
},
{
user: another-user,
subServiceName: ugc-writer,
serviceName: my.other.module
}
],
mappingsByUser: {
another-user: [
{
user: another-user,
subServiceName: ugc-writer,
serviceName: my.other.module
}
],
oauthservice: [
{
user: oauthservice,
subServiceName: null,
serviceName: some.oauth.server
},
{
user: oauthservice,
subServiceName: user-reader,
serviceName: my-project-commons-oauth
}
]
}
}
{code}

 InventoryPrinter for Service User Mappings
 --

 Key: SLING-4930
 URL: https://issues.apache.org/jira/browse/SLING-4930
 Project: Sling
  Issue Type: Improvement
  Components: Service User Mapper
Affects Versions: Service User Mapper 1.2.0
Reporter: Bertrand Delacretaz
Assignee: Bertrand Delacretaz
Priority: Minor
 Fix For: Service User Mapper 1.2.2


 There's currently no simple way to list the configured service user mappings 
 - we should provide an InventoryPrinter to be able to get that info from the 
 OSGi console.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)