[
https://issues.apache.org/jira/browse/FC-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14577148#comment-14577148
]
Shawn McKinney commented on FC-109:
-----------------------------------
Instructions to upgrade to latest source:
Instructions to upgrade to fortress 1.0.0:
A. Changes to Source:
1. Change package name of fortress entities.
search and replace: import org.apache.directory.fortress.core.rbac
with: import org.apache.directory.fortress.core.model
2. Change to use Apache Commons StringUtils (instead of fortress utility) to
check for null or empty Strings in code.
replace import org.apache.directory.fortress.core.util.attr.VUtil; with import
org.apache.commons.collections.CollectionUtils;
search and replace: VUtil.isNotNullOrEmpty, with: StringUtils.isNotNull
3. Change to use Apache Commons CollectionUtils (instead of fortress utility)
to check for null or empty Collections in code.
replace import org.apache.directory.fortress.core.util.attr.VUtil; with import
org.apache.commons.collections.CollectionUtils;
search and replace: VUtil.isNotNullOrEmpty, with: CollectionUtils.isNotEmpty
4. Always use factories for Manager construction. Do not construct manually
Don’t do this: AdminMgr adminMgr = new
org.apache.directory.fortress.core.impl.AdminMgrImpl();
Do this: AdminMgr adminMgr = AdminMgrFactory.createInstance();
Changes to properties and (arbac) permissions:
5. properties
Change to the following:
temporal.validator.dsd:org.apache.directory.fortress.core.impl.DSDChecker
6. arbac permissions. change to the following:
ftObjNm=org.apache.directory.fortress.core.impl.AdminMgrImpl, ou=AdminPerms,
ou=ARBAC, dc=example,dc=com
ftObjNm=org.apache.directory.fortress.core.impl.AuditMgrImpl, ou=AdminPerms,
ou=ARBAC, dc=example,dc=com
ftObjNm=org.apache.directory.fortress.core.impl.DelAdminMgrImpl, ou=AdminPerms,
ou=ARBAC, dc=example,dc=com
ftObjNm=org.apache.directory.fortress.core.impl.DelReviewMgrImpl,
ou=AdminPerms, ou=ARBAC, dc=example,dc=com
ftObjNm=org.apache.directory.fortress.core.impl.PwPolicyMgrImpl, ou=AdminPerms,
ou=ARBAC, dc=example,dc=com
org.apache.directory.fortress.core.impl.ReviewMgrImpl
> break core package cycles
> -------------------------
>
> Key: FC-109
> URL: https://issues.apache.org/jira/browse/FC-109
> Project: FORTRESS
> Issue Type: Sub-task
> Affects Versions: 1.0.0-RC41
> Reporter: Shawn McKinney
> Fix For: 1.0.0
>
>
> remove the package cycles from the core by moving the entities into a
> separate package named 'model'.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)