![CII Best Practices](https://camo.githubusercontent.com/ae84d2c407f4fecf6e28233f92c3c71276d4cc25158490dd4dd2305963c9397d/68747470733a2f2f626573747072616374696365732e636f7265696e6672617374727563747572652e6f72672f70726f6a656374732f313734372f6261646765)
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.tfSheol</groupId>
<artifactId>lib-group-manager</artifactId>
<version>0.0.1</version>
</dependency>
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.tfSheol:lib-group-manager:0.0.1'
}
[
{
"ACCESS_TWITTER": {
"description": "Allow access to twitter account.",
"type": "right",
"level": 2
}
},
{
"SHOW_BLOG": {
"description": "Permit to show blog articles.",
"type": "right",
"level": 1
}
},
{
"TEST_DATA": {
"description": "Permit to test all data.",
"type": "right",
"level": 5
}
}
]
Output (See ExampleTest.java)
Right (add) : ACCESS_TWITTER
Binary path : 1000
[ACCESS_TWITTER]
Right (add) : TEST_DATA
Binary path : 1001000
[ACCESS_TWITTER, TEST_DATA]
======================================
Right (add) : SHOW_BLOG
Binary path : 1001100
[ACCESS_TWITTER, SHOW_BLOG, TEST_DATA]
======================================
Right (delete) : ACCESS_TWITTER
Binary path : 1000100
[SHOW_BLOG, TEST_DATA]
======================================